SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

I’m building a custom NumericLabelProvider and need to change the label output based on the data the chart is displaying. We will be using the range of the chart to specify whether decimals display or not. How can I access the chart from my custom NumericLabelProvider?

Version
2.2.0.788
  • You must to post comments
0
0

Hi Matt,

You can access chart by using axis instance which is available as protected field in LabelProvider:

@Override
public void update() {
    super.update();

    final ISciChartSurface parentSurface = axis.getParentSurface();
}

Is this suitable for your needs?

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.