# Help setting dynamic plot marker color

**URL:** <https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 25, 2023, 7:50pm UTC](https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884 "2023-04-25T19:50:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isabela\_Babcock](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@Isabela\_Babcock](https://forum.inductiveautomation.com/u/Isabela_Babcock)\
**Post date:** [April 25, 2023, 7:50pm UTC](https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884/1 "2023-04-25T19:50:53Z")

</div>

Hello,

I am new to Designer and looking to have a scatter plot chart with different color markers based on a specific value.

Consider dataset d1:

- Currently, it returns two values: a timestamp and a reading value
- Those values will be distributed in the chart based on the timestamp
- Each reading is generated by a sensor

I am looking to have each dot on the chart to be color coded, so we know which sensor a specific data point on the chart is associated with. The dataset can be updated to include the sensor associated with each reading, but I am not sure if I can use that third column to set the colors for the chart.

Please see attached.

 ![scatter](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/8/d8bdcf06a4e7696e89f3c4939c7755f8efcbec02.png)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [April 26, 2023, 12:11am UTC](https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884/2 "2023-04-26T00:11:46Z")

</div>

Seems like a job for DateTime Scatter Chart from ApexCharts.  
[Scatter - Datetime – ApexCharts.js](https://apexcharts.com/javascript-chart-demos/scatter-charts/datetime/)  
[https://forum.inductiveautomation.com/t/kyvislabs-apexchart-module/](https://forum.inductiveautomation.com/t/kyvislabs-apexchart-module/)

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [April 26, 2023, 5:03am UTC](https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884/3 "2023-04-26T05:03:56Z")

</div>

Are you developing in Vision or Perspective?

---

<div class="post-metadata">

**Author:** ![Isabela\_Babcock](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@Isabela\_Babcock](https://forum.inductiveautomation.com/u/Isabela_Babcock)\
**Post date:** [April 26, 2023, 11:17am UTC](https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884/4 "2023-04-26T11:17:51Z")

</div>

I believe it is Perspective, since the object is nested under the Perspective folder in Designer.

---

<div class="post-metadata">

**Author:** ![Isabela\_Babcock](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@Isabela\_Babcock](https://forum.inductiveautomation.com/u/Isabela_Babcock)\
**Post date:** [April 26, 2023, 12:03pm UTC](https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884/5 "2023-04-26T12:03:25Z")

</div>

Thanks! I asked our admin to install the module. So there is no other way to change the color of those markers, right?

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [April 27, 2023, 1:35am UTC](https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884/6 "2023-04-27T01:35:42Z")

</div>

You definitely can do a Scatter TimeSeriesChart instead of ApexCharts (Apexcharts looks fancies IMO), but maybe I misunderstood what you are trying to do in your first post. Colour based on sensor or based on value.

> [@Isabela\_Babcock](#):
>
> color markers based on a specific value.

> [@Isabela\_Babcock](#):
>
> to be color coded, so we know which sensor a specific data point on the chart is associated with

Maybe there is some convoluted way to bind colour to the range of values.

---

<div class="post-metadata">

**Author:** ![Isabela\_Babcock](https://avatars.discourse-cdn.com/v4/letter/i/ee7513/32.png) [@Isabela\_Babcock](https://forum.inductiveautomation.com/u/Isabela_Babcock)\
**Post date:** [April 27, 2023, 11:35am UTC](https://forum.inductiveautomation.com/t/help-setting-dynamic-plot-marker-color/72884/7 "2023-04-27T11:35:18Z")

</div>

Sorry for the confusion, it would be based on sensor.  
Right now we only reference the actual reading values, which represent the various markers on the plot.  
I want such markers to display in a different color based on the sensor that originated each reading.
