none
Tool tip Issue with Microsoft charts RRS feed

  • Question

  • Hello,

    We are using the Microsoft charts controls (DataVisualization.Charting  having version  v3.5.0.0  ) for the windows application and are having trouble with displaying tool tip for the series when the data points  lie on  X and Y axis. We have set the Tool tip property to true for the series. The problem occurs only when the series and the axis coincides

    We have notice that this problem also occurs in the Sample examples downloaded from http://code.msdn.microsoft.com/mschart

    Below is the piece of code that we are using to draw the chart

     

    Chart1.Series.Add("Series1")

            Chart1.Series("Series1").ToolTip = "  (#VALY{} , #VALX{})"

            Dim random As New Random()

            Dim pointIndex As Integer

            For pointIndex = 0 To 9

                If (pointIndex = 4 Or pointIndex = 5) Then

                    Chart1.Series("Series1").Points.AddXY(pointIndex, 0)

                Else

                    Chart1.Series("Series1").Points.AddXY(pointIndex, random.Next(45, 95))

                End If

     

            Next pointIndex

     

            Chart1.Series("Series1").ChartType = SeriesChartType.Line

            Chart1.ChartAreas("ChartArea1").AxisX.LabelStyle.IsEndLabelVisible = False

            Chart1.Series("Series1").IsValueShownAsLabel = False

     

     

    Thanks  in advance

    Friday, June 4, 2010 11:58 AM

Answers