You can change the format by overriding the double-to-string conversion of the needed axis. This can be achieved by implementing the corresponding method of value axis data source.
For example, use the following code:
public string ValueAxisDataSourceDouble (double value, NChartValueAxis axis)
{
return String.Format("value {0}", value);
}
Do not forget to set the data source for the axis you want to customize, for example:
m_view.Chart.CartesianSystem.XAxis.DataSource = this;
Comments
No comments yet.
Please log in to place a comment.