How to assign each data point with different color in scatter charts in QML
-
Hi Team,
I have a requirement for scatter charts where each data point in a scatter series is to display with different color.
Can you please suggest a way to implement this ?I have implemented a sample ScatterSeries object and assigning scatterSeries.color = "red" is changing the color of entire scatter series
ScatterSeries {
id: scatterSeries
axisX: xAxis
axisY: yAxis
} -
Hi Team,
I have a requirement for scatter charts where each data point in a scatter series is to display with different color.
Can you please suggest a way to implement this ?I have implemented a sample ScatterSeries object and assigning scatterSeries.color = "red" is changing the color of entire scatter series
ScatterSeries {
id: scatterSeries
axisX: xAxis
axisY: yAxis
}@Praveen-Illa
There is currently no way to give each data point in the same series a different colour.
As a workaround, you can split your data points into multiple series (for example, 1 point per series). This will allow you to set different colours to each of the points.