Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved How to assign each data point with different color in scatter charts in QML

    QML and Qt Quick
    1
    2
    208
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Praveen.Illa last edited by Praveen.Illa

      Hi Team,

      I have a requirement for scatter charts where each data point in a scatter series is to display with different color.
      de3b4169-62b8-4f07-936f-639d2970f89c-image.png
      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
      }

      P 1 Reply Last reply Reply Quote 0
      • P
        Praveen.Illa @Praveen.Illa last edited by

        @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.

        1 Reply Last reply Reply Quote 1
        • P
          Praveen.Illa @Praveen.Illa last edited by

          @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.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post