Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to assign each data point with different color in scatter charts in QML
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 640 Views
  • 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 Offline
    P Offline
    Praveen.Illa
    wrote on last edited by Praveen.Illa
    #1

    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
    0
    • P 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 Offline
      P Offline
      Praveen.Illa
      wrote on last edited by
      #2

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

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved