Adjust Scatterplot Circle Radius
Hi, I have a rather large data set I want to plot in a scatter graph. How can i set the radius/diameter of the data points to prevent overlap.
Thanks s
Hi @sandrolino ,
I think point.r option to change the radius of each point. Could you try this option?
If the radius needs be change for each point, this option needs to be extend to accept function to change the radius according to the data.
Thanks a lot, worked out for me (just needed to adjust the radius uniform, not dependent on data ). Great work btw !!
OK :+1:
How do you use point.r option? I couldn't find any documentation on options for the charts. Can you post a sample of code? Great library btw. I appreciate your work on it.
mbokli, sorry for the late reply. here an example
var chart = c3.generate({
bindto: '#chart',
data: {
x: 't',
columns: [
DayVec,
y
],
},
axis: {
x: {label: 'Day of Year',tick: {count: 5} },
y: { label: 'Temperature °C'}
},
point: {r:.1}
});