Hello people, how r u?
Maybe u can help me, I was working to draw a basic chart with D3.js, I did many steps but maybe another friend have more experience with this. From this example dashboard tips d3.js . Until now, I have a nodes for build a chart but the result it's not very good, You can see here the images:
In the top is the normal chart with nodeRED chart node, in the bottom is with D3.js (the same data for the two pictures), I need more things in this picture, like this example from D3.js basics:
Important: The data is coming from SQLite (I'm not using csv files) to D3.js in this format, and the code in my D3.js template is there.
The example uses only the line. To make it also draw x and y axis you'll need to add those commands with all the necessary modifications for them.
See the example of Basic line chart in d3.js and pay attention on commented sections in code like // Add X axis --> it is a date format
and // Add Y axis
I have questions, for the example two (multiple lines), in D3.js lines, the problem is that the data format maybe is incorrect and the template can't read, the example of the format of the data is and the problem context:
I have news, the example for many lines works now, the solution was only add this dataset1 = {{{payload.chartdata2}}} in the template for multiple line, and maybe you can look this check chart ui
Hello,
I'm trying to add more things to the chart line, I saw this example with multiple lines, d3js tooltip cursor many lines. The example look like this: