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?
- Matt Seigel asked 6 years ago
- You must login to post comments
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
- Yura Khariton answered 6 years ago
- You must login to post comments
Please login first to submit.