Home forums Feature Requests & Feedback canvasjs with python Flask

This topic contains 1 reply, has 2 voices, and was last updated by  Shashi Ranjan 2 weeks, 4 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26603

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <meta charset=”UTF-8″>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
    <meta http-equiv=”X-UA-Compatible” content=”ie=edge”>
    <title>Document</title>
    </head>
    <body>
    <script type=”text/javascript” src=”https://canvasjs.com/assets/script/canvasjs.min.js”></script>
    <div id=”chartContainer1″ style=”width: 45%; height: 300px;display: inline-block;”></div>
    <div id=”chartContainer2″ style=”width: 45%; height: 300px;display: inline-block;”></div><br/>
    <div id=”chartContainer3″ style=”width: 45%; height: 300px;display: inline-block;”></div>
    <div id=”chartContainer4″ style=”width: 45%; height: 300px;display: inline-block;”></div>
    <script>
    var chart = new CanvasJS.Chart(“chartContainer1”,
    {
    animationEnabled: true,
    title: {
    text: “Spline Area Chart”
    },
    axisX: {
    interval: 10,
    },
    data: [
    {
    type: “splineArea”,
    color: “rgba(255,12,32,.3)”,
    dataPoints: [
    {% for key,value in dico.items() %}
    { x: (“{{key}}”), y: {{value}}},
    {% endfor %}

    ]
    },
    ]
    });
    chart.render();

    </script>

    </body>
    </html>

    #26616

    @alioune,

    Considering this as duplicate of CanvasJS with Python Flask. Hence closing the same.


    Shashi Ranjan
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.