Perspective Time Series Chart y-axis range

I am indirect addressing to configure the time series chart, pulling data from ignition historian.
image
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

Many thanks.

resolved. it works by linking the series and axis.

2 Likes

How was this resolved? Some detail would help.

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.

Here is my trend:

[
  {
    "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
          }
        }
      }
    }
  }
]

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

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.)

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,

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.

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

[
  {
    "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
          ]
        }
      ]
    }
  }
]

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.)

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

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

1 Like

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!