Examples of LineChart


Examples of com.google.gwt.visualization.client.visualizations.corechart.LineChart

        mShortDateFormat = DateFormat.create(dfo);

        mPackageTotalsGraph = new PieChart(createTotalReportTable(), createTotalReportOptions());
        pieHolder.add(mPackageTotalsGraph);

        mTotalsMonthGraph = new LineChart(createTotalsMonthTable(), createTotalsMonthOptions());
        topPanel.add(mTotalsMonthGraph);

        mPackageMonthGraph = new LineChart(createPackageMonthTable(), createPackageMonthOptions(null));
        midPanel.add(mPackageMonthGraph);

        mPackageTotalsGraph.addReadyHandler(new ReadyHandler()
        {
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.LineChart

    public Widget asWidget() {
        layout = new VerticalPanel();

        // chart
        chart = new LineChart(createTable(), createOptions()) ;
        layout.add(chart);

        return layout;

    }
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.LineChart

        if(chart!=null)
        {
            layout.clear();
            chart=null;

            chart = new LineChart(createTable(), createOptions()) ;
            chart.setTitle(title);
            layout.add(chart);
        }
    }
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.LineChart

            long usedMb = ( used/1024)/1024;
            long maxMb = (max/1024)/1024;

            if(chart==null)
            {
                chart = new LineChart(createTable(), createOptions()) ;
                chart.setTitle(title);
                layout.add(chart);
            }

            data.addRow();
View Full Code Here

Examples of com.google.gwt.visualization.client.visualizations.corechart.LineChart

  @Override
  public void buildView() {

    this.viewPanel.clear();

    this.chart = new LineChart(createChartDataTable(), createChartOptions());

    this.viewPanel.add(this.chart);
  }
View Full Code Here

Examples of com.googlecode.charts4j.LineChart

      line1 = Plots.newLine(DataUtil.scaleWithinRange(min, max, points), lineColor, lineLabel);
    line1.setLineStyle(LineStyle.newLineStyle(1, 1, 0));
    line1.addShapeMarkers(Shape.CIRCLE, lineColor, pointSize);
   
    // Defining chart.
    LineChart chart = GCharts.newLineChart(line1);
    chart.setSize(w, h);
    if (title != null)
      chart.setTitle(title, Color.BLACK, 20);
    // chart.addHorizontalRangeMarker(40, 60, Color.newColor(Color.RED, 30));
    // chart.addVerticalRangeMarker(70, 90, Color.newColor(Color.GREEN, 30));
    chart.setGrid(points.size(), 100/(max/10), 2, 1);
   
    // selected indexes - vertical lines
    if (selectedIndexes != null)
      for (int i=0; i<selectedIndexes.size(); i++)
      {
        if (selectedIndexes.get(i) >= 0)
        {
          double position = (double)selectedIndexes.get(i)/points.size()*100;

          // to account for rounding errors
          if (position < 1)
            position = 1;

          if (position > 99)
            position = 99;
         
          //p(position);
         
          chart.addVerticalRangeMarker(position, position + 1, Color.RED )// positions must be in [0,100]
        }
      }
   
    // // Defining axis info and styles
    AxisStyle axisStyle = AxisStyle.newAxisStyle(Color.BLACK, axisFontSize, AxisTextAlignment.CENTER);
    AxisLabels yAxis = AxisLabelsFactory.newNumericRangeAxisLabels(0, max);
    yAxis.setAxisStyle(axisStyle);

    // // Adding axis info to chart.
    chart.addYAxisLabels(yAxis);

    // url
    String url = chart.toURLString();
   
    // browse
    if (showInBrowser)
      net.wigis.svetlin.__Browser.openUrl(url);

View Full Code Here

Examples of com.googlecode.gwt.charts.client.corechart.LineChart

    chartLoader.loadApi(new Runnable() {

      @Override
      public void run() {
        // Create and attach the chart
        chart = new LineChart();
        add(chart);
        draw();
      }
    });
  }
View Full Code Here

Examples of com.lazerycode.selenium.graphs.LineChart

  @Test
  public void validateLineChart() {
    driver.get(webServerURL + ":" + webServerPort + "/highcharts.html");

    WebElement highChartSVGElement = driver.findElement(By.id("linechart"));
    LineChart chartObject = new LineChart(driver, highChartSVGElement);

    assertThat(chartObject.isChartDisplayed(), is(equalTo(true)));
    assertThat(chartObject.isLegendDisplayed(), is(equalTo(true)));

    chartObject.hoverOverPointOfGraphAtXAxisLabel("Bananas");

    assertThat(chartObject.isTooltipDisplayed(), is(equalTo(true)));
    assertThat(chartObject.getToolTipLine(1), is(equalTo("Bananas")));
    assertThat(chartObject.getToolTipLine(2), is(equalTo("Jane")));
    assertThat(chartObject.getToolTipLine(3), is(equalTo(":")));
    assertThat(chartObject.getToolTipLine(4), is(equalTo("0")));
    assertThat(chartObject.getToolTipLine(5), is(equalTo("John")));
    assertThat(chartObject.getToolTipLine(6), is(equalTo(":")));
    assertThat(chartObject.getToolTipLine(7), is(equalTo("7")));

    String[] EXPECTED_X_AXIS_LABELS = {"Apples", "Bananas", "Oranges"};
    String[] EXPECTED_Y_AXIS_LABELS = {"0", "-2.5", "2.5", "5", "7.5", "Fruit eaten"};

    assertThat(chartObject.getXAxisLabelsAsArray(), is(equalTo(EXPECTED_X_AXIS_LABELS)));
    assertThat(chartObject.getYAxisLabelsAsArray(), is(equalTo(EXPECTED_Y_AXIS_LABELS)));
  }
View Full Code Here

Examples of com.salas.bb.utils.uif.charts.LineChart

            for (ReadStats stat : stats)
            {
                if (i++ == max) break;

                LineChartData data = new LineChartData(stat.getCounts());
                LineChart chart = new LineChart(data, config);

                builder.appendRelatedComponentsGapRow(2);
                builder.appendRow("max(p;20px)");
                builder.append(new JLabel(itemIcon));
                builder.append(createLabel(stat.getObjectId(), stat.getObjectTitle()));
View Full Code Here

Examples of com.salas.bb.utils.uif.charts.LineChart

        hours[12] = Strings.message("report.noon");

        LineChartConfig config = new LineChartConfig();
        config.setIndexLabelStep(4);
        LineChartData dataByHour = new LineChartData(readByHourTotal, hours);
        LineChart chartByHour = new LineChart(dataByHour, config);

        LineChartData dataByHourReset = new LineChartData(readByHourReset, hours);
        LineChart chartByHourReset = new LineChart(dataByHourReset, config);

        // Initialize the panel itself
        setBackground(config.getBackgroundColor());

        // Build the layout
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.