I have a Histogram, and onto this I want to add some percentile-lines (plines), say 10, 50 and 90. Thus, I am creating 3 thin bars in separate series and adding each series onto the chart in the following manner:
Code: Select all
Looping this 3 times:
com.steema.teechart.styles.Bar pLine = new com.steema.teechart.styles.Bar();
pLine.add(histogram.getMaxYValue());
va[0] = value;
pLine.getXValues().value = va;
pLine.setColor(histogram.getColor());
pLine.getPoint(0).setLabel(String.valueOf(value));
pLine.setBarWidthPercent(5);
pLine.getBrush().setStyle(com.steema.teechart.drawing.HatchStyle.PERCENT90);
pLine.setShowInLegend(false);
pLine.setCustomHorizAxis(getHistogramPanel().getXAxis());
getHistogramPanel().getTChart().getChart().addSeries(pLine);
So, quick question; is there any way I can add a Series whithout displaying its x-axis? Or alternatively, add a series but without affecting the current x-axis?
I try to set the Bars' horizontal axis to the existing one but with no luck.
Also, if there are methods in the API for displaying percentiles which I have overlooked I am grateful for hints on this
Thanks a million in advance,
Marius