Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
Hide label
posted

In code, Is there a way to hide only some labels in label collection ?

For example  I'd like to hide Point2 label :

        Dim dataPoint1 As New DataPoint With {.Value = 10, .Label = "06:00"}
        series1.DataPoints.Add(dataPoint1)
        Dim dataPoint2 As New DataPoint With {.Value = 7, .Label = ""}
        series1.DataPoints.Add(dataPoint2)
        Dim dataPoint3 As New DataPoint With {.Value = 11, .Label = "08:00"}
        series1.DataPoints.Add(dataPoint3)

Result = for dataPoint2, in XamWebgrid,   label shown = "2"