MIV - Comment Viewer Analyzer
I web application was for a client to see all of their comments at on time and then start to figure out what to do with the comments that are ‘opportunities’ for them to fix. This application is a fix to one of our current applications that only lets the use look at comments whereas the Comment Viewer Analyzer (CVA) runs the comments through an engine that triggers focus areas that are labeled ‘positive’, ‘neutral’, or ‘negative’. This lets us chart out the data that is labeled to each of the comments.

Full screen of CVA
To do all of the charting we used AnyChart. A charting component that took a XML file to do all of the charting. To do most of this I had to insert the XML into another XML that had the format that Anychart wanted to receive.
I send for a an http service to get the data that fills the chart.
id="anyChartFAService"
url="php/services/MiV2MessageFocusAreaDisposition.Summary.php"
method="POST"
fault="handleError(event)"
resultFormat="text"
result="initFAChart(event);"
useProxy="false"
When that service returns I take that and stick it into a format that AnyChart can display.
var dataXML:XML = new XML( dataChartXML);
dataXML.charts.chart.appendChild(event.result);
anyChartData.anychartXML = dataXML;

Full screen of CVA
There are a few exceptions that I need to bring more than one variable into the application. For that I use bindings to communicate when to another part of the application. This shows how I bring in the xml and put the data into bindings for the variables.
private function initAnyChart(event:ResultEvent):void
var eventXML:XML = new XML(event.result);
var mainXML:XML = new XML( mainChartXML);
if(eventXML.data.series.point.length() > 15)
{
mainXML.charts.chart.chart_settings.axes.x_axis.appendChild('');
}
facIDs = eventXML.facilityId;
var dataXML:XML = new XML(eventXML.data);
mainXML.charts.chart.appendChild(dataXML);
this.anyChartMain.anychartXML = XML(mainXML);
updateBottomGraphs();
}
Tags: AnyChart, Comment Viewer, CVA, MIV, xml