Search code examples
androidteechart

Teechart: Labels and grid dissapear on axis after adding custom label


I need to add custom label on vertical axis in TeeChart. For this reason I use the following code:

OHLC series = ...;

[..]

AxisLabelsItems labelItems = rightAxis.getLabels().getItems();
double closeValue = series.getCloseValues().getLast();
closeLabel = labelItems.add(closeValue);

After adding label using the code similar to provided, all the labels and lines on the right axis has dissapeared.

How is it possible to save existing labels and gridlines while adding custom label?


Solution

  • How is it possible to save existing labels and gridlines while adding custom label?

    It's not possible. When using custom labels, default automatic labels are overriden. You should add those labels you want to keep as custom labels as well.