We had a really nice chart EWO in a 3.17 project that has broken when upgraded to 3.19. It seems as though the setAxis() function no longer works to scale the axis when the chartType = "StackedBars". Here's how the chart looked before and after:
The code is the same in both, with the key piece of code being: chart1.setAxis(0, 5, 23, "Time of Day"). Not only is the axis not scaled in 3.19, but a completely blank portion has been added on the right so the bars don't fill the grid any more.
I created a test panel with a very simple chart, just to be sure it was not something specific to our project. With this script executed in 3.17 and 3.19, you can see that the axis is scaled in 3.17 but not in 13.19:
Code: Select all
// [Chart_ewo1] [1] - [Initialize]
main()
{
this.chartType = "StackedBars";
this.setAxis(0, 4, 14, "Axis 1");
dyn_float one = makeDynFloat(1, 2, 3, 4);
dyn_string labels = makeDynString("Bar 1", "Bar 2", "Bar 3", "Bar 4");
this.addSeries(one, labels);
this.setSeriesFillColor(0, "{196,128,128}");
dyn_float two = makeDynFloat(4, 3, 2, 1);
this.addSeries(two);
this.setSeriesFillColor(1, "{126,128,196}");
}
Can the setAxis() function please be fixed for chartType "StackedBars", so that we can scale the axis as we need to, just like we could in 3.17?
Many thanks.