Sign in to follow this  
sarath_varma

Fusion Bar2D chart for multiple scenarios.

Recommended Posts

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.

0ca8a6ac-9caa-48ec-b319-73f9.jpg

223cf683-ebb8-4617-b572-6342.jpg

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this