【发布时间】:2014-03-07 20:59:53
【问题描述】:
我正在尝试解除或内爆饼图中的爆炸点。
但是,当我炸开一个点时,它“知道”它已炸开,但它在图表上并没有这样显示。
Protected Sub Chart2_Click(sender As Object, e As ImageMapEventArgs) Handles Chart2.Click
Dim pointIndex As Int32 = Int32.Parse(e.PostBackValue)
If pointIndex >= 0 & pointIndex < Series1.Points.Count Then
If Series1.Points(pointIndex)("Exploded") = "True" Then
Series1.Points(pointIndex)("Exploded") = "False"
Series1.Points(pointIndex).MapAreaAttributes += "onclick=""alert('Test explode alert');"""
Else
Series1.Points(pointIndex)("Exploded") = "True"
End If
End If
End Sub
我确实收到了“测试爆炸警报”,但此时饼图点并未在视觉上爆炸。
删除Series1.Points(pointIndex)("Exploded") = "False" 会使点在视觉上爆炸,但不会内爆/取消爆炸。
如何分解或取消分解已分解的饼图点?
【问题讨论】: