# Bug in Report with Bar chart(?)

**URL:** <https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647>\
**Category:** Ignition\
**Created:** [October 22, 2015, 8:25am UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647 "2015-10-22T08:25:48Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![stokstaart](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@stokstaart](https://forum.inductiveautomation.com/u/stokstaart)\
**Post date:** [October 22, 2015, 8:25am UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/1 "2015-10-22T08:25:48Z")

</div>

Is it me or does anyone else have the following problem:

We make a Timeseries bar-chart in the report and fill it with data.

Now switching between ‘Design’ and ‘Preview’ alters the ‘Bar-Width’ of the bar chart (multiplies by 10 so originally 3.500 becomes 35.000)

\*) EDIT:  
Same goes for the Gap Threshold…

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 22, 2015, 4:24pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/2 "2015-10-22T16:24:42Z")

</div>

By “Timeseries bar-chart” do you mean a time series chart with the pen changed to a bar style?

---

<div class="post-metadata">

**Author:** ![rinze.oost](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@rinze.oost](https://forum.inductiveautomation.com/u/rinze.oost)\
**Post date:** [October 22, 2015, 6:09pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/3 "2015-10-22T18:09:38Z")

</div>

Yes that right. I have the same problem here.  
I have first pen on style line and shape.  
The second pen on style digital.

After switching back and forward between design and preview mode the Bar width and gap threshold are changed. Every time I switch the values are getting bigger.

---

<div class="post-metadata">

**Author:** ![stokstaart](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@stokstaart](https://forum.inductiveautomation.com/u/stokstaart)\
**Post date:** [October 27, 2015, 1:35pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/4 "2015-10-27T13:35:15Z")

</div>

> [@KathyApplebaum](#):
>
> By "Timeseries bar-chart" do you mean a time series chart with the pen changed to a bar style?

Would be great if you could confirm this is a bug Y/N?

If not we must be doing something wrong!

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 27, 2015, 4:18pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/5 "2015-10-27T16:18:58Z")

</div>

Sorry for not replying sooner – I’ve been out with an injury.

I can’t replicate this behavior, and it’s certainly not expected. Your best bet is to prepare a small project export (including data) that replicates this behavior and get it to our tech support department. They can either tell you what you’re doing wrong, or file a bug fix ticket. Thanks!

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [October 27, 2015, 8:41pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/6 "2015-10-27T20:41:53Z")

</div>

Set your designer to a locale that uses a comma as decimal seperator (e.g. DE\_de), then try again 😉. The bug is reproducable for all properties of the report designer that allow float values.  
There was a similar problem some time ago, see [here](https://inductiveautomation.com/forum/viewtopic.php?f=72&t=8780). You should really start to test new releases with other locales.

---

<div class="post-metadata">

**Author:** ![stokstaart](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@stokstaart](https://forum.inductiveautomation.com/u/stokstaart)\
**Post date:** [October 30, 2015, 7:27am UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/7 "2015-10-30T07:27:38Z")

</div>

[quote=“KathyApplebaum”]Sorry for not replying sooner – I’ve been out with an injury.

I can’t replicate this behavior, and it’s certainly not expected. Your best bet is to prepare a small project export (including data) that replicates this behavior and get it to our tech support department. They can either tell you what you’re doing wrong, or file a bug fix ticket. Thanks![/quote]

Kathy, i hope nothing serious???

Were you able to reproduce this issue with the comments Chi posted??

I am not in control of the server hosting Ignition so i seem unable to change the locale…

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 30, 2015, 3:43pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/8 "2015-10-30T15:43:58Z")

</div>

Nothing that a few stitches, time, and lots of pain meds won’t handle. :\ Thanks for asking.

I have good news and I have bad news. I was able to replicate a problem with float values in another locale, just not _this problem_. ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:") However, I have a feeling a fix for one will fix both.

Here’s what I did to replicate:

- I launched a French vm I have (Linux Mint, installed in French from the beginning to insure that all OS settings would be French, as well insuring Java would be as French as possible. Java sometimes caches info from its first install, which drives me insane when I’m trying to solve locale issues).
- Launched ignition, made a report with an XY chart. Set the bar width to “3,5”, tabbed out of the field, everything seemed good.
- Went to the preview pane, and back to the design pane. The bar width did not multiply by 10, but it lost the fractional portion – it was just “3”. I’m pretty sure I see where this is happening the the serialization (saving) of the report, which happens every time you leave the design pane. Now I need to think about the best way to fix it. Unfortunately, reports have to be serialized a little differently than Vision components, and that’s what’s causing the localization problems.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [October 30, 2015, 3:59pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/9 "2015-10-30T15:59:48Z")

</div>

Hi Kathy,  
the difference is that french uses a space as a grouping character (1 999,9), I tested in german that uses a dot (1.999,9). Thats why the value is multiplied by 10 for me and decimal places are cutted of for you during string number conversion.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 30, 2015, 4:10pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/10 "2015-10-30T16:10:13Z")

</div>

Sounds reasonable. I had also planned to also test any fixes in an Italian vm (they also use . as a thousands separator).

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [October 30, 2015, 8:23pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/11 "2015-10-30T20:23:34Z")

</div>

The fix is done, and should be in the first 7.8.1 rc, hopefully coming out in a few weeks.

---

<div class="post-metadata">

**Author:** ![stokstaart](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@stokstaart](https://forum.inductiveautomation.com/u/stokstaart)\
**Post date:** [November 4, 2015, 12:16pm UTC](https://forum.inductiveautomation.com/t/bug-in-report-with-bar-chart/10647/12 "2015-11-04T12:16:20Z")

</div>

In the mean time here’s a quick&dirty fix:  
set both ‘Bar-Width’ and ‘Gap Threshold’ to 0 (zero). It doesn’t look great but it keeps its value when switching form/to Preview…
