Format property of the TChartSeriesLegend would be respected.
Done since r39588.
It is a little tricky, however:
1) Since there are three different item positions, format is interpreted as 3 format strings delimited by '|'. So, default format may be expressed as
z ≤ %1:g|%g < z ≤ %g|%g < zIf
Legend.Format contains less then three parts, the last one is replicated, so a simple '%.2f' will work too.
2) Each format is passed two values, previous and next level. Depending on your preference you might want to write '%1:.2f'.
3) Even before this commit, you could set arbitrary text to a legend item via
Text field of the color source items.
4)
OnCreate event receives a
TLegendItem and can change it arbitrarily, in particular set
Text property.
This also solves your next wish -- you can set any separator you like.
Trying to implement an event handler for ChartSeriesLegend.OnCreate or OnDraw by double-clicking in the OI results in an error "Methode name "" must be an identifier."
Yes, this is
issue 19632.
I will get to the other points later.