# How to show PLC Tag data in Vertical Bar Chart using Web Dev resource

**URL:** <https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 29, 2023, 8:31am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094 "2023-07-29T08:31:01Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [July 29, 2023, 11:36am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/21 "2023-07-29T11:36:53Z")

</div>

> [@Shashiraj\_P\_S](#):
>
> i want to display realtime data through plc tag in bar chart

Please stop saying this. You have said it eight times but have not shown us your work.

Have you got the data in a form that the chart can use - like a dataset or list with one column with category name and another with the value?

---

<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:** [July 29, 2023, 11:37am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/22 "2023-07-29T11:37:53Z")

</div>

I get what he means: he has 5 tags with realtime values and wants to display them in bars like in his screenshot. I'm just trying to force the xy chart to do this... I haven't used it much

---

<div class="post-metadata">

**Author:** ![Shashiraj\_P\_S](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Shashiraj\_P\_S](https://forum.inductiveautomation.com/u/Shashiraj_P_S)\
**Post date:** [July 29, 2023, 11:38am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/23 "2023-07-29T11:38:39Z")

</div>

yes absolutely right

---

<div class="post-metadata">

**Author:** ![Shashiraj\_P\_S](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Shashiraj\_P\_S](https://forum.inductiveautomation.com/u/Shashiraj_P_S)\
**Post date:** [July 29, 2023, 11:42am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/24 "2023-07-29T11:42:48Z")

</div>

In XY Chart it is showing line chart not bar chart how to change this one as bar chart?

---

<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:** [July 29, 2023, 11:43am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/25 "2023-07-29T11:43:53Z")

</div>

> [@How to show PLC Tag data in Vertical Bar Chart using Web Dev resource](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/15):
>
> Use Perspective's XY Chart. The above image is the default chart with the following modifications: props.series.0.render : column props.series.1.render : column You probably want the X-axis to display categories and not dates. For this you will set props.xAxes.0.render : category

---

<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:** [July 29, 2023, 11:46am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/26 "2023-07-29T11:46:55Z")

</div>

I have no idea how to use the XY chart in column mode... there's nothing in the user manual for it (that I can find at least) 😕 Very confusing

---

<div class="post-metadata">

**Author:** ![Shashiraj\_P\_S](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Shashiraj\_P\_S](https://forum.inductiveautomation.com/u/Shashiraj_P_S)\
**Post date:** [July 29, 2023, 11:47am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/27 "2023-07-29T11:47:50Z")

</div>

Please can you help me for this?

---

<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:** [July 29, 2023, 11:48am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/28 "2023-07-29T11:48:55Z")

</div>

Time Series Chart has Bar chart option  
[https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Time+Series+Chart](https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Time+Series+Chart)

---

<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:** [July 29, 2023, 11:49am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/29 "2023-07-29T11:49:52Z")

</div>

Can't use timeseries - it's not time-based

---

<div class="post-metadata">

**Author:** ![Shashiraj\_P\_S](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Shashiraj\_P\_S](https://forum.inductiveautomation.com/u/Shashiraj_P_S)\
**Post date:** [July 29, 2023, 11:52am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/30 "2023-07-29T11:52:42Z")

</div>

In XY Chart there is no option to change bar i have tried this now

---

<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:** [July 29, 2023, 11:53am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/31 "2023-07-29T11:53:23Z")

</div>

There is  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/3/03119b6ec9c97632940b94ba72f96982539e5235.png)

---

<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:** [July 29, 2023, 11:55am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/32 "2023-07-29T11:55:23Z")

</div>

The code word for 'bar' is _'column.'_

---

<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:** [July 29, 2023, 11:56am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/33 "2023-07-29T11:56:45Z")

</div>

> [@Perspective chart question3](https://forum.inductiveautomation.com/t/perspective-chart-question3/72693/2):
>
> Use 3 series on the XY chart (temperature, pressure, test). Under each Series in the XY Chart set render to 'column' and column.appearance.stacked to True.

---

<div class="post-metadata">

**Author:** ![Shashiraj\_P\_S](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Shashiraj\_P\_S](https://forum.inductiveautomation.com/u/Shashiraj_P_S)\
**Post date:** [July 29, 2023, 11:56am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/34 "2023-07-29T11:56:51Z")

</div>

i have changed to column, but it is displaying horizontal bar chart not vertical bar chart

---

<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:** [July 29, 2023, 11:57am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/35 "2023-07-29T11:57:12Z")

</div>

> [@Horizontal Bar Chart - XY Chart](https://forum.inductiveautomation.com/t/horizontal-bar-chart-xy-chart/68069/2):
>
> Sure. [XY horizontal bar chart] 
> 
> > **XY Chart JSON**
> >
> > [ { "type": "ia.chart.xy", "version": 0, "props": { "title": { "text": "props.title.text" }, "xAxes": [ { a\> "name": "count", "label": { "enabled": true, "text": "props.xAxes.0.label.text", "color"…

Edit: Woops wrong topic

---

<div class="post-metadata">

**Author:** ![Shashiraj\_P\_S](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Shashiraj\_P\_S](https://forum.inductiveautomation.com/u/Shashiraj_P_S)\
**Post date:** [July 29, 2023, 11:58am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/36 "2023-07-29T11:58:03Z")

</div>

I want Vertical bar chart not horizontal

---

<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:** [July 29, 2023, 11:58am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/37 "2023-07-29T11:58:40Z")

</div>

![XY bar chart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/6/1681341f24b60613c942bd8a54360d371e7a0a01.png)

Paste the code below into your view in the Project Browser.

> **XY Chart column (bar) mode JSON.**
>
> ```auto
> [
> {
> "type": "ia.chart.xy",
> "version": 0,
> "props": {
> "xAxes": [
> {
> "name": "category",
> "label": {
> "enabled": true,
> "text": "Machine name",
> "color": ""
> },
> "visible": true,
> "tooltip": {
> "enabled": true,
> "text": "",
> "cornerRadius": 3,
> "pointerLength": 4,
> "background": {
> "color": "",
> "opacity": 1
> }
> },
> "inversed": false,
> "render": "category",
> "category": {
> "break": {
> "enabled": false,
> "startCategory": "",
> "endCategory": "",
> "size": 0.05
> }
> },
> "date": {
> "baseInterval": {
> "enabled": false,
> "timeUnit": "hour",
> "count": 1,
> "skipEmptyPeriods": false
> },
> "range": {
> "max": "",
> "min": "",
> "useStrict": false
> },
> "break": {
> "enabled": false,
> "startDate": "",
> "endDate": "",
> "size": 0.05
> },
> "inputFormat": "yyyy-MM-dd kk:mm:ss",
> "format": "M/d"
> },
> "value": {
> "range": {
> "max": "",
> "min": "",
> "useStrict": false
> },
> "logarithmic": false,
> "break": {
> "enabled": false,
> "startValue": 0,
> "endValue": 100,
> "size": 0.05
> },
> "format": "#,###.##"
> },
> "appearance": {
> "opposite": false,
> "inside": false,
> "labels": {
> "color": "",
> "opacity": 1,
> "rotation": 0,
> "verticalCenter": "middle",
> "horizontalCenter": "middle"
> },
> "grid": {
> "color": "",
> "opacity": 1,
> "dashArray": "",
> "minDistance": 60,
> "position": 0.5
> },
> "font": {
> "size": "",
> "weight": 500
> }
> }
> }
> ],
> "yAxes": [
> {
> "name": "count",
> "label": {
> "enabled": true,
> "text": "Count",
> "color": ""
> },
> "visible": true,
> "tooltip": {
> "enabled": true,
> "text": "",
> "cornerRadius": 3,
> "pointerLength": 4,
> "background": {
> "color": "",
> "opacity": 1
> }
> },
> "inversed": false,
> "render": "value",
> "category": {
> "break": {
> "enabled": false,
> "startCategory": "",
> "endCategory": "",
> "size": 0.05
> }
> },
> "date": {
> "baseInterval": {
> "enabled": false,
> "timeUnit": "hour",
> "count": 1,
> "skipEmptyPeriods": false
> },
> "range": {
> "max": "",
> "min": "",
> "useStrict": false
> },
> "break": {
> "enabled": false,
> "startDate": "",
> "endDate": "",
> "size": 0.05
> },
> "inputFormat": "yyyy-MM-dd kk:mm:ss",
> "format": "M/d/yyyy HH:mm:ss"
> },
> "value": {
> "range": {
> "max": "",
> "min": 0,
> "useStrict": false
> },
> "logarithmic": false,
> "break": {
> "enabled": false,
> "startValue": 0,
> "endValue": 100,
> "size": 0.05
> },
> "format": "#,###.##"
> },
> "appearance": {
> "opposite": false,
> "inside": false,
> "labels": {
> "color": "",
> "opacity": 1,
> "rotation": 0,
> "verticalCenter": "middle",
> "horizontalCenter": "middle"
> },
> "grid": {
> "color": "",
> "opacity": 1,
> "dashArray": "",
> "minDistance": null,
> "position": 0.5
> },
> "font": {
> "size": "",
> "weight": 500
> }
> }
> }
> ],
> "series": [
> {
> "name": "machine",
> "label": {
> "text": "Count"
> },
> "visible": true,
> "hiddenInLegend": false,
> "defaultState": {
> "visible": true
> },
> "data": {
> "source": "data",
> "x": "machine",
> "y": "count"
> },
> "xAxis": "category",
> "yAxis": "count",
> "zIndex": 0,
> "tooltip": {
> "enabled": true,
> "text": "{name}: [bold]{valueY}[/]",
> "cornerRadius": 3,
> "pointerLength": 4,
> "background": {
> "color": "",
> "opacity": 1
> }
> },
> "render": "column",
> "candlestick": {
> "open": {
> "x": "",
> "y": ""
> },
> "high": {
> "x": "",
> "y": ""
> },
> "low": {
> "x": "",
> "y": ""
> },
> "appearance": {
> "fill": {
> "color": "",
> "opacity": 1
> },
> "stroke": {
> "color": "",
> "opacity": 1,
> "width": 1
> },
> "stacked": false,
> "deriveFieldsFromData": {
> "fill": {
> "color": "",
> "opacity": ""
> },
> "stroke": {
> "color": "",
> "opacity": "",
> "width": ""
> }
> },
> "heatRules": {
> "enabled": false,
> "max": "",
> "min": "",
> "dataField": ""
> }
> }
> },
> "column": {
> "open": {
> "x": "",
> "y": ""
> },
> "appearance": {
> "fill": {
> "color": "",
> "opacity": 1
> },
> "stroke": {
> "color": "",
> "opacity": 1,
> "width": 1
> },
> "stacked": false,
> "width": null,
> "height": null,
> "deriveFieldsFromData": {
> "fill": {
> "color": "",
> "opacity": ""
> },
> "stroke": {
> "color": "",
> "opacity": "",
> "width": ""
> }
> },
> "heatRules": {
> "enabled": false,
> "max": "",
> "min": "",
> "dataField": ""
> }
> }
> },
> "line": {
> "open": {
> "x": "",
> "y": ""
> },
> "appearance": {
> "connect": true,
> "tensionX": 1,
> "tensionY": 1,
> "minDistance": 0.5,
> "stroke": {
> "width": 3,
> "opacity": 1,
> "color": "",
> "dashArray": ""
> },
> "fill": {
> "opacity": 0,
> "color": ""
> },
> "bullets": [
> {
> "enabled": false,
> "render": "circle",
> "width": 10,
> "height": 10,
> "label": {
> "text": "{value}",
> "position": {
> "dx": 0,
> "dy": 0
> }
> },
> "fill": {
> "color": "",
> "opacity": 1
> },
> "stroke": {
> "color": "",
> "opacity": 1,
> "width": 1
> },
> "rotation": 0,
> "tooltip": {
> "enabled": true,
> "text": "{name}: [bold]{valueY}[/]",
> "cornerRadius": 3,
> "pointerLength": 4,
> "background": {
> "color": "",
> "opacity": 1
> }
> },
> "deriveFieldsFromData": {
> "fill": {
> "color": "",
> "opacity": ""
> },
> "stroke": {
> "color": "",
> "opacity": "",
> "width": ""
> },
> "rotation": ""
> },
> "heatRules": {
> "enabled": false,
> "max": 100,
> "min": 2,
> "dataField": ""
> }
> }
> ]
> }
> },
> "stepLine": {
> "open": {
> "x": "",
> "y": ""
> },
> "appearance": {
> "connect": true,
> "tensionX": 1,
> "tensionY": 1,
> "minDistance": 0.5,
> "stroke": {
> "width": 3,
> "opacity": 1,
> "color": "",
> "dashArray": ""
> },
> "fill": {
> "opacity": 0,
> "color": ""
> },
> "bullets": [
> {
> "enabled": true,
> "render": "circle",
> "width": 10,
> "height": 10,
> "label": {
> "text": "{value}",
> "position": {
> "dx": 0,
> "dy": 0
> }
> },
> "fill": {
> "color": "",
> "opacity": 1
> },
> "stroke": {
> "color": "",
> "opacity": 1,
> "width": 1
> },
> "rotation": 0,
> "tooltip": {
> "enabled": true,
> "text": "{name}: [bold]{valueY}[/]",
> "cornerRadius": 3,
> "pointerLength": 4,
> "background": {
> "color": "",
> "opacity": 1
> }
> },
> "deriveFieldsFromData": {
> "fill": {
> "color": "",
> "opacity": ""
> },
> "stroke": {
> "color": "",
> "opacity": "",
> "width": ""
> },
> "rotation": ""
> },
> "heatRules": {
> "enabled": false,
> "max": 100,
> "min": 2,
> "dataField": ""
> }
> }
> ]
> }
> }
> }
> ],
> "dataSources": {
> "data": [
> {
> "machine": "15mm widgets",
> "count": 2500
> },
> {
> "machine": "25mm widgets",
> "count": 1832
> },
> {
> "machine": "35mm widgets",
> "count": 2763
> }
> ]
> }
> },
> "meta": {
> "name": "XYChart"
> },
> "position": {
> "basis": "375px"
> },
> "custom": {}
> }
> ]
> 
> ```

---

<div class="post-metadata">

**Author:** ![Shashiraj\_P\_S](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Shashiraj\_P\_S](https://forum.inductiveautomation.com/u/Shashiraj_P_S)\
**Post date:** [July 29, 2023, 11:59am UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/38 "2023-07-29T11:59:59Z")

</div>

ok

---

<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:** [July 29, 2023, 12:00pm UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/39 "2023-07-29T12:00:38Z")

</div>

Do the opposite of this:

> [@How to Switch a Vertical Bar Chart to Horizontal Bar Chart in XY chart Component in Perspective?](https://forum.inductiveautomation.com/t/how-to-switch-a-vertical-bar-chart-to-horizontal-bar-chart-in-xy-chart-component-in-perspective/58103/5):
>
> It looks like you are not using a XY Chart. Use a XY Chart component, and set the series render property to column. Then, follow the instructions above to achieve a horizontal result. [image]

---

<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:** [July 29, 2023, 12:00pm UTC](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094/40 "2023-07-29T12:00:59Z")

</div>

How would you do multiple colours though?

[Previous page](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094.md?page=1)

[Next page](https://forum.inductiveautomation.com/t/how-to-show-plc-tag-data-in-vertical-bar-chart-using-web-dev-resource/77094.md?page=3)
