Ok, I know this is gonna sound really bad on me but I've learned Swiz, figured
out how to simulate a Java-like Thread.wait() using a timer and check a object
for data changes, I've even been able to get around Flex 4...But I am having a
goose chase on where my tooltips are, I get blank tooltip bubbles.
Ok here the case. I am using Plot chart, with the tooltips set to show. When I
hovor over a data point I get a blank tooltip bubble. When I set showAllToolTip
to true I can see them. Now I am dynamicly creating my series , there is a
chance for infinite data sets so the series have to be dynamic. Is there
something I am missing in the code snippetr below?
This is where all my chart's plotting is handled (excuse the pun):
public function sendDataToPlot(evt:TimerEvent):void {
myChart.showDataTips = true;
if(models.message != null || models.message != ""){
var myXML:XML = models.message;
var wholist:Array = new Array();
for each(var property:XML in myXML.item.session) {
// Create an Array of unique names.
if (wholist[property] != property)
wholist[property] = property;
}
// Iterate over names and create a new series
// for each one.
for (var s:String in wholist) {
// Use all items whose name matches s.
var localXML:XMLList = myXML.item.(session==s);
// Create the new series and set its properties.
localSeries= new PlotSeries();
localSeries.dataProvider = localXML;
localSeries.yField = "visits";
localSeries.xField = "when";
// localSeries.
// Set values that show up in dataTips and Legend.
localSeries.displayName = "Session " + s;
// Back up the current series on the chart.
var currentSeries:Array = myChart.series;
// Add the new series to the current Array of series.
currentSeries.push(localSeries);
// Add the new Array of series to the chart.
myChart.series = currentSeries;
}
} else {
alrtTimer.reset();
alrtTimer.start();
}