The height of the Bars should automatically change according the values of the ylabelsSpecific option
« Back to message list
Hi,
this is my demo code
var datas = [78, 16, 26, 23, 25, 51];
var line = new RGraph.Bar("cvsBar4", datas)
.set("chart.labels", ["Feb", "Mar", "Apr", "May", "Jun", "Jul"])
.set("chart.ylabels.specific", ["80","70","60","50","40","30","20","10","0"])
.draw();
well, you will see the height of first bar ('Feb') can not matches the ylabels!
so, how to corrent my code to make those values matches each other?
thanks
Posted by Ileven on 10th April 2014this is my demo code
var datas = [78, 16, 26, 23, 25, 51];
var line = new RGraph.Bar("cvsBar4", datas)
.set("chart.labels", ["Feb", "Mar", "Apr", "May", "Jun", "Jul"])
.set("chart.ylabels.specific", ["80","70","60","50","40","30","20","10","0"])
.draw();
well, you will see the height of first bar ('Feb') can not matches the ylabels!
so, how to corrent my code to make those values matches each other?
thanks
If line.set("chart.ylabels.specific", ["200","150","100","0"])
then the height of the bar should be changed!
Posted by Richard on 10th April 2014then the height of the bar should be changed!
Hi there,
It does - there's a few properties though you can add to help make it a little clearer@
www.rgraph.net/fiddle/view.html/a-bar-chart-with-matching-y-labels
Richard
Posted by Ileven on 14th April 2014It does - there's a few properties though you can add to help make it a little clearer@
www.rgraph.net/fiddle/view.html/a-bar-chart-with-matching-y-labels
Richard
Sincerely thank for your help!
Add a reply
« Back to message list