Hi All, I am quite new to this fusion charts implementation. Can anybody help me to complete Bar2D graph for multiple scenarios. I am able to draw Bar2D graph for single scenario(values in y1[]). Attached screen shots with java code for details. Screen shot below with red and yellow bars was old JCChart graph for multiple scenarios.
my java code...
private
void loadComparisionResultGraphColumnData(BarGraph graph, double[] y1, double[] y2) throws Exception {ArrayList<BarGraphValue> graphValueList =
new ArrayList();
double[][] y = {y1, y2};String[] seriesLabels = {
"Scenario 1", "Scenario 2"};
try {Iterator metricsIter =
graphMetricList.iterator();
int n = y1.length;n = n-1;
while (metricsIter.hasNext()) {String graphMetricName = (String) metricsIter.next();
graphValueList.add(
new BarGraphValue(graphMetricName, new Double(y1[n--]), "56B9F9"));
//graphValueList.add(new BarGraphValue(graphMetricName, new Double(y[2]), "C9198D"));}
graph.setValues(graphValueList);
}
catch(Exception e) {Trace.write(Trace.
error, "Error occured in loadComparisionResultGraphColumnData method :: TPComparisionResultGraph class.");
throw new Exception(e);}
}
Other information:
getCurrencyId : AUD
getCurrencyId : AUD
userId : SuperUser
categoryName : Account F2M Profile
categories : On-Net >60%
categories : Off-Net >60%
categories : Split
Categories: Overall
y1 -> 32.483161627329906
y1 -> 35.631429601779466
y1 -> -264.0777062315774
y1 -> -88.15067241161087
y2 -> 32.61565963064586
y2 -> 34.874386307842876
y2 -> -265.283388091254
y2 -> -89.75897980368637
priceType : Target Price
comparisonMetric : 0
getCurrencyId : AUD
currencyId : AUD
yAxisTitle : Average % Discount off List
headerText : Average % Discount off List at Target Price
Appreciate your help
Thanks,
Sarath