Package org.jboss.dashboard.displayer.chart

Examples of org.jboss.dashboard.displayer.chart.BarChartDisplayer.buildXYDataSet()


        // Calculate the data set to display.
        // Set the scalar function to apply for the calculations of the chart values.
        ScalarFunction scalarFunction = scalarFunctionManager.getScalarFunctionByCode(SumFunction.CODE);
        barChartDisplayer.setRangeScalarFunction(scalarFunction);
        DataSet xyDataSet = barChartDisplayer.buildXYDataSet();

        // Check the expected results matrix
        assertDataSetValues(xyDataSet, new String[][] {
                new String[] {"Engineering", "7,650.162"},
                new String[] {"Services", "2,504.5"},
View Full Code Here


        // Set the scalar function to apply for the calculations of the chart values.
        ScalarFunction scalarFunction = scalarFunctionManager.getScalarFunctionByCode(SumFunction.CODE);
        barChartDisplayer.setRangeScalarFunction(scalarFunction);

        // Calculate the data set to display
        DataSet xyDataSet = barChartDisplayer.buildXYDataSet();
        assertThat(xyDataSet.getProperties().length==2);
        assertThat(xyDataSet.getRowCount()==5);
       
        // Check all the calculations done.
        Locale locale = Locale.ENGLISH;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.