Please respond to my previous question ..Below
Also would like to know if there is a way to customize the series type menu in the chart toolbar.
----------------------------------------------
Are you exposing any events when the user clicks the buttons in the chart tool bar ? I want to handle the event when user selects a chart type and custom display the axes labels.
--------------------------------------------
>
That's a good example. Thanks for your effort.
Surya
>Hi Surya,
My apologies for the delay in responding to you.
If your intention is to have the same custom labels for Y-Axis as that in X-Axis when the Series Type is changed then it can be done by as shown in the code snippet below,
this.chartControl1.Model.Series[0].Type=ChartSeriesType.Bar;
this.chartControl1.PrimaryYAxis.TickLabelsDrawingMode = ChartAxisTickLabelDrawingMode.UserMode;
this.chartControl1.PrimaryYAxis.Labels.Clear();
for(int i=0;i
{
this.chartControl1.PrimaryYAxis.Labels.Add( new ChartAxisLabel(ylabel[i],Color.Crimson, new Font("TimesNewRoman", 10), val, "", ChartValueType.Custom ));
val=val+2;
}
//ylabel[i]-contains the text of labels of X-Axis
Also kindly take a look at the attached sample.
Let me know if I am wrong in getting your requirement.
Thanks & Regards,
Ramya.
CustomLabel.zip