# Perspective - Time Series Chart , how to change color of line chart?

**URL:** <https://forum.inductiveautomation.com/t/perspective-time-series-chart-how-to-change-color-of-line-chart/39093>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 26, 2020, 2:01pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-how-to-change-color-of-line-chart/39093 "2020-09-26T14:01:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [September 29, 2020, 3:50am UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-how-to-change-color-of-line-chart/39093/4 "2020-09-29T03:50:53Z")

</div>

The simplest way is to set the colours in the `props.defaultStyles.colors`, e.g.:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/d/4df0fce36e27f8bad4ec006d78e739a6e309a654.png)

Alternatively, and more precisely, you can also set the colours, as I said in my previous post, in the `this.props.plots[x].trends[y].columns[z]` property. Using this method, you can specify what colour you want for each pen based on its pen name.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/5/4570abf211f961cce75bfb5bbb07197dd249872b.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-time-series-chart-how-to-change-color-of-line-chart/39093)._
