# Perspective Time Series Chart y-axis range

**URL:** <https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 15, 2022, 10:56pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702 "2022-12-15T22:56:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaoliang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chaoliang](https://forum.inductiveautomation.com/u/chaoliang)\
**Post date:** [December 15, 2022, 10:56pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/1 "2022-12-15T22:56:33Z")

</div>

I am indirect addressing to configure the time series chart, pulling data from ignition historian.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/e/6eeefafb36ca8a47a7004cf2b34662196bfe1f4d.png)  
The trend can display the values, but I cannot configure the range of the chart.  
Maybe I missed out some settings, can anyone help out?

for example I want to display the pH value using Y axis range 0-14. Currently it display the range dynamically.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/03f26782bea3b1969a9a0d0a5a42cd5af788d817.png)

Many thanks.

---

<div class="post-metadata">

**Author:** ![chaoliang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chaoliang](https://forum.inductiveautomation.com/u/chaoliang)\
**Post date:** [December 16, 2022, 5:29am UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/2 "2022-12-16T05:29:36Z")

</div>

resolved. it works by linking the series and axis.

---

<div class="post-metadata">

**Author:** ![Hugo\_Ahrens](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hugo_ahrens/32/57472_2.png) [@Hugo\_Ahrens](https://forum.inductiveautomation.com/u/Hugo_Ahrens)\
**Post date:** [January 19, 2024, 5:55pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/3 "2024-01-19T17:55:05Z")

</div>

How was this resolved? Some detail would help.

---

<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:** [January 19, 2024, 6:11pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/4 "2024-01-19T18:11:08Z")

</div>

Right-click on your chart in Project Browser, copy and paste it in here. Please ensure that you format the code using the \</\> button.

If you have a binding on the chart supplying the `series` property then copy the `series` data too (and format that as well).

Finally, make sure that we understand what's wrong and what result you're looking for.

---

<div class="post-metadata">

**Author:** ![Hugo\_Ahrens](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hugo_ahrens/32/57472_2.png) [@Hugo\_Ahrens](https://forum.inductiveautomation.com/u/Hugo_Ahrens)\
**Post date:** [January 19, 2024, 6:20pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/5 "2024-01-19T18:20:08Z")

</div>

Here is my trend:

```auto
[
  {
    "type": "ia.chart.timeseries",
    "version": 0,
    "props": {
      "enablePanZoom": false,
      "series": [
        {
          "name": "Temperature"
        }
      ],
      "plots": [
        {
          "relativeWeight": 1,
          "trends": [],
          "axes": [
            {
              "name": "Y1",
              "min": 0,
              "max": 100,
              "alignment": "left",
              "width": 60,
              "label": {
                "visible": true,
                "text": "",
                "offset": 0,
                "font": {
                  "color": "",
                  "size": 10
                },
                "style": {
                  "classes": ""
                }
              },
              "tick": {
                "color": "#000000",
                "count": 10,
                "label": {
                  "format": "Auto",
                  "font": {
                    "color": "",
                    "size": 10
                  },
                  "style": {
                    "classes": ""
                  }
                },
                "style": {
                  "classes": ""
                }
              },
              "grid": {
                "visible": true,
                "color": "",
                "opacity": 0.9,
                "dashArray": 0,
                "style": {
                  "classes": ""
                }
              },
              "style": {
                "classes": ""
              }
            }
          ],
          "markers": []
        }
      ],
      "title": {
        "visible": true,
        "text": "Recently",
        "height": 20
      }
    },
    "meta": {
      "tooltip": {
        "delay": 0
      },
      "name": "TimeSeriesChart_0"
    },
    "position": {
      "x": 454,
      "y": 187,
      "height": 400,
      "width": 333
    },
    "custom": {},
    "propConfig": {
      "props.series[0].data": {
        "binding": {
          "type": "tag-history",
          "config": {
            "dateRange": {
              "mostRecent": "3",
              "mostRecentUnits": "MIN"
            },
            "returnSize": {
              "type": "FIXED",
              "numRows": "100"
            },
            "tags": [
              {
                "path": "[default]PID_CV"
              }
            ],
            "returnFormat": "Wide",
            "polling": {
              "enabled": true,
              "rate": "1"
            },
            "aggregate": "MinMax",
            "valueFormat": "DATASET",
            "ignoreBadQuality": false,
            "preventInterpolation": false,
            "enableValueCache": true,
            "avoidScanClassValidation": true
          }
        }
      }
    }
  }
]

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/2/922c0cb31b9c7f8976472cd6b4899cfb83b5c567.png)

I'm simply looking to have the Y axis not be automatic but rather 0 to 100.

---

<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:** [January 19, 2024, 7:07pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/6 "2024-01-19T19:07:04Z")

</div>

You didn't supply the data as requested in step 2 of my post. (There's a binding to your tag historian which we don't have access to.)

---

<div class="post-metadata">

**Author:** ![Hugo\_Ahrens](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hugo_ahrens/32/57472_2.png) [@Hugo\_Ahrens](https://forum.inductiveautomation.com/u/Hugo_Ahrens)\
**Post date:** [January 19, 2024, 8:40pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/7 "2024-01-19T20:40:16Z")

</div>

Thanks for your reply! The reason I did not include the second point is that I ran into trouble (understanding how to do what you were asking), I tried to grab the properties, but in the process of doing it moved something and mt trend is no longer trending. Then I thought you might be referring to the Tag History Binding, but again I don't know how to get that in code form. At this point I'm 63% through Inductive University, including all the visual stuff) and really thought I should be able to understand. Turns out 40 years of HMI design feels quite inadequate right now,

---

<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:** [January 19, 2024, 8:46pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/8 "2024-01-19T20:46:23Z")

</div>

No problem.

- Select the chart.
- In the Perspective Property Editor right-click on `PROPS.series`, copy, paste it in here (and format it).

The reason is that you're populating the series property with a query to a database that we don't have. Copying the actual data allows us to delete the binding and just paste in the data that your binding is returning.

---

<div class="post-metadata">

**Author:** ![Hugo\_Ahrens](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hugo_ahrens/32/57472_2.png) [@Hugo\_Ahrens](https://forum.inductiveautomation.com/u/Hugo_Ahrens)\
**Post date:** [January 19, 2024, 8:57pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/9 "2024-01-19T20:57:26Z")

</div>

Ok, got the trend working again (something unchecked the polling in the binding panel), here it is:

```auto
[
  {
    "name": "Temperature",
    "data": {
      "$": [
        "ds",
        192,
        1705697665916
      ],
      "$columns": [
        {
          "name": "t_stamp",
          "type": "Date",
          "data": [
            1705697545698,
            1705697546898,
            1705697546898,
            1705697548098,
            1705697549298,
            1705697550498,
            1705697551698,
            1705697552898,
            1705697552898,
            1705697554098,
            1705697555298,
            1705697556498,
            1705697557698,
            1705697558898,
            1705697558898,
            1705697560098,
            1705697561298,
            1705697562498,
            1705697563698,
            1705697564898,
            1705697564898,
            1705697566098,
            1705697567298,
            1705697568498,
            1705697569698,
            1705697570898,
            1705697570898,
            1705697572098,
            1705697573298,
            1705697574498,
            1705697575698,
            1705697576898,
            1705697576898,
            1705697578098,
            1705697579298,
            1705697580498,
            1705697581698,
            1705697582898,
            1705697582898,
            1705697584098,
            1705697585298,
            1705697586498,
            1705697587698,
            1705697588898,
            1705697588898,
            1705697590098,
            1705697591298,
            1705697592498,
            1705697593698,
            1705697594898,
            1705697596098,
            1705697596098,
            1705697597298,
            1705697598498,
            1705697599698,
            1705697600898,
            1705697602098,
            1705697602098,
            1705697603298,
            1705697604498,
            1705697605698,
            1705697606898,
            1705697608098,
            1705697608098,
            1705697609298,
            1705697610498,
            1705697611698,
            1705697612898,
            1705697614098,
            1705697615298,
            1705697615298,
            1705697616498,
            1705697617698,
            1705697618898,
            1705697620098,
            1705697621298,
            1705697621298,
            1705697622498,
            1705697623698,
            1705697624898,
            1705697626098,
            1705697627298,
            1705697627298,
            1705697628498,
            1705697629698,
            1705697630898,
            1705697632098,
            1705697633298,
            1705697634498,
            1705697634498,
            1705697635698,
            1705697636898,
            1705697638098,
            1705697639298,
            1705697640498,
            1705697640498,
            1705697641698,
            1705697642898,
            1705697644098,
            1705697645298,
            1705697646498,
            1705697646498,
            1705697647698,
            1705697648898,
            1705697650098,
            1705697651298,
            1705697652498,
            1705697652498,
            1705697653698,
            1705697654898,
            1705697656098,
            1705697657298,
            1705697658498,
            1705697658498,
            1705697659698,
            1705697660898,
            1705697662098,
            1705697663298,
            1705697664498
          ]
        },
        {
          "name": "PID_CV",
          "type": "Double",
          "data": [
            32.571495056152344,
            33.52152633666992,
            33.540287017822266,
            33.564666748046875,
            33.50992202758789,
            33.47626495361328,
            33.44894027709961,
            33.42680740356445,
            33.4085693359375,
            50.811153411865234,
            42.44384002685547,
            41.56452560424805,
            41.560211181640625,
            41.54872512817383,
            41.5701789855957,
            41.59434509277344,
            41.607364654541016,
            41.61848831176758,
            41.6285514831543,
            20.770626068115234,
            33.0833740234375,
            33.54384994506836,
            33.54289245605469,
            33.50712585449219,
            33.52200698852539,
            33.47690200805664,
            33.449188232421875,
            33.427696228027344,
            33.40961837768555,
            49.554317474365234,
            42.27560806274414,
            41.59335708618164,
            41.5554084777832,
            41.57822799682617,
            41.56977844238281,
            41.60462188720703,
            41.62010192871094,
            41.62907791137695,
            41.6256217956543,
            34.763545989990234,
            33.96160125732422,
            33.66399383544922,
            33.595401763916016,
            33.54325485229492,
            33.50222396850586,
            33.47054672241211,
            33.442901611328125,
            33.422218322753906,
            33.39692687988281,
            37.148075103759766,
            40.89234161376953,
            41.40095138549805,
            41.516685485839844,
            41.583038330078125,
            41.5759162902832,
            41.592803955078125,
            41.61016845703125,
            41.62200927734375,
            41.62998962402344,
            40.823402404785156,
            34.33686447143555,
            33.69336700439453,
            33.551475524902344,
            33.495662689208984,
            33.48986053466797,
            33.44647216796875,
            33.41898727416992,
            33.402400970458984,
            33.40947341918945,
            38.54176330566406,
            41.280555725097656,
            41.49135208129883,
            41.53759002685547,
            41.5645866394043,
            41.58475112915039,
            41.5994987487793,
            41.61370849609375,
            41.624114990234375,
            41.6320686340332,
            37.232513427734375,
            33.87134552001953,
            33.588687896728516,
            33.586856842041016,
            33.526546478271484,
            33.45486831665039,
            33.45984649658203,
            33.43423843383789,
            33.41524887084961,
            83.95556640625,
            43.518985748291016,
            41.640159606933594,
            41.53683090209961,
            41.564266204833984,
            41.582481384277344,
            41.603271484375,
            41.61529541015625,
            41.61067199707031,
            41.624267578125,
            41.6317024230957,
            36.101802825927734,
            33.932037353515625,
            33.639549255371094,
            33.567420959472656,
            33.50138473510742,
            33.46051025390625,
            33.4356689453125,
            33.44633102416992,
            33.42551803588867,
            33.40298843383789,
            40.957523345947266,
            41.4627685546875,
            41.51497268676758,
            41.54634475708008,
            41.56635665893555,
            41.59616470336914,
            41.61375045776367,
            41.62384033203125,
            41.620147705078125,
            41.631072998046875
          ]
        }
      ]
    }
  }
]

```

---

<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:** [January 19, 2024, 11:07pm UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/10 "2024-01-19T23:07:14Z")

</div>

OK. Somehow you have no trend defined in `plots.0.trends`.

- Expand `plots.0.trends`.
- Hit the +Add Array Element button.
- Set `plots.0.trends.series : Temperature` (from the dropdown).
- You have an axis `Y1` already defined under `plots.0.axes.0` and your axis min and max are already set there. We need to use that on the trend.  
Set `plots.0.trends.0.axis : Y1` The Y-axis should now span 0 to 100.
- My Y-axis incremented in steps of 11.1. I fixed this with  
`plots.0.axes.0.tick.count : 11`. (It was 10.)

---

<div class="post-metadata">

**Author:** ![Hugo\_Ahrens](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hugo_ahrens/32/57472_2.png) [@Hugo\_Ahrens](https://forum.inductiveautomation.com/u/Hugo_Ahrens)\
**Post date:** [January 20, 2024, 12:20am UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/11 "2024-01-20T00:20:24Z")

</div>

Thank you Transistor! Getting close, but the plots.0.trends.0.axis dropdown does nothing. How do I get the Y1 to appear there?

---

<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:** [January 20, 2024, 12:28am UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/12 "2024-01-20T00:28:00Z")

</div>

The Y1 axis was defined. It's in your post 5. Try recreating it.

> [@Hugo\_Ahrens](#):
>
> ```auto
> "axes": [
> {
> "name": "Y1",
> "min": 0,
> "max": 100,
> "alignment": "left",
> 
> ```

 ![TimeSeries Y1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/0/e0b172ae8f567dcdc1de30e58054fa597ea2538b.png)

---

<div class="post-metadata">

**Author:** ![Hugo\_Ahrens](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hugo_ahrens/32/57472_2.png) [@Hugo\_Ahrens](https://forum.inductiveautomation.com/u/Hugo_Ahrens)\
**Post date:** [January 20, 2024, 2:35am UTC](https://forum.inductiveautomation.com/t/perspective-time-series-chart-y-axis-range/67702/13 "2024-01-20T02:35:36Z")

</div>

Argh!. Finally got it. My problem was 1. I did not realize I could type something in to the left of the axis: pulldown-arrow and 2. the axes.0 defined Y1 disappeared (so I had to recreate it. Thanks for your patience!
