Apologies if this question seems basic. The challenge I am facing is that I need to utilize the same data for multiple charts, but with slight variations in options for each chart. The data is as follows:
var data = {
labels: freq,
datasets: [{
borderWidth:1,
label: "ADC Visualization",
fill: false,
lineTension: 0,
backgroundColor: "rgba(75,192,192,0.4)",
borderColor: "rgba(75,192,192,1)",
borderCapStyle: 'butt',
borderDash: [],
borderDashOffset: 0.0,
borderJoinStyle: 'miter',
pointRadius: 1,
data: mag
}]
};
Now, let's say I want to use this data but with the pointRadius set to 5 for a specific chart. I am aware that I can do the following to set the data:
var myLineChart = Chart.Line(mycanvas,{
data:data
})
However, I am looking to set the pointRadius to 5 instead of 1. Essentially, I want to achieve something like this:
var myLineChart = Chart.Line(mycanvas,{
data:data,
datasets: [{ pointRadius: 5 }]
})
Is this possible to accomplish? Thank you!