Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
InvientCharts, do not distribute bars evenly
Hi,
I'm going to add big number of series to a bar chart, but by adding more bars (series), they are becoming more compact and not distributed through the whole x-axis. Do you have any idea ?
while( iter.hasNext() )
{
Object [] rec = ( Object [] ) iter.next();
String sdpid = ( String ) rec[ 0 ];
int fr = bigDec2Int( rec[ 1 ], 0 );
int ii = bigDec2Int( rec[ 2 ], 0 );
int fn = bigDec2Int( rec[ 3 ], 0 );
seriesData = new XYSeries( sdpid + " FR" );
seriesData.setSeriesPoints( getPoints( seriesData, fr ) );
invChart.addSeries( seriesData );
seriesData = new XYSeries( sdpid + " II" );
seriesData.setSeriesPoints( getPoints( seriesData, ii ) );
invChart.addSeries( seriesData );
}
Last updated on Mar, 25th 2012
You cannot reply to this thread.