I wrote two hacks that will do what you want, depending on how you want it 
to work.  See them here <http://jsfiddle.net/asgallant/6gz2Q/> and 
here<http://jsfiddle.net/asgallant/WaUu2/>
.

On Wednesday, March 27, 2013 5:42:51 AM UTC-4, Joel wrote:
>
>         var data = google.visualization.arrayToDataTable([
>           ['Cummulative Probability', 'Price', 'RefCfg1', 'RefCfg2', 
> 'RefCfg3', 'RefCfg4', 'RefCfg5'],
>           [ '0' , '0.08',  '0.011',  '0.011', '0.011', '0.011',   
> '0.011'],
>           [ '10', '0.08', '0.011',  '0.011', '0.011', '0.011',   '0.011'],
>           [ '20',  '0.08', '0.011',  '0.011', '0.011', '0.011',   
> '0.011'],
>           [ '30',  '0.08', '0.011',  '0.011', '0.011', '0.011',   
> '0.011'],
>           [ '40',  '0.08', '0.011',  '0.011', '0.011', '0.011',   
> '0.011'],
>           [ '50',  '0.11', '0.011',  '0.011', '0.011', '0.011',   
> '0.011'],
>           [ '60',  '0.115', '0.011',  '0.011', '0.011', '0.011',   
> '0.011'],
>   [ '70',  '0.115', '0.011',  '0.011', '0.011', '0.011',   '0.011'],
>   [ '80',  '0.115', '0.011',  '0.011', '0.011', '0.011',   '0.011'],
>   [ '90',  '0.111', '0.011',  '0.011', '0.011', '0.011',   '0.011'],
>   [ '100',  '5.552', '0.008',  '0.12', '0.6', '0.008',   '5.512']
>         ]);
>
> I am plotting this in a line chart, and I want to be able to dynamically 
> show/hide series.
>
> eg: See only series: RefCfg1 and RefCfg2 and hide the others.
>
>  I originally used controls, but I realised that controls drive the entire 
> chart, so if i attempt to use a numberrangeslider to set RefCfg2 to [0,0], 
> the other series disappaears altogether.
>
> Is there any method to show/hide serires through the use of controls or 
> mouseclicks.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to