public Widget createExample()
{
PlotWithOverviewModel model = new PlotWithOverviewModel( PlotModelStrategy.slidingWindowStrategy( 20 ) );
PlotOptions plotOptions = new PlotOptions();
plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions()
.setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setShow( true ) )
.setPointsOptions( new PointsSeriesOptions().setRadius( 2 ).setShow( true ) ).setShadowSize( 0d ) );
plotOptions.setXAxisOptions( new TimeSeriesAxisOptions() );
PlotOptions overviewPlotOptions =
new PlotOptions()
.setLegendOptions( new LegendOptions().setShow( false ) )
.setGlobalSeriesOptions(
new GlobalSeriesOptions().setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setFill( true ) )
.setShadowSize( 0d ) )
.setSelectionOptions( new SelectionOptions().setMode( SelectionMode.X ) )
.setXAxisOptions( new TimeSeriesAxisOptions() );
final SeriesHandler series = model.addSeries( "Random Series", "#FF9900" );