Welcome to the Xceed Community | Help
Community Search  
More Search Options

HTMLImageMapResponse and lineseries

Sort Posts: Previous Next
  •  05-15-2008, 9:28 PM Post no. 12317

    HTMLImageMapResponse and lineseries

    hi guys,

    I have chart with 3 lines that are drawn with next code

    lineserie1.name="one"

    lineserie1.AddXY(1, 1)

    lineserie1.AddXY(1, 2)

    lineserie1.AddXY(0, 3)

    linseserie2.name="two"

     lineserie2.AddXY(1, 4)

    lineserie2.AddXY(1, 5)

    lineserie2.AddXY(1, 6)

    ... lineserie3...

    and I'm trying to get the lineseriesindex and the datapointindex when user click over the chart

    with next code i get the data point index but not the lineserieindex. how can I get the lineserieindex or the lineseriename when user click over chart?.

    Protected Sub ChartServerControl1_DataPoint(ByVal sender As Object, ByVal e As System.EventArgs) Handles ChartServerControl1.DataPoint

    Dim eventArgs As ParamMapEventArgs = CType(e, ParamMapEventArgs)

    Dim index As Integer = eventArgs.GetIntNamedParamAt("dataPointIndex")

    Response.Write("<script>alert('myindex=" & index & "')</script>")

    End Sub

     

    note: i need to know what series was clicked because when i have to redirect to diferent pages depending of the value gotten.

    thanks in advanced for your help.

    Filed under:
  •  05-15-2008, 11:01 PM Post no. 12318 in reply to 12317

    Re: HTMLImageMapResponse and lineseries

    i found the answer by myself.

    Dim indexseries As Integer = eventArgs.GetIntNamedParamAt("serieIndex")

    i had a mistake before.

    sorry.  i hope it helps to someone else.

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.