Home Forums Chart Support How to plot multiple line graphs on same Chart Reply To: How to plot multiple line graphs on same Chart

#26276

Hi,
I’ve looked at those examples but they are relatively simple. Hard coding the values in the js/html.
I’m more specifically interested in how to pass an object that holds 2 arraylists of measurements (or more) and plot a graph for each arraylist.

Is this possible?
I have tried using a var dps = [[]]; but it fails.

Do I need to send a json object and parse that?
How to code the for loops and perform an inline line graph plot?

I’m using thymeleaf and Spring Boot mvc – any ideas greatly accepted
thanks
Peter