Dashboard 2 line chart data format

Hello,
For reasons unrelated to this question I need to migrate a flow from Dashboard 1 to Dashboard 2. In Dashboard 1, I was feeding instrument data to a chart node, repetitively to make a waveform viewer that looked like an oscilloscope. The instrument data came from some C code that talked to the hardware. The Dashboard 1 chart node required a very specific json format so my C code printed the data to that format and I used a json node to convert that string to a json object that I connected to the DB1 chart, creating an xy line plot. It worked great.

The DB2 chart looks much more flexible and I can make my C code generate output in any format. What would be an efficient and simple format to generate my data? How should I configure the DB2 chart for that data?

Any advice is appreciated.

You can simply create an array of objects, where each contains properties "x" and "y", though you can name them whatever you like. Look at the config dialog for the chart node and it should be fairly obvious how to configure it.