How to add color gradient for different range of points in graph series in qml?
-
wrote on 8 Oct 2023, 13:35 last edited by
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
wrote on 20 Oct 2023, 09:20 last edited bylike this
-
like this
wrote on 20 Oct 2023, 09:30 last edited by@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.
wrote on 20 Oct 2023, 09:35 last edited by@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
wrote on 20 Oct 2023, 09:39 last edited by@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....
wrote on 20 Oct 2023, 09:42 last edited by Vijaykarthikeyan@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
wrote on 20 Oct 2023, 09:43 last edited by -
wrote on 20 Oct 2023, 09:48 last edited by
@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?
wrote on 20 Oct 2023, 09:49 last edited by@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?
wrote on 20 Oct 2023, 10:02 last edited by@JonB ok..Ill try it
-
wrote on 25 Oct 2023, 08:16 last edited by
i found the answer in https://forum.qt.io/topic/112803/two-colors-of-the-qlineseries/6?_=1698215994070
-