OnMouseEnterSeries problem
Posted: Tue Feb 24, 2004 1:22 pm
hi,
I have two datasets in my ASP page and I use OnMouseEnterSeries to display the data value for each of the series in a textarea. I have tried a couple of cases and here are their descriptions:
Case 1:
I use the method only for Series0 and display the data for the two series. When moving the mouse over the datapoint(s) of Series0, the values are displayed correctly. When moving the mouse over Series1, both the values are 2.12199579096577E-311...even though the OnMouseEnterSeries method is not provided for Series1.
sub MyChart_OnMouseEnterSeries(Series0)
dim clicked, strValues
clicked = MyChart.Series(0).GetMousePoint
strValues = ""
strValues = strValues + "R1: " & CStr(MyChart.Series(0).YValues.Value(clicked)) & " mV" & vbNewLine
strValues = strValues + "R2: " & CStr(MyChart.Series(1).YValues.Value(clicked)) & " mV" & vbNewLine
window.frmValue.txtDecay.value = strValues
end sub
Case 2:
I added the second OnMouseEnterSeries method for Series1 and now the page works so that when moving the mouse over Series0 datapoint, both the shown values are 2.12199579096577E-311 and when moving over Series1, both the shown values are correct.
Case 3:
I modified the methods so that when moving the mouse over Series0, it should show only the data value of Series0 data point (.Series(0).YValues.Value(clicked)) and similarly, when moving the mouse over Series1, only the data value of Series1 data point is shown (.Series(1).YValues.Value(clicked)). HOWEVER, the actual shown data values are: 2.12199579096577E-311 when moving over Series0 and the correct value when moving over Series1.
Case 4:
I switched the two methods so that the OnMouseEnterSeries(Series1) is now defined BEFORE OnMouseEnterSeries(Series0) and the functionality described in Case 3 is now vice versa. It seems that only the function that has been defined last in the source code works correctly.
What should I do to implement the feature that when moving the mouse over any of the dataseries (data points), the data values of all series are shown correctly?
Thanks in advance for any advice
Mike
I have two datasets in my ASP page and I use OnMouseEnterSeries to display the data value for each of the series in a textarea. I have tried a couple of cases and here are their descriptions:
Case 1:
I use the method only for Series0 and display the data for the two series. When moving the mouse over the datapoint(s) of Series0, the values are displayed correctly. When moving the mouse over Series1, both the values are 2.12199579096577E-311...even though the OnMouseEnterSeries method is not provided for Series1.
sub MyChart_OnMouseEnterSeries(Series0)
dim clicked, strValues
clicked = MyChart.Series(0).GetMousePoint
strValues = ""
strValues = strValues + "R1: " & CStr(MyChart.Series(0).YValues.Value(clicked)) & " mV" & vbNewLine
strValues = strValues + "R2: " & CStr(MyChart.Series(1).YValues.Value(clicked)) & " mV" & vbNewLine
window.frmValue.txtDecay.value = strValues
end sub
Case 2:
I added the second OnMouseEnterSeries method for Series1 and now the page works so that when moving the mouse over Series0 datapoint, both the shown values are 2.12199579096577E-311 and when moving over Series1, both the shown values are correct.
Case 3:
I modified the methods so that when moving the mouse over Series0, it should show only the data value of Series0 data point (.Series(0).YValues.Value(clicked)) and similarly, when moving the mouse over Series1, only the data value of Series1 data point is shown (.Series(1).YValues.Value(clicked)). HOWEVER, the actual shown data values are: 2.12199579096577E-311 when moving over Series0 and the correct value when moving over Series1.
Case 4:
I switched the two methods so that the OnMouseEnterSeries(Series1) is now defined BEFORE OnMouseEnterSeries(Series0) and the functionality described in Case 3 is now vice versa. It seems that only the function that has been defined last in the source code works correctly.
What should I do to implement the feature that when moving the mouse over any of the dataseries (data points), the data values of all series are shown correctly?
Thanks in advance for any advice
Mike