Package ca.nanometrics.gflot.client.options

Examples of ca.nanometrics.gflot.client.options.LegendOptions


    PlotOptions plotOptions = new PlotOptions();
    plotOptions.setDefaultLineSeriesOptions(new LineSeriesOptions().setLineWidth(1).setShow(true));
    plotOptions.setDefaultPointsOptions(new PointsSeriesOptions().setRadius(2).setShow(true));
    plotOptions.setDefaultShadowSize(1);

    plotOptions.setLegendOptions(new LegendOptions().setShow(false));

    plotOptions.setSelectionOptions(new SelectionOptions().setDragging(true).setMode("x"));
    final PlotWithOverview plot = new PlotWithOverview(model, plotOptions);
    // add hover listener
    plot.addHoverListener(new PlotHoverListener() {
View Full Code Here


    barSeriesOptions.setLineWidth(1);
    barSeriesOptions.setBarWidth(1);
    barSeriesOptions.setAlignment(BarAlignment.CENTER);

    plotOptions.setDefaultBarsSeriesOptions(barSeriesOptions);
    plotOptions.setLegendOptions(new LegendOptions().setShow(false));

    // add tick formatter to the options
    plotOptions.setXAxisOptions(new AxisOptions().setTicks(12).setTickFormatter(new TickFormatter() {
      public String formatTickValue(double tickValue, Axis axis) {
        if (tickValue > 0 && tickValue <= 12) {
View Full Code Here

    plotOptions.setDefaultPointsOptions(new PointsSeriesOptions().setRadius(2).setShow(true));
    plotOptions.setDefaultShadowSize(0);
    plotOptions.setXAxisOptions(new TimeSeriesAxisOptions());

    PlotOptions overviewPlotOptions = new PlotOptions().setDefaultShadowSize(0).setLegendOptions(
        new LegendOptions().setShow(false)).setDefaultLineSeriesOptions(
        new LineSeriesOptions().setLineWidth(1).setFill(true)).setSelectionOptions(
        new SelectionOptions().setMode(SelectionOptions.X_SELECTION_MODE).setDragging(true)).setXAxisOptions(
        new TimeSeriesAxisOptions());

    final SeriesHandler series = model.addSeries("Random Series", "#FF9900");
View Full Code Here

    PlotModel model = new PlotModel(PlotModelStrategy.defaultStrategy());
    PlotOptions plotOptions = new PlotOptions();
    plotOptions.setDefaultLineSeriesOptions(new LineSeriesOptions().setLineWidth(1).setShow(true));
    plotOptions.setDefaultPointsOptions(new PointsSeriesOptions().setRadius(2).setShow(true));
    plotOptions.setDefaultShadowSize(0);
    plotOptions.setLegendOptions(new LegendOptions().setShow(false));

    // add tick formatter to the options
    plotOptions.setXAxisOptions(new AxisOptions().setTicks(12).setTickFormatter(new TickFormatter() {
      public String formatTickValue(double tickValue, Axis axis) {
        return MONTH_NAMES[(int) (tickValue - 1)];
View Full Code Here

        barSeriesOptions.setLineWidth( 1 );
        barSeriesOptions.setBarWidth( 1 );
        barSeriesOptions.setAlignment( BarAlignment.CENTER );

        plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions().setBarsSeriesOptions( barSeriesOptions ) );
        plotOptions.setLegendOptions( new LegendOptions().setShow( false ) );

        // add tick formatter to the options
        plotOptions.setXAxisOptions( new AxisOptions().setTicks( 12 ).setTickFormatter( new TickFormatter()
        {
            public String formatTickValue( double tickValue, Axis axis )
View Full Code Here

            .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() );
View Full Code Here

        PlotWithOverviewModel model = new PlotWithOverviewModel( PlotModelStrategy.defaultStrategy() );
        PlotOptions plotOptions = new PlotOptions();
        plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions()
        .setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setShow( true ) )
        .setPointsOptions( new PointsSeriesOptions().setRadius( 2 ).setShow( true ) ).setShadowSize( 1 ) );
        plotOptions.setLegendOptions( new LegendOptions().setShow( false ) );

        final PlotWithOverview plot = new PlotWithOverview( model, plotOptions );
        // add hover listener
        plot.addHoverListener( new PlotHoverListener()
        {
View Full Code Here

        PlotWithOverviewModel model = new PlotWithOverviewModel( PlotModelStrategy.downSamplingStrategy( 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.setLegendOptions( new LegendOptions().setLabelFormatter( new LabelFormatter()
        {
            @Override
            public String formatLabel( String label, Series series )
            {
                return label + " formated";
View Full Code Here

        PlotModel model = new PlotModel( PlotModelStrategy.defaultStrategy() );
        PlotOptions plotOptions = new PlotOptions();
        plotOptions.setGlobalSeriesOptions( new GlobalSeriesOptions()
        .setLineSeriesOptions( new LineSeriesOptions().setLineWidth( 1 ).setShow( true ) )
        .setPointsOptions( new PointsSeriesOptions().setRadius( 3 ).setShow( true ).setSymbol( PointSymbol.DIAMOND ) ) );
        plotOptions.setLegendOptions( new LegendOptions().setShow( false ) );

        // add tick formatter to the options
        plotOptions.setXAxisOptions( new TimeSeriesAxisOptions().setTickSize( 2, TickTimeUnit.MONTH ).setMonthNames( MONTH_NAMES ) );

        // create a series
View Full Code Here

TOP

Related Classes of ca.nanometrics.gflot.client.options.LegendOptions

Copyright © 2018 www.massapicom. 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.