I have defined a Chart
that is called chart11
and I give it data in the following way using the load
of the control
protected void Chart11_Load(object sender, EventArgs e)
{
List<byte[]> Datos11 = new List<byte[]>();
List<int> graficoY = new List<int>();
Datos11 = selectAlarmas1(id);
foreach (byte[] Datos in Datos11)
{
for (int i = 0; i < Datos.Length; i++)
{
graficoY.Add(Datos[i]);
}
}
Console.Write("\n");
foreach (int i in graficoY)
{
Console.Write("Y" + i + " ");
}
Console.Write("\n");
for (int i = 0; i < graficoY.Count; i++)
{
Chart11.Series["Senales"].Points.AddY(graficoY[i]);
}
Chart11.Series["Senales"].PostBackValue = GetPostBackEventReference( Chart11_Click);
Chart11.ChartAreas["ChartArea1"].AxisX.LabelStyle.Enabled = false;
Chart11.ChartAreas["ChartArea1"].AxisY.LabelStyle.Enabled = false;
}
I want to click on that Chart
but the event does not trigger:
protected void Chart11_Click(object sender, ImageMapEventArgs e)
{
Grafica_Chart(10);
}
I would like to know how to make the event work.