0

I used a chart1_Customize function in my program , but the program don't reach it. Am I supposed to change something in the designer?

Here's the function:

      private void chart1_Customize (object sender, EventArgs e)
    {
        int count = 0;
        foreach (CustomLabel lbl in chart1.ChartAreas[0].AxisX.CustomLabels)
        {
            lbl.Text = range[count];
            count++;
        }   
    }

1 Answers1

0

Maybe this link can help Customizing a chart, in this example the event is added during the pageload, i suppose u have to do something similar? Or look if the event is wired to your function in the properties section of your chart enter image description here

Dave Wijnen
  • 71
  • 2
  • 7