Skip to content
Snippets Groups Projects
Select Git revision
  • 9e86a04d2ae35ba2c6243e1a5f64a9d6a5c25072
  • master default protected
  • cdat
3 results

first.py

Blame
  • timelinechartdata.js 2.08 KiB
    AmCharts.makeChart("timelinechart",
        {
            "type": "serial",
            "categoryField": "Month",
            "startDuration": 1,
            "theme": "black",
            "categoryAxis": {
                "gridPosition": "start"
            },
            "trendLines": [],
            "graphs": [
                {
                    "balloonText": "[[title]] in [[Month]]:[[value]]",
                    "bullet": "round",
                    "id": "AmGraph-1",
                    "title": "Challenges Solved",
                    "valueField": "Solved"
                }
            ],
            "guides": [],
            "valueAxes": [
                {
                    "id": "ValueAxis-1",
                    "title": "Solves"
                }
            ],
            "allLabels": [],
            "balloon": {},
            "legend": {
                "enabled": false,
                "useGraphSettings": true
            },
            "titles": [
                {
                    "id": "Title-1",
                    "size": 15,
                    "text": "No. of Challenges Solved"
                }
            ],
            "dataProvider": [
                {
                    "Month": "Jan",
                    "Solved": 8
                },
                {
                    "Month": "Feb",
                    "Solved": 6
                },
                {
                    "Month": "Mar",
                    "Solved": 2
                },
                {
                    "Month": "Apr",
                    "Solved": 1
                },
                {
                    "Month": "May",
                    "Solved": 2
                },
                {
                    "Month": "Jun",
                    "Solved": 3
                },
                {
                    "Month": "Jul",
                    "Solved": 6
                },
                {
                    "Month": "Aug",
                    "Solved": 2
                },
                {
                    "Month": "Sep",
                    "Solved": 3
                },
                {
                    "Month": "Oct",
                    "Solved": 4
                },
                {
                    "Month": "Nov",
                    "Solved": null
                },
                {
                    "Month": "Dec",
                    "Solved": null
                }
            ]
        }
    );