# Problem with Bar Chart

**URL:** <https://forum.inductiveautomation.com/t/problem-with-bar-chart/19014>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [July 30, 2018, 2:32pm UTC](https://forum.inductiveautomation.com/t/problem-with-bar-chart/19014 "2018-07-30T14:32:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexandreFG](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexandrefg/32/74162_2.png) [@AlexandreFG](https://forum.inductiveautomation.com/u/AlexandreFG)\
**Post date:** [July 30, 2018, 2:32pm UTC](https://forum.inductiveautomation.com/t/problem-with-bar-chart/19014/1 "2018-07-30T14:32:34Z")

</div>

Hello guys!  
I have a problem that seems to be simple.

I need to display the table data in the image below, but in the first column there are equal data and for this reason the repeated data is not shown. In this example below I wanted a chart with 5 bars, but it is only showing 3.

Can someone help me?

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/65f7b4a89c7e46c5a47fe8972508646c21e81c46.png)

---

<div class="post-metadata">

**Author:** ![0sm0](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/0sm0/32/15228_2.png) [@0sm0](https://forum.inductiveautomation.com/u/0sm0)\
**Post date:** [July 31, 2018, 3:27am UTC](https://forum.inductiveautomation.com/t/problem-with-bar-chart/19014/2 "2018-07-31T03:27:26Z")

</div>

Looks like your X axis has the same name for 3 of them. Make them all different and see if they appear.

---

<div class="post-metadata">

**Author:** ![AlexandreFG](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexandrefg/32/74162_2.png) [@AlexandreFG](https://forum.inductiveautomation.com/u/AlexandreFG)\
**Post date:** [July 31, 2018, 7:42pm UTC](https://forum.inductiveautomation.com/t/problem-with-bar-chart/19014/3 "2018-07-31T19:42:32Z")

</div>

The problem that needs to be presented with the y-axis values even if the x-axis values are equal

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 31, 2018, 7:58pm UTC](https://forum.inductiveautomation.com/t/problem-with-bar-chart/19014/4 "2018-07-31T19:58:45Z")

</div>

You’ll still need to change the X-axis values in some way, then, or otherwise restructure your chart. JFreeChart, the underlying Java charting library we use, doesn’t allow duplicate keys.

---

<div class="post-metadata">

**Author:** ![AlexandreFG](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexandrefg/32/74162_2.png) [@AlexandreFG](https://forum.inductiveautomation.com/u/AlexandreFG)\
**Post date:** [August 1, 2018, 12:11pm UTC](https://forum.inductiveautomation.com/t/problem-with-bar-chart/19014/5 "2018-08-01T12:11:59Z")

</div>

thank you @paul-griffith . I’m going to change my logic to fit the graph.
