ESP8266 icon indicating copy to clipboard operation
ESP8266 copied to clipboard

Possible creating multiple charts?

Open hachler opened this issue 7 years ago • 8 comments

I loved too much this data logging but I would need to have around 3 different charts on the screen for my purpose project. Is it hard to add more charts in these current project? I am trying to play inside the .js files but not having lucky.

Thanks

hachler avatar Apr 02 '19 15:04 hachler

Hi, I have the same questions. I create the multi CSV file, and I add multi-chart on .html, but I have no idea of how to edit the .js file.

m19858484 avatar Apr 26 '19 11:04 m19858484

I don't have much time on my hands right now, and my JavaScript is quite rough, so I can't really help you.

I think the Google Chart documentation is a good place to start. Loading the CSV files from the ESP8266 is trivial, getting the data to display on the graph is harder, because of the callbacks.

You could try adding another chart in the drawChart function with the same data and options first, then duplicate the CSV loading part to display the right data, and use different options for your second chart.

Note that this is primarily a JavaScript question, so you might get more help on sites like StackOverflow.

Good luck!

tttapa avatar Apr 26 '19 12:04 tttapa

I set different functions name in .js. Finally, it works! Thanks,

m19858484 avatar May 04 '19 08:05 m19858484

Glad to hear!

It might be useful to others if you could post your solution.

tttapa avatar May 04 '19 11:05 tttapa

I'm looking at the same problem. Any chance you could post your multi chart HTML & Jarva code M19858484? Would be much appreciated.

netless-ww avatar Feb 16 '21 09:02 netless-ww

Hi netless-ww, I've placed the src code here: code.zip Hope this helps!

m19858484 avatar Feb 16 '21 13:02 m19858484

Hi 19858484 Just what I needed. Thanks!

netless-ww avatar Feb 18 '21 06:02 netless-ww

Hi all

Thanks again to M19858484 for his input.

Here is my attempt at a more direct extension of Pieter P's Web Based Temperature Logging Program to Cater for two data streams.

Extension to more data streams should now be straightforward.

Hope this helps others needing to log more than 1 data stream.

ESP8266WebDatalogger.zip

netless-ww avatar Apr 05 '21 10:04 netless-ww