Pre loader

How to Show very small values

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

our app is about Futures. we will buy license for IOS and Android.

we found some question.

so we need show very small values, like Euro exchange’s values will be from 1.1981 to 1.2008.
its Tick Size is 0.0001 .

but we use LogarithmicNumericAxis with OhlcDataSeries<Date, Double> , surface still linear scale.

other question.
how to custom LogarithmicNumericAxis’s “TextFormatting” like “$0.0000”

Version
2.1.0.2224
  • You must to post comments
1
0

Hi Rey,

Thanks for your inquiry.

I’m not sure that I understand what is the problem with LogarithmicNumericAxis. I tried to draw some small values in one of our examples with code below and don’t see it

    for (int i = 1; i < 20; i++) {
        dataSeries1.append((double)i, Math.pow(10, i - 20));
    }

So can you provide some code which reproduces this issue?

Regarding text formatting – you can use TextFormatting property provided by axis or create custom LabelProvider

    IAxis axis = sciChartBuilder.newLogarithmicNumericAxis()
            .withTextFormatting("$0.0000")
            .build();

Hope this will help you!

Best regards,
Yura

  • Rey Liang
    thank you!! i had try withTextFormatting(“$0.0000”) . it not working.tick label not display. is LogarithmicNumericAxis not support “Date, Double” type? our xAxis type is Date. if yAxis set type with “Double,Double”,xAxis’s value can compare yAxis’s value?
  • You must to post comments
0
0
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.