We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to create waterfall chart with labels

Need help in adding labels as displayed in following sample template for waterfall chart using aspose cells java.
waterfall+label.zip (10.3 KB)

@SriG,

You need to build your logic for your task, you may try to use setY, setX, PlotArea.getHeight()/getWidth() and other attributes for the purpose. For example, see the following simple sample code segment for your reference, it will paste data labels on top (in a row):
e.g.
Sample code:

.....
chart.calculate();
        double maxAxis= Double.parseDouble(String.valueOf(chart.getCategoryAxis().getMaxValue()));
        for(int i = 0; i < series2.getPoints().getCount(); i++)
        {
            ChartPoint point = series2.getPoints().get(i);
            double y_delta =  500;
            point.getDataLabels().setY((int)y_delta);
        }

        workbook.save("f:\\files\\output2.xlsx"); 

Hope, this helps a bit.