# Perspective XY Gantt Chart - color coding and one row chart needed

**URL:** <https://forum.inductiveautomation.com/t/perspective-xy-gantt-chart-color-coding-and-one-row-chart-needed/60398>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 6, 2022, 1:07pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-gantt-chart-color-coding-and-one-row-chart-needed/60398 "2022-06-06T13:07:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mk\_gd](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mk\_gd](https://forum.inductiveautomation.com/u/mk_gd)\
**Post date:** [June 6, 2022, 1:07pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-gantt-chart-color-coding-and-one-row-chart-needed/60398/1 "2022-06-06T13:07:49Z")

</div>

[XY Chart Example - Gantt Chart - Ignition User Manual 8.1 - Ignition Documentation (inductiveautomation.com)](https://docs.inductiveautomation.com/display/DOC81/XY+Chart+Example+-+Gantt+Chart)

I followed this example making a gantt chart but my datasources is a dataset and I need my chart to look like this:  
 ![2022-06-06_09h02_51](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e5391b4b8f0f79a434df0294fc8c3f40c383d845.png)  
(this above chart is based off of the example from the link where I only kept the the name ‘John’ in my dataSources to get just one row)

but my current dataset makes my chart look like this  
 ![2022-06-06_09h03_03](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7baf2b50532e36801c69a322f6341028e3f8a619.png)

how do i fix that chart to where it will only produce one row?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 6, 2022, 6:24pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-gantt-chart-color-coding-and-one-row-chart-needed/60398/2 "2022-06-06T18:24:04Z")

</div>

Your first mage isn’t showing. Can you edit to fix and add in the code for the chart? (Right-click it in the Project Browser and paste it into your question using the `</>` code formatting button. If you want to be cool you can collapse the code by selecting it, hit the gear icon and _Hide Details_.)
