Hi,

Hopefully someone can give me a heads up on how to show multiple values on column, bar and line graphs..

Basically I want it to look something like this example..
https://google-developers.appspot.com/chart/interactive/docs/gallery/col...
https://google-developers.appspot.com/chart/interactive/docs/gallery/lin...
https://google-developers.appspot.com/chart/interactive/docs/gallery/bar...

I have my view working and its providing two values and the x-axis.. The charts only appear to be showing the first of the two values.. So essentially I am getting the blue line but not the red line..

Anyone know how to get multiple values to show?

Comments

gurubydesign’s picture

Same situation here...subscribing

matiaslezin’s picture

Same here.

ericbobson’s picture

Just registering my interest for this too. I can't figure it out, and am sure someone who has could explain it in 30 seconds - would be very helpful!

Exploratus’s picture

I believe this available in the latest dev, but I cant get it working. Quick tutorial? :)

plusproduit’s picture

Subscribing too

annikaC’s picture

Hi everyone,

I had the same issue so I went digging in the code and currently I don't think there is support for multiple series in graphs. There's no indication of the module using the Views grouping functionality, which is where you'd group your data together into a single series, for example grouping your results by Date. It's quite a difficult problem to solve - I ended up making a copy of the dataviz plugin and implementing something specific around grouping, which gave me multiple lines as in the examples above.

If you're aiming to do something similar, I'd look at the code in views_plugin_style.inc and implement your own version of render_grouping_sets. I'm sure there's a smarter way of doing this so it could cover most use cases.

rudyard55’s picture

Issue summary: View changes

+1