//el xml
Código :
<xml> <r Month="Jan" Profit="2000" Expenses="1500" campo="3campo"/> <r Month="Feb" Profit="1000" Expenses="200" campo="3campo"/> <r Month="Mar" Profit="1500" Expenses="500" campo="3campo"/> </xml>
//el mxml
Código :
<?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="lcXMLrqst.send()"> <mx:HTTPService id="lcXMLrqst" url="xml/LineChart.xml"/> <mx:LineChart id="myChart" dataProvider="{lcXMLrqst.lastResult.xml.r}" showDataTips="true"> <mx:horizontalAxis> <mx:CategoryAxis dataProvider="{lcXMLrqst.lastResult.xml.r}" categoryField="Month"/> </mx:horizontalAxis> <mx:series> <mx:LineSeries yField="Profit" displayName="Profit"/> <mx:LineSeries yField="Expenses" displayName="Expenses"/> </mx:series> </mx:LineChart> </mx:WindowedApplication>
Es posible agregar un tercer campo en el cuadro del showDataTips?, por lo que tengo entendido se incluye en dicho cuadro el categoryField y el yField, es decir los valores que justamente pertenecen a la tabla. Ahora bien, yo necesitaria incorporar un 3er valor a este cuadro, que no juega un papel dentro de la gráfica, es un dato que repercute en este pero no se ve y quiero que sea incorporado al cuadro de tips. Es posible lograrlo? Como? Gracias.