This content has been marked as final. Show 6 replies
I can't believe that nobody here knows how to do this?
My only idea now would be to change the dataprovider everytime, but since i'm using a lot of data for my chart that's getting messy. The right link to that application I was talking about is btw application
I really hope you guys can help me
I think you only have two options: use the alpha as you have done and use your own function or class to handle the dataTips, preventing the ones you don't want to show up from appearing. Or remove the series from the chart (you don't have to destroy it, just remove it and it can be added back).
The problem with the latter is that, say you have 3 clustered series so there are 3 bars showing up. If you remove a series, the other 2 bars spread out to occupy the remaining space.
If you still want to go with the alpha solution, try setting enabled="false" on the series. I have no idea if that will work, but if it does and you have set the alpha to 0, then it should prevent the data tips from appearing and you won't have to write some function or class to handle it.
Thanks for your reply.
Since I'm using a linechart, the spreading problem won't be an issue. But how can I remove the series from the chart? I've tried to do something like: linechart.series.pop(); But I couldn't get it working.
Also, I tried setting enabled="false" but the datatips still popup when your mouse goes over them.
So I think that removing the series temporary is a good option, on the other hand I'm also planning to write a function for a custom datatip. So I don't know what will be the best option then.
Sorry for the kick, but I'm still stuck on this one
Originally posted by: Delodic
But how can I remove the series from the chart? I've tried to do something like: linechart.series.pop(); But I couldn't get it working.
Sorry for the delayed response.
var series:Array = lineChart.series;
lineChart.series = series;
will do the trick.
Thanks for your reply :)
I forgot the last line (reassigning the series to the chart.series).
But I rewrote the code so now the dataprovider is just changed when recalculating the points, so problem was solved :)