Here is the code I am using in the Charts GetLegendText event:
Code: Select all
if Index < DBChart2.SeriesCount then
LegendText:= ' $' + FormatFloat('#,##0.00', DBChart2[Index].YValues.Total) + ' ' + LegendText;
1. How can I fix the about code to calculate the legend correctly?
2. I would like to click on the X Labels if possible. Is there a way I can use an event when a user clicks on the dates below the chart?