Looking for help parsing some data

38 views
Skip to first unread message

Joshua Updyke

unread,
Mar 16, 2016, 2:03:00 PM3/16/16
to Google Visualization API
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:

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

Daniel LaLiberte

unread,
Mar 16, 2016, 3:12:38 PM3/16/16
to Google Visualization API
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.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.



--

Joshua Updyke

unread,
Mar 17, 2016, 4:29:52 PM3/17/16
to Google Visualization API
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:

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 <jup...@gmail.com> 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:

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 google-visualization-api+unsub...@googlegroups.com.



--

Daniel LaLiberte

unread,
Mar 21, 2016, 2:28:41 PM3/21/16
to Google Visualization API
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 <jup...@gmail.com> 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:

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 <jup...@gmail.com> 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:

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 google-visualizati...@googlegroups.com.



--

--
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 google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages