Hi,
I am trying to display really small values (uV) on a logaritmic chart.
With the fix done earlier this year, values below 1 can be displayed but there is no label on the chart.
We are using the "transformed" axis.
We are wrapping the chart in the uimenu decorator.
Chart2D chart = new Chart2D();
chart.setUseAntialiasing(true);
AAxis<?> axisy = new AxisLog10<AxisScalePolicyTransformation>();
DecimalFormat df = new DecimalFormat();
df.setMaximumFractionDigits(100);
chart.setAxisYLeft(axisy, 0);
axisy.setFormatter(new LabelFormatterAutoUnits(new LabelFormatterNumber(df)));
ChartPanel chartpanel = new ChartPanel(chart);
content.add(chartpanel );
I can multiply the data by 1000000 so that labels are displayed, but no label has a value below 1. (no 0.1, 0.01 , 0.001, etc)
As a first improovement, I changed AxisScalePolicyTransformation.getScaleValues(...) to start the labels "lower" by changing the line 75 from "double exp = 0.;" to " double exp = -10.;"
It does not seems to change anything with the label above 1 but it does add the label below.
To see the extra label, at least one point need to be above 1. If all points are lower, no label get generated.
Before I continue investigating, I was wondering if you could answer the following question:
Which class is in charge of generating the axis ticks? (AxisScalePolicyManualTicks vs AxisScalePolicyTransformation)
I can send attachement of the results if needed.
Thank you verry much!
Anonymous