This is a migrated thread and some comments may be shown as answers.

Problem changing X-Axis Label

1 Answer 82 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
amirnet
Top achievements
Rank 1
amirnet asked on 22 Oct 2009, 03:32 PM
Hi
i cannot change my X-Axis Label after setting Chart.ItemSource ,please help !!!!

TickPointLabel=XX

i see that the property has changed in debgugger,but no changes in preview

1 Answer, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 09 Nov 2009, 05:46 PM
Hello Amirnet,

If you call refresh on the RadChart after changing the label, it should update and display it.

    public partial class Form1 : Form 
    { 
        int[] values = { 10, 15, 20, 25, 30, 35, 40 }; 
 
        public Form1() 
        { 
            InitializeComponent(); 
            radChart1.PlotArea.XAxis.AxisLabel.Visible = true
            radChart1.DataSource = values; 
        } 
 
        private void radButton1_Click(object sender, EventArgs e) 
        { 
            // Change the X-Axis label and refresh the chart 
            radChart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = "Hello"
            radChart1.Refresh(); 
        } 
    } 

I hope this helps.

- Robert
Tags
Chart (obsolete as of Q1 2013)
Asked by
amirnet
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Share this question
or