custom values in GetAxisLabel() cause text clipping
Posted: Fri Jun 07, 2013 8:32 am
When I override the text that is displayed on vertical axis, through GetAxisLabel() function, only a bit of it is displayed on the actual graph.
Here's a picture to illustrate this: In this project I just placed the chart on form, added two series and a custom GetAxisLabel() function that only adds a lot of brackets to labels:
This happens for all label styles but Text. And Text style is not a solution for me because it only places one label per one series value on chart.
Is this a bug? Is there a workaround?
Here's a picture to illustrate this: In this project I just placed the chart on form, added two series and a custom GetAxisLabel() function that only adds a lot of brackets to labels:
Code: Select all
void __fastcall TForm3::Chart1GetAxisLabel(TChartAxis *Sender,TChartSeries *Series, int ValueIndex, AnsiString &LabelText){
LabelText=AnsiString("[[[[[[[[[[[[[[[")+LabelText+"]]]]]]]]]]]]]]]";
}
Is this a bug? Is there a workaround?