Examples of AxisChart


Examples of org.krysalis.jcharts.axisChart.AxisChart

    AxisProperties axisProperties= new AxisProperties();
    axisProperties.setXAxisLabelsAreVertical( true );
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "chartNoTitle" );
  }
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

    AxisProperties axisProperties= new AxisProperties();
    axisProperties.setXAxisLabelsAreVertical( true );
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "chartTitleWrapping" );
  }
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

      Paint[] paints = new Paint[]{Color.blue.darker()};
      Paint[] linePaints = new Paint[]{Color.green};
      dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, this.barChartProperties ) );
      dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( data, legendLabels, linePaints, ChartType.LINE, this.lineChartProperties ) );

      AxisChart axisChart = new AxisChart( dataSeries, this.chartProperties, this.axisProperties, this.legendProperties, this.width, this.height );
      ServletEncoderHelper.encodeJPEG13( axisChart, 1.0f, httpServletResponse );
    }
    catch( Throwable throwable )
    {
      //HACK do your error handling here...
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

      double[][] data = new double[][]{{1500, 6880, 4510, 2600, -1200, -1580, 7000, 4555, 4000, 6120}};
      String[] legendLabels = {"Bugs"};
      Paint[] paints = new Paint[]{Color.yellow};
      dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, this.barChartProperties ) );

      AxisChart axisChart = new AxisChart( dataSeries, this.chartProperties, this.axisProperties, this.legendProperties, this.width, this.height );
      ServletEncoderHelper.encodeJPEG13( axisChart, 1.0f, httpServletResponse );
    }
    catch( Throwable throwable )
    {
      //HACK do your error handling here...
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

    dataAxisProperties.setNumItems( 4 );
    dataAxisProperties.setRoundToNearest( 1 );

    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, 500, 400 );

    ChartTestDriver.exportImage( axisChart, "AreaChartTest.png" );

  }
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

      yAxis.setNumItems( 4 );
    yAxis.setRoundToNearest( 1 );

    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, 500, 400 );

    ChartTestDriver.exportImage( axisChart, "LineChartTest.png" );

  }
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

   *
   * @param axisValueRenderEvent
   ***********************************************************************************/
  public void postRender( AxisValueRenderEvent axisValueRenderEvent )
  {
    AxisChart axisChart = (AxisChart) axisValueRenderEvent.getSource();
    TextTag valueTag;
    float x;
    float y;


    if( axisValueRenderEvent.getiAxisPlotDataSet() instanceof IAxisChartDataSet )
    {
      IAxisChartDataSet iAxisChartDataSet = (IAxisChartDataSet) axisValueRenderEvent.getiAxisPlotDataSet();
      double value = iAxisChartDataSet.getValue( axisValueRenderEvent.getDataSetIndex(), axisValueRenderEvent.getValueIndex() );

      valueTag = new TextTag( this.numberFormat.format( value ),
                      this.valueChartFont.getFont(),
                      this.derivedFont,
                      axisValueRenderEvent.getFontRenderContext() );

      if( axisChart.getAxisProperties().isPlotHorizontal() )
      {
        x = this.calculateXHorizontalPlot( axisValueRenderEvent, valueTag, (value < 0) );
        y = this.calculateYHorizontalPlot( axisValueRenderEvent, valueTag );
      }
      else
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "basicChart" );
  }
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "strokes" );
  }
View Full Code Here

Examples of org.krysalis.jcharts.axisChart.AxisChart

    ChartProperties chartProperties= new ChartProperties();
    AxisProperties axisProperties= new AxisProperties();
    LegendProperties legendProperties= new LegendProperties();

    AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisChartsGuide.width, AxisChartsGuide.height );

    super.exportImage( axisChart, "missingValues" );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.