Formating of Data Labels in bar chart
Posted: Fri May 03, 2024 6:01 pm
Hello
I have been trying to format the data labels to only display 2 decimal digits. The attached screenshot displays 3 decimal digits.
I have tried a number of things, including
The values format for the left axis is set to 2 decimals, but this does not seem to affect the data labels.
Please advise.
I have been trying to format the data labels to only display 2 decimal digits. The attached screenshot displays 3 decimal digits.
I have tried a number of things, including
Code: Select all
Chart1.Series[iseries].AddXY(QYear, QVal, Format('%7.2f',[Qval])); //this will also change the Xaxis label (XLabel);
Chart1.Series[iseries].Marks.Items[iPoint].text.Add(Format('%7.2f',[Qval])); // this adds text to the existing label; even if cleared.
Code: Select all
LeftAxis.AxisValuesFormat := '0.00' ;