Josh,

I did a bit of reorganizing your code here:
https://jsfiddle.net/dlaliberte/kjzomjfm/2/
I am not following what you want to do with the cycle_id selection.  If you
want to keep using the Cycles select element, you can, if you add an
onchange handler to the select element. Then in your handler, you can
regenerate your data as you want and draw it again.  You should probably
move your code around so that you keep the same chart and options but only
change the data.

On Thu, Mar 17, 2016 at 4:29 PM, Joshua Updyke <[email protected]> wrote:

> Hello again,
>
> I did some reading and that Dashboard feature looks like it does exactly
> what I need. But I am having trouble getting it to work. I am a hardware
> guy so I really struggle sometimes when I dont have an example to directly
> work from. Is there any chance someone can help me put my chart into a
> Dashboard with a chartwrapper that has a dropdown box that only graphs the
> data with a selected cycle_id. I have the code shared here:
> https://jsfiddle.net/kjzomjfm/
>
> I am gonna keep messing around with it, but I have not been able to get it
> to work yet.
>
> thanks in advance,
> Josh
>
> On Wednesday, March 16, 2016 at 3:12:38 PM UTC-4, Daniel LaLiberte wrote:
>>
>> Hi Josh,
>>
>> Glad you are enjoying Google Charts.  For a hardware guy, your software
>> is fairly adequate.
>>
>> From what you describe, and looking at your jsfiddle, it sounds like you
>> could make use of the Dashboard feature with controls to filter the data
>> based on your cycle id.  See the docs at:
>> https://developers.google.com/chart/interactive/docs/gallery/controls
>>  When you use a Dashboard, you wrap each chart with a ChartWrapper in which
>> you can specify a view property to select the columns are to be charted.
>>
>> On Wed, Mar 16, 2016 at 2:03 PM, Joshua Updyke <[email protected]> wrote:
>>
>>> Hello all,
>>>
>>> I am working on a project where I am loading in a rather large chunk of
>>> data from data.sparkfun.com servers. I am have been able to get a lot
>>> accomplished by working with some example code I found to graph it using
>>> the Google Visualizations. I have to say this stuff is just awesome. But I
>>> am a little stuck now.
>>>
>>> I have a section of my code located on JSFiddle:
>>> https://jsfiddle.net/kjzomjfm/
>>>
>>> Basically it loads in the data from sparkfun, then makes some
>>> calculations and updates the fields, and finally graphs the data. The data
>>> is from a machine that runs cycles and is idle between them. I have the
>>> data tagged with cycle_ids and would like to parse the data out so I could
>>> graph it and do calculation on just a per cycle basis. I already have a
>>> drop down menu which lists all the unique cycle ids, I just would like to
>>> have the graph update when you pick a specific cycle name from the drop
>>> down menu so that it only shows the data tagged with this cycle id.
>>>
>>> Anyone have a few minutes to get me over this hump? Also, anyone
>>> interested in freelance work helping me with stuff like this? I am more a
>>> hardware guy and would not mind paying someone for a couple hours work.
>>>
>>> Thanks in advance everyone,
>>> Josh
>>>
>>> --
>>> 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
>>> https://groups.google.com/group/google-visualization-api.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-visualization-api/43194414-43a6-4d79-9911-119369e54993%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-visualization-api/43194414-43a6-4d79-9911-119369e54993%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>> [email protected]   5CC, Cambridge MA
>>
> --
> 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
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/7a9c8752-e213-4cc2-842e-8dc6117bf09b%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/7a9c8752-e213-4cc2-842e-8dc6117bf09b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJMPdsEbbVQCJanUtrPYSkE8UR-Gk1OU-A4%3DLcSQo3K63g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to