开发者

Bar chart using raphaël

开发者 https://www.devze.com 2023-01-30 21:13 出处:网络
I like to bring a chart as shown By using raphea开发者_如何学Cl. Its very tough for me to learn it. show me some live example with code to draw verticalbar graph.

I like to bring a chart as shown

Bar chart using raphaël

By using raphea开发者_如何学Cl. Its very tough for me to learn it. show me some live example with code to draw verticalbar graph.

My data values

x-axis {1,2,3,4,5} This is an id of question y-axis {10,20,30,40,7} This represent number of visits of question

I need bar graph with x,y values in plot and label for each axis and for graph


The most basic implementation would be:

var r = Raphael("holder"),
    data = [[10], [105], [30]];

r.g.barchart(0, 0, width, height, data);

Then you can manipulate it with raphael.js.

Note. g.raphael can be found here: http://g.raphaeljs.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消