Hi; i want to create a graph that's related to dundas charting. Firstly i am from Turkey; and your Question's interested me so i like to ask this Question: My chart describes wage distribution on months(jun,jully,agust etc) if i click, i want to direct jully.aspx like this. But Clicking is not working properly. For exmp; i want to see clicking cord. Textbox1.Text=e.X .tostring(),Textbox2.Text=e.Y.tostring() and also direction is sick(jully.aspx). Would you like me help with my problems?
Codes:
using Dundas.Charting.WebControl;
using System.Drawing.Drawing2D;
public partial class _Default : System.Web.UI.Page
{
DataPoint clicked;
protected void Page_Load(object sender, EventArgs e)
{
Chart1.Series["haziran"].Points.AddXY(2, 3);
Chart1.Series["temmuz"].Points.AddXY(1, 2);
Chart1.Series["agustos"].Points.AddXY(4, 5);
}
protected void Chart1_Click(object sender, ImageClickEventArgs e)
{
clicked = new DataPoint();
HitTestResult hittestresult = Chart1.HitTest(e.X, e.Y);
TextBox1.Text = e.X.ToString();
TextBox2.Text = e.Y.ToString();
if (hittestresult == null)
{
clicked = hittestresult.Series.Points[hittestresult.PointIndex];
switch (hittestresult.PointIndex)
{
case 84:
{
Response.Redirect("haziran.aspx");
break;
}
}
}
}