How to set my custom values on Y-axis of my chart

2019-03-01 00:06发布

问题:

Possible Duplicate:
teechart problem for series label

Is There any way to print labels ex. Jan , Feb , Mar.... On Y-axis of tchart

In

Borland c++

回答1:

I don't have Borland C++, but assuming the TeeChart that comes with it is the same as the ActiveX TeeChart, you'll need to do something like this:

chart.Axis.Left.Labels.Clear(); // Clear current labels
chart.Axis.Left.Labels.Add(1, "January"); // Repeat for other months