Hi Everybody !

Could someone please tell me how to add labels to points part of a plot drawn 
using POI ?

I have a table in one of my workbook sheets. Let's say that the first column 
contains X values, the second column contains Y values and the third column 
contains labels strings to be displayed next to the point of the plot.

My code looks like the following. How should I use names ?

Second question : is it possible to discard the vertical and horizontal axes of 
the graph ?

Third question : is it possible to discard the lines joining the graph points ?

Thanks a lot in advance for your time !

Georges

    ChartDataSource< Number > xs = DataSources.fromNumericCellRange( 
x2CoordSheet, new CellRangeAddress( 2, rowIdx - 1,
        2,
        2 ) );
    ChartDataSource< Number > ys = DataSources.fromNumericCellRange( 
x2CoordSheet, new CellRangeAddress( 2, rowIdx - 1,
        3,
        3 ) );
    ChartDataSource< String > names = DataSources.fromStringCellRange( 
x2CoordSheet, new CellRangeAddress( 2, rowIdx - 1,
        4,
        4 ) );

    ScatterChartData data = 
chart.getChartDataFactory().createScatterChartData();
    data.addSerie( xs, ys );
    chart.plot( data, bottomAxis, leftAxis );


Reply via email to