Menu

Y-axis labels for small ranges

Help
rolfk
2013-11-05
2014-09-04
  • rolfk

    rolfk - 2013-11-05

    In my application I often have to display scientific data where numbers are very small. I am using linear Y-axes. Once the data values fall below 10e-4 there are no y-labels displayed any more. Is this configurable or what am I missing? Thanks.

     
  • Achim Westermann

    Hi rolfk,

    have you tried:

        IAxis axisy = new AxisLinear<IAxisScalePolicy>();
        DecimalFormat df = new DecimalFormat();
        df.setMaximumFractionDigits(100);
        chart.setAxisYLeft(axisy, 0);
        axisy.setFormatter(new LabelFormatterAutoUnits(new LabelFormatterNumber(df)));
    

    HTH,
    if not please reply,

     
    • rolfk

      rolfk - 2014-09-04

      Thanks Achim, this pointed me in the right direction.

       

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB