Saving charts with custom labels
Posted: Wed May 24, 2006 10:47 am
Hello,
If I plot a line chart, and use the following code to add custom labels to left axis, which works great.
TChart1.Axis.Left.Labels.clear
TChart1.Axis.Left.Labels.Style = talText
TChart1.Axis.Left.Labels.Add 0, "N"
TChart1.Axis.Left.Labels.Add 45, "NE"
TChart1.Axis.Left.Labels.Add 90, "E"
TChart1.Axis.Left.Labels.Add 135, "SE"
TChart1.Axis.Left.Labels.Add 180, "S"
TChart1.Axis.Left.Labels.Add 225, "SW"
TChart1.Axis.Left.Labels.Add 270, "W"
TChart1.Axis.Left.Labels.Add 315, "NW"
TChart1.Axis.Left.Labels.Add 360, "N"
Then I use the tee commander toolbar to save the chart to a .tee file.
When I re-open the saved .tee file, the custom labels have gone, and the orginal values have returned.
Is it possible to save the custom labels?
Thanks
James.
If I plot a line chart, and use the following code to add custom labels to left axis, which works great.
TChart1.Axis.Left.Labels.clear
TChart1.Axis.Left.Labels.Style = talText
TChart1.Axis.Left.Labels.Add 0, "N"
TChart1.Axis.Left.Labels.Add 45, "NE"
TChart1.Axis.Left.Labels.Add 90, "E"
TChart1.Axis.Left.Labels.Add 135, "SE"
TChart1.Axis.Left.Labels.Add 180, "S"
TChart1.Axis.Left.Labels.Add 225, "SW"
TChart1.Axis.Left.Labels.Add 270, "W"
TChart1.Axis.Left.Labels.Add 315, "NW"
TChart1.Axis.Left.Labels.Add 360, "N"
Then I use the tee commander toolbar to save the chart to a .tee file.
When I re-open the saved .tee file, the custom labels have gone, and the orginal values have returned.
Is it possible to save the custom labels?
Thanks
James.