How to add color gradient for different range of points in graph series in qml?
-
I'm using Spline series..I want to show that the point in the series should have different colors based on the values within the range.. like..from 0 to 10 the range of points should be green,last 10 points in the color red..i tried to change the color of the line,but it is changing for the whole graph series
-
I'm using Spline series..I want to show that the point in the series should have different colors based on the values within the range.. like..from 0 to 10 the range of points should be green,last 10 points in the color red..i tried to change the color of the line,but it is changing for the whole graph series
like this
-
like this
@Vijaykarthikeyan
Is this what void QXYSeries::setPointsConfiguration(const QHash<int, QHash<QXYSeries::PointConfiguration, QVariant>> &pointsConfiguration) is for?Enables customizing the configuration of multiple points as specified by pointsConfiguration.
-
@Vijaykarthikeyan
Is this what void QXYSeries::setPointsConfiguration(const QHash<int, QHash<QXYSeries::PointConfiguration, QVariant>> &pointsConfiguration) is for?Enables customizing the configuration of multiple points as specified by pointsConfiguration.
@JonB Yeah..I forgot to add that I'm using Qt 5.15.2..IN that documentatipon they have mentioned this function was introduced since 6.2
-
@JonB Yeah..I forgot to add that I'm using Qt 5.15.2..IN that documentatipon they have mentioned this function was introduced since 6.2
@Vijaykarthikeyan ...And I have a feeling that means you cannot do it in 5.x....
-
@Vijaykarthikeyan ...And I have a feeling that means you cannot do it in 5.x....
@JonB ok ..thank you..this is my longst search..now i find out the answer..thanks
-
@JonB ok ..thank you..this is my longst search..now i find out the answer..thanks
-
@JonB Yeah..the 1st link says all..I have to split the series..each one for each color..But what if I want more colors?
-
@JonB Yeah..the 1st link says all..I have to split the series..each one for each color..But what if I want more colors?
@Vijaykarthikeyan What answer is there other than as many splits as different color segments?
-
@Vijaykarthikeyan What answer is there other than as many splits as different color segments?
@JonB ok..Ill try it
-
i found the answer in https://forum.qt.io/topic/112803/two-colors-of-the-qlineseries/6?_=1698215994070
-