javascript - AmChart.makeChart properties not having an effect -
i using makechart method of amcharts construct line chart, see jsfiddle - http://jsfiddle.net/lw7ahxwh/
the problem having of properties not changing chart, whereas others of same field are:
graphs: [ { id: "sensordata1", title: "sensor 1", valuefield: "sensor5", type: "line", linethickness: 100, //the linethickness not change linecolor: "#000000" //the linecolor not change }, all parameters other linethickness , linecolor work.
chartscrollbar: { updateonreleaseonly: true, graph: "sensordata1", position: "bottom", //cannot scrollbar bottom height: 100 //the scrollbar not change height number }, the chartscrollbar graph , updateonreleaseonly work, position , height appear ignored.
there few other examples in jsfiddle - see comments within code. appreciated - feel free fork jsfiddle.
all config parameters in amcharts case-sensitive , should in camelcase. should change linethickness , linecolor linethickness , linecolor respectively.
here's updated fiddle per above:
http://jsfiddle.net/lw7ahxwh/3/
i noticed have trailing comma (a comma after last element in array) in cases. (in graphs , chartcursor) trailing comma handled modern browsers, may , produce syntax error on legacy ones, ie7.
the above link, has fixed well.
Comments
Post a Comment