I have two lists containing around 300 decimal numbers. That I need to convert into a dictionary format like below in order to plot a scatter graph using the values within the two lists as X and Y coordinates with Chart.JS.
This is the format that Chart.JS requires the data to be in.
data: [{
x: -10,
y: 0
}, {
x: 0,
y: 10
}, {
x: 10,
y: 5
}]
I've been trying to do this in a number of different ways but each time I get it wrong. Does anyone know a good way to accomplish this?