|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/20/2007 5:13:53 PM
Posts: 5,
Visits: 19
|
|
The Problem:
Trying to read the "toolText" value.
The XML (configured correctly, forum won't let me post it):
dataSet id="CumulativeSpend" seriesName="Cumulative Spend"
set id="setID130" x="130" y="10152.00" toolText="A, Biliji Days:130 Spend:10152.00"
set id="setID191" x="191" y="7472.27" toolText="Amazioin, Joseph Days:191 Spend:7472.27"
set id="setID73" x="73" y="3360.00" toolText="Amlorty, Srich Days:73 Spend:3360.00"
/dataset
The Javascript (it's yours already, you may recognize it):
//Now generate a tabular format of data returned as array
var arrData = ourChart.getData();
//If no data has been selected return an error
if (arrData.length==0){
alert("Please select atleast one data point on chart by drawing a rectangle");
return;
}
var i,j;
//Now we'll generate an HTML string for it
var strHTML = " ";
for (i=0; i
//Iterate through each row of data
//First column contains the dataset id.
//Add dataset id
var dataSetID = arrData[i][0];
strHTML = strHTML + "| " + dataSetID + " | ";
var infoSet = arrData[i][1];
alert (infoSet);
//arrData[i][0] returns the string "Cumulative Spend"
//arrData[i][1] returns the setID as a string
//Iterate through all the data in this dataset
for (j=1; j
//Add data to HTML code
strHTML = strHTML + arrData[i][j];
//Add separator comma to all but last item
if (j
strHTML = strHTML + ", ";
}
}
strHTML = strHTML + " | ";
}
//Close table tag
strHTML = strHTML + " ";
//Write the data to the required div
var tableDiv = document.getElementById('tableDataContainer');
tableDiv.innerHTML = strHTML;
}
I originally thought the problem was contained within this area, but I think it's actually in FusionCharts.js. Problem is I'm trying to reference the XML using the DOM, but it appears as though the information returned is not set up as a DOM. Assistance would be GREATLY appreciated. Thanks in advance.
"Bear with me, I'm learning what I can."
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
| Hi, I'm not sure if I've understood your problem. Can you please elaborate?
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/20/2007 5:13:53 PM
Posts: 5,
Visits: 19
|
|
So the SWF file is reading the XML document and outputting the information in the chart.
This is my current test environment...
http://www.whoisjoemartin.com/fieldglass/testArea/
When you highlight and select a series of points, it returns the IDs. I want to return more information from the XML document, such as the toolTip attribute that is viewed when you hover over any point on the graph. How would I go about retrieving THAT information through the Flash from the XML?
"Bear with me, I'm learning what I can."
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
I'm afraid we do not expose the contents of tooltip in the JavaScript API. We just expose the label and data.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/20/2007 5:13:53 PM
Posts: 5,
Visits: 19
|
|
So if I had more attributes added onto my XML, how would I go about accessing those? Hoping the system isn't restricted in that it solely returns the ID attribute in string format.
"Bear with me, I'm learning what I can."
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/20/2007 5:13:53 PM
Posts: 5,
Visits: 19
|
|
So if I were to include more information within my XML document, how would I go about retrieving that information?
"Bear with me, I'm learning what I can."
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117,
Visits: 498
|
|
FusionCharts is designed only to return the data and ID. If you've more attributes, you'll need to change the code of FusionCharts (present in Enterprise license) to return them.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 9/20/2007 5:13:53 PM
Posts: 5,
Visits: 19
|
|
I got it working. Just ran xmlhttprequest against the returned string. Next question, the radar chart doesn't appear to have any elements clickable. If I wanted to make a corner of the radar chart clickable to further data, is that possible? Does FusionCharts already provide something like this. Similar to the way the scatterplot chart works in that you can select points. I just want to be able to click on a corner and populate the appropriate data. Thank you in advance.
"Bear with me, I'm learning what I can."
|
|
|
|
| | |