# Box and Whiskers Chart - Axis Range

**URL:** <https://forum.inductiveautomation.com/t/box-and-whiskers-chart-axis-range/25707>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 11, 2019, 12:40am UTC](https://forum.inductiveautomation.com/t/box-and-whiskers-chart-axis-range/25707 "2019-06-11T00:40:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidWisely](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davidwisely/32/10482_2.png) [@DavidWisely](https://forum.inductiveautomation.com/u/DavidWisely)\
**Post date:** [June 11, 2019, 12:40am UTC](https://forum.inductiveautomation.com/t/box-and-whiskers-chart-axis-range/25707/1 "2019-06-11T00:40:09Z")

</div>

I have multiple Box and Whiskers charts that I would like to compare, but the Axis is Auto-Ranged so it varies slightly for each chart. Is there a way to fix the Range so that they can be compared easily?  
Thanks,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b8d5b13802d0d56e13a6824e90640b6f20c10feb.png)

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [June 11, 2019, 2:58pm UTC](https://forum.inductiveautomation.com/t/box-and-whiskers-chart-axis-range/25707/2 "2019-06-11T14:58:07Z")

</div>

```auto
chartComponent = event.source.parent.getComponent('Box and Whisker Chart')
chart = chartComponent.getChart()

plot = chart.getPlot()

axis = plot.getRangeAxis()
axis.setRange(12400,12600)

```

---

<div class="post-metadata">

**Author:** ![DavidWisely](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davidwisely/32/10482_2.png) [@DavidWisely](https://forum.inductiveautomation.com/u/DavidWisely)\
**Post date:** [June 11, 2019, 9:27pm UTC](https://forum.inductiveautomation.com/t/box-and-whiskers-chart-axis-range/25707/3 "2019-06-11T21:27:56Z")

</div>

Great! Works perfectly.  
Thanks jpark

---

<div class="post-metadata">

**Author:** ![pascal](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pascal](https://forum.inductiveautomation.com/u/pascal)\
**Post date:** [January 30, 2020, 10:49am UTC](https://forum.inductiveautomation.com/t/box-and-whiskers-chart-axis-range/25707/4 "2020-01-30T10:49:13Z")

</div>

Is it possible to “fix” the AutorangeIncludeZero on this component ?  
I would like to display 2 datasets (composed of 2 values each) with, for example, input/output temperatures and input/output flow.

Here is my dataSet :  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8a437867589396f918ee4323c00b5f883344dc8a.png)  
The columns are bound to tags changing every 10 seconds with a Cell Update :  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8829596c5c5c0cc309daea15c684a2dc576c50d3.png)

I’ve put this script in a button :

```auto
chartComponent = event.source.parent.getComponent('Box and Whisker Chart')
chart = chartComponent.getChart()

plot = chart.getPlot()

axis = plot.getRangeAxis()
axis.setFixedAutoRange(0)
axis.setAutoRangeIncludesZero(1)
axis.setAutoRangeStickyZero(1)

```

When i press the button, the AutorangeIncludesZero is well executed but as soon as the binding on the values is evaluated, the zero disapears and the range does not include zero. It is like the “default” parameter for this component was Auto Range does not includes Zero.

I tried binding one of the tags used in the Cell Update to a custom property on the Root Container and execute a Property Change Script on this custom property but it didn’t work.

Any help ?
