Labels displaying outside series element
Posted: Thu Oct 24, 2019 3:38 pm
Hi,
Last year I upgraded TeeChart from the 2012 version to the 2017 one. Everything went fine until now a client noticed that on some chart elements the labels that were displaying inside the chart element now are displaying outside them (below). When doing the upgrade I didn't notice it so probably I did not check it. The code for the labels hasn't changed and it's the same alignment. Below is an example of the code for the labels:
currElement.AddLabel(new CChartClasses.CSeriesLabel(currBlock.getCbeoRouteGroupRef().IB.getUKey() + "-" + currBlock.getUKey(), CChartInterfaces.eSeriesLabel.eHAlignCentre, CChartInterfaces.eSeriesLabel.eVAlignCentre));
I attached 2 examples of charts, TeeChart Example - 2012 and TeeChart Example - 2017 which show how the labels are displayed with the TeeChart.dll from 2012 and 2017 (display code is the same).
Is there a setting or something else that needs to be set/done in the newer version in order to display the labels like before?
Thank you
Last year I upgraded TeeChart from the 2012 version to the 2017 one. Everything went fine until now a client noticed that on some chart elements the labels that were displaying inside the chart element now are displaying outside them (below). When doing the upgrade I didn't notice it so probably I did not check it. The code for the labels hasn't changed and it's the same alignment. Below is an example of the code for the labels:
currElement.AddLabel(new CChartClasses.CSeriesLabel(currBlock.getCbeoRouteGroupRef().IB.getUKey() + "-" + currBlock.getUKey(), CChartInterfaces.eSeriesLabel.eHAlignCentre, CChartInterfaces.eSeriesLabel.eVAlignCentre));
I attached 2 examples of charts, TeeChart Example - 2012 and TeeChart Example - 2017 which show how the labels are displayed with the TeeChart.dll from 2012 and 2017 (display code is the same).
Is there a setting or something else that needs to be set/done in the newer version in order to display the labels like before?
Thank you