tsj4
11-06-2008, 11:08 PM
I need the pieChartSeries.nameField value to be added in my custom datatip.
this value is included in the hitData.item object just do not know how to reference it.
I do know I could just reference that object from the dataProvider but the key changes based on what the response is.
var p1:PieSeries = new PieSeries();
p1.dataProvider = traffic;
p1.field = measure1[mes_id];
p1.nameField=initLabel
p1.name = measure1[mes_label];
p1.displayName = measure1[mes_label];
p1.setStyle("labelPosition", "callout");
p1.filters = [];
var pSeries : Array = new Array();
pSeries.push(p3);
p.series = pSeries;
p.dataProvider = ac;
when I use this the value I am attempting to target is included in the object
PieSeriesItem(h.chartItem).item
this value is included in the hitData.item object just do not know how to reference it.
I do know I could just reference that object from the dataProvider but the key changes based on what the response is.
var p1:PieSeries = new PieSeries();
p1.dataProvider = traffic;
p1.field = measure1[mes_id];
p1.nameField=initLabel
p1.name = measure1[mes_label];
p1.displayName = measure1[mes_label];
p1.setStyle("labelPosition", "callout");
p1.filters = [];
var pSeries : Array = new Array();
pSeries.push(p3);
p.series = pSeries;
p.dataProvider = ac;
when I use this the value I am attempting to target is included in the object
PieSeriesItem(h.chartItem).item