You're welcome.

On Thursday, May 9, 2013 6:11:21 PM UTC-4, William Herbert wrote:
>
> Thanks for those handy examples!  I was able to adapt your methodology to 
> a project I'm working on and it's exactly what I needed.
>
> On Sunday, March 31, 2013 10:12:12 AM UTC-4, asgallant wrote:
>>
>> Column 0 in the example is just the x-axis value; I happened to choose to 
>> start at 0 and increment by 1, but I could have done something different.
>>
>> What are you planning to use for your x-axis values?  The simple way to 
>> handle this is to make that column be column 0, and the rest of the code 
>> should work for the other data series.
>>
>> On Sunday, March 31, 2013 7:02:23 AM UTC-4, Joel wrote:
>>>
>>> Thank you for your links, I tried modifying your code for hiding series 
>>> by clicking on legend.
>>>
>>> I am abit confused as to how do i insert my own data table into the 
>>> code, because column 0 in your code is used as the row index. however how 
>>> do i do the same for my data table? My column 0 is a continuous line for 
>>> cummulative probability.
>>>
>>> I do apologize if this might seem like a trivial problem, I am not a 
>>> programming major, and I am doing this as part of a research project.
>>>
>>> On Wednesday, March 27, 2013 10:07:02 PM UTC+8, asgallant wrote:
>>>>
>>>> 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