This question is locked. New answers and comments are not allowed.
hi,
I have drawn the Gantt chart with date on X-axis, time on Y-axis.
I have added the range of the X-Axis using the following Statement
radChart1.PlotArea.XAxis.AddRange(GraphStartTime.ToOADate(), GraphStartTime.AddDays(7).ToOADate(), 1);
I have set the Y-AxisLabel text to "XYZ".
My requirement is to change the AxisLabel text to "ABC", when the user clicks on the button.
I add the following code:
private void btnChangeAxisLabel_Click(object sender, EventArgs e)
{
radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "XYZ";
radChart1.Refresh();
radChart1.UpdateGraphics();
radChart1.Update();
}
It is changing the AxisLabel text to "ABC".
But X-Axis ChartAxisItem's TextBlock.Text is not appearing(i.e The dates what i have added to X-axis is not appearing).
Please share the sample code.
I have drawn the Gantt chart with date on X-axis, time on Y-axis.
I have added the range of the X-Axis using the following Statement
radChart1.PlotArea.XAxis.AddRange(GraphStartTime.ToOADate(), GraphStartTime.AddDays(7).ToOADate(), 1);
I have set the Y-AxisLabel text to "XYZ".
My requirement is to change the AxisLabel text to "ABC", when the user clicks on the button.
I add the following code:
private void btnChangeAxisLabel_Click(object sender, EventArgs e)
{
radChart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "XYZ";
radChart1.Refresh();
radChart1.UpdateGraphics();
radChart1.Update();
}
It is changing the AxisLabel text to "ABC".
But X-Axis ChartAxisItem's TextBlock.Text is not appearing(i.e The dates what i have added to X-axis is not appearing).
Please share the sample code.