Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Bargraphs #8

Open
ksekhar opened this issue Sep 21, 2011 · 6 comments
Open

Multiple Bargraphs #8

ksekhar opened this issue Sep 21, 2011 · 6 comments

Comments

@ksekhar
Copy link

ksekhar commented Sep 21, 2011

I am using the following to create multiple bar graph

new Ico.BarGraph(document.getElementById('graph_search_image'), {one: [100,200,300,400], two: [120,100,220,500]}, {meanline: true, grid: true,colors: {one: '#aaa', two: '#bbb'},labels: ['jan','feb', 'mar','apr'] });

The graph renders good but I want the bars side-by-side instead of on top of each other, how do I accomplish that, and how do I make the graph load colors I want it to load, (its always random).

Created with Raphaël100200300400500janfebmarapr
@alexyoung
Copy link
Owner

To get the colours right I think you just need to spell it 'colours' instead of 'colors' (I'm British so it's all British English).

Does Ico.HorizontalBarGraph make the kind of side-by-side graph you want?

You can find some examples in here: https://github.com/alexyoung/ico/blob/master/docs/examples.html

And API docs here: http://alexyoung.github.com/ico/

Cheers,

Alex

@ksekhar
Copy link
Author

ksekhar commented Sep 21, 2011

Thanks for Colours correction :)
My question was about if its possible to display the bar graph like the 3rd example in this link http://g.raphaeljs.com/barchart2.html

@alexyoung
Copy link
Owner

The "Multiple Series Chart" example?

@ksekhar
Copy link
Author

ksekhar commented Sep 21, 2011

Yes

@alexyoung
Copy link
Owner

That's Ico.HorizontalBarGraph

@ksekhar
Copy link
Author

ksekhar commented Sep 21, 2011

It doesn't show the desired output, it shows the bars stacked on each other.
So when sometimes when the values are almost equal one bar will be
completely hidden from second bar which doesn't help for comparison.

On Wed, Sep 21, 2011 at 12:23 PM, Alex Young <
[email protected]>wrote:

That's Ico.HorizontalBarGraph

Reply to this email directly or view it on GitHub:
#8 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants