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
Comment #1
gurubydesign CreditAttribution: gurubydesign commentedSame situation here...subscribing
Comment #2
matiaslezin CreditAttribution: matiaslezin commentedSame here.
Comment #3
ericbobson CreditAttribution: ericbobson commentedJust 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!
Comment #4
Exploratus CreditAttribution: Exploratus commentedI believe this available in the latest dev, but I cant get it working. Quick tutorial? :)
Comment #5
plusproduit CreditAttribution: plusproduit commentedSubscribing too
Comment #6
annikaC CreditAttribution: annikaC commentedHi 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.
Comment #7
rudyard55 CreditAttribution: rudyard55 commented+1