You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the simple barchart example, to reproduce the problem, I comment out the other rows and expect to see one single bar but there is nothing rendered. However, two bars works as expected. Any ideas?
data.add(0.1 as double, 1, "January");
// data.add(0.2 as double, 3, "February");
// data.add(0.3 as double, -2, "March");
// data.add(0.4 as double, 6, "April");
// data.add(0.5 as double, -4, "May");
// data.add(0.6 as double, 8, "June");
// data.add(0.7 as double, 9, "July");
// data.add(0.8 as double, 11, "August");
The text was updated successfully, but these errors were encountered:
In your example, the bar plot has only one data point at x=0.1. This causes the axis renderer of the x-axis to receive a display range from x=0.1 to x=0.1. By the looks of it, these limits are exclusive, which means that no data is displayed. I am not sure if this is a bug or not.
You can work around this by explicitly setting the displayed range of the axis after you added all the data to the plot. For example plot.getAxis(BarPlot.AXIS_X).setRange(0.0, 1.0);.
Thanks, I got it and it is possible to explicitly set the range manually.
Actually, the setRange() confused me a bit because the final tick of the range max may not be shown and rounded to the nearest spacing interval (ceil). The workaround is to set the range max to be a little larger than the nearest spacing ceil tick. So I would like to propose gral auto-scale or adjust the range in terms of the given dataset.
Based on the simple barchart example, to reproduce the problem, I comment out the other rows and expect to see one single bar but there is nothing rendered. However, two bars works as expected. Any ideas?
The text was updated successfully, but these errors were encountered: