How do I enable the compare feature?

517 views
Skip to first unread message

Stephan

unread,
May 3, 2012, 7:48:54 AM5/3/12
to google-visua...@googlegroups.com
Hello,

I've been playing with the Google Graphs Playground editor to shape my graph.
In the editor a very nice feature was the: Compare Mode. 

I want to implement it in my Line Chart but I cannot find the right API parameter for it.


The code I've tried :

 new google.visualization.LineChart(document.getElementById('visualization')).
            draw(data, {
            curveType: "function",
            title : 'CVR - last 2 weeks',
            isStacked: true,
            width: 900,
            height: 300,
            theme: 'maximized',
            compareMode: true,
            legend: {'position':'inside'},
            vAxis: {title: "", maxValue: 100},
            hAxis: {title: "Day", minValue:0}
}                );

Can anyone tell me what parameter is the right one?

Thanks!

asgallant

unread,
May 3, 2012, 11:02:25 AM5/3/12
to google-visua...@googlegroups.com
Set the 'focusTarget' option to 'category':

focusTarget'category'

svh1985

unread,
May 10, 2012, 10:34:19 AM5/10/12
to google-visua...@googlegroups.com
Thanks mate! 
Reply all
Reply to author
Forward
0 new messages