var data= [{ "salary": 0, "ratio":3 }, { "salary": 1500, "ratio": 3 }, { "salary": 1500, "ratio": 10 }, { "salary": 4500, "ratio": 10 }, { "salary": 4500, "ratio": 20 }, { "salary": 9000, "ratio": 20 }, { "salary": 9000, "ratio":25 }, { "salary": 35000, "ratio": 25 }, { "salary": 35000, "ratio": 30 }, { "salary": 55000, "ratio": 30 }, { "salary": 80000, "ratio": 35 }, { "salary": 80001, "ratio":45 }, ]; var chart = AmCharts.makeChart("chartdiv", { "type": "serial", "titles":[{"text":"Step Line Chart"}], "dataProvider":data, "ratioAxes": [{ "axisAlpha": 0, "position": "left" }], "graphs": [{ "id":"g1", "balloonText": "[[category]]
[[ratio]] C", "type": "step", "bullet":"square", "bulletAlpha":0, "bulletSize":0, "bulletBorderAlpha":0, "lineThickness":2, "valueField": "ratio" }], "chartCursor": { "fullWidth":true, "categoryBalloonDateFormat": "YYYY", "cursorAlpha": 0.0, "graphBulletAlpha":1 }, "categoryField": "salary", "categoryAxis": { "parseDates": false, "gridAlpha": 0 }, });