Examples of Chart


Examples of com.vaadin.addon.charts.Chart

        }
    };

    @Override
    protected void init(VaadinRequest vaadinRequest) {
        chart = new Chart();
        chart.setSizeFull();
        setContent(chart);

        series = new ListSeries("Random values");
View Full Code Here

Examples of com.xeiam.xchart.Chart

        dataset.setLineStyle(SeriesLineStyle.DASH_DASH);
        dataset.setMarker(SeriesMarker.NONE);
    }

    public static Chart createChart(String title, LegendPosition position) {
        Chart chart = new ChartBuilder().width(650).height(450).build();

        // Customize Chart
        chart.setChartTitle(title);
        chart.getStyleManager().setChartTitleVisible(true);
        chart.getStyleManager().setChartTitleFont(new Font("Arial", Font.PLAIN, 12));
        chart.getStyleManager().setLegendPosition(position);
        chart.getStyleManager().setLegendVisible(true);
        chart.getStyleManager().setLegendFont(new Font("Arial", Font.PLAIN, 12));
        chart.getStyleManager().setLegendPadding(6);
        chart.getStyleManager().setLegendSeriesLineLength(10);
        chart.getStyleManager().setAxisTickLabelsFont(new Font("Arial", Font.PLAIN, 10));
       
        chart.getStyleManager().setChartBackgroundColor(Color.white);
        chart.getStyleManager().setChartPadding(4);
       
        chart.getStyleManager().setChartType(ChartType.Line);
        return chart;
    }
View Full Code Here

Examples of com.xeiam.xchart.Chart

    public static JComponent createComponent() {
        JComponent container = new JPanel();
        container.setLayout(new BoxLayout(container, BoxLayout.PAGE_AXIS));

        Chart chart = createChart("Cannonball", LegendPosition.InsideNE);
        cannonballTest(chart);
        container.add(new XChartPanel(chart));
       
        container.setBorder(BorderFactory.createLineBorder(Color.black, 1));
        return container;
View Full Code Here

Examples of com.xeiam.xchart.Chart

        JComponent container = new JPanel();
        container.setLayout(new BoxLayout(container, BoxLayout.PAGE_AXIS));
       
        container.add(new JLabel(distributionName));
       
        Chart chart = createChart("PDF", minX, maxX, LegendPosition.InsideNE);
        int i = 0;
        for (RealDistribution d : series) {
            addPDFSeries(chart, d, seriesText[i++], minX, maxX);
        }
        container.add(new XChartPanel(chart));
View Full Code Here

Examples of com.xeiam.xchart.Chart

        series.setMarker(SeriesMarker.NONE);
        series.setLineStyle(new BasicStroke(1.2f));
    }

    public static Chart createChart(String title, int minX, int maxX, LegendPosition position) {
        Chart chart = new ChartBuilder().width(235).height(200).build();

        // Customize Chart
        chart.setChartTitle(title);
        chart.getStyleManager().setChartTitleVisible(true);
        chart.getStyleManager().setChartTitleFont(new Font("Arial", Font.PLAIN, 10));
        chart.getStyleManager().setLegendPosition(position);
        chart.getStyleManager().setLegendVisible(true);
        chart.getStyleManager().setLegendFont(new Font("Arial", Font.PLAIN, 10));
        chart.getStyleManager().setLegendPadding(6);
        chart.getStyleManager().setLegendSeriesLineLength(6);
        chart.getStyleManager().setAxisTickLabelsFont(new Font("Arial", Font.PLAIN, 9));
       
        chart.getStyleManager().setXAxisMin(minX);
        chart.getStyleManager().setXAxisMax(maxX);
        chart.getStyleManager().setChartBackgroundColor(Color.white);
        chart.getStyleManager().setChartPadding(4);
       
        chart.getStyleManager().setChartType(ChartType.Line);
        return chart;
    }
View Full Code Here

Examples of com.xeiam.xchart.Chart

    }

    public static Chart createChart(String title, int width, int height,
                                    LegendPosition position, boolean legendVisible) {
        Chart chart = new ChartBuilder().width(width).height(height).build();

        // Customize Chart
        chart.setChartTitle(title);
        chart.getStyleManager().setChartTitleVisible(true);
        chart.getStyleManager().setChartTitleFont(new Font("Arial", Font.PLAIN, 12));
        chart.getStyleManager().setLegendPosition(position);
        chart.getStyleManager().setLegendVisible(legendVisible);
        chart.getStyleManager().setLegendFont(new Font("Arial", Font.PLAIN, 12));
        chart.getStyleManager().setLegendPadding(6);
        chart.getStyleManager().setLegendSeriesLineLength(10);
        chart.getStyleManager().setAxisTickLabelsFont(new Font("Arial", Font.PLAIN, 10));
       
        chart.getStyleManager().setChartBackgroundColor(Color.white);
        chart.getStyleManager().setChartPadding(4);
       
        chart.getStyleManager().setChartType(ChartType.Line);
        return chart;
    }
View Full Code Here

Examples of com.xeiam.xchart.Chart

    public static JComponent createComponent() {
        JComponent container = new JPanel();
        container.setLayout(new BoxLayout(container, BoxLayout.LINE_AXIS));
       
        Chart chart1 = createChart("Voltage", 550, 450, LegendPosition.InsideNE, true);
        Chart chart2 = createChart("Error Covariance", 450, 450, LegendPosition.InsideNE, false);
       
        constantVoltageTest(chart1, chart2);

        container.add(new XChartPanel(chart1));
        container.add(new XChartPanel(chart2));
View Full Code Here

Examples of fr.soleil.comete.swing.Chart

    public ChartPanelDemo() {
        super(new BorderLayout());

        sourcePanel = initSourcePanel();

        chartViewer = new Chart();
        ShowInFrameMenu showInFrameMenu = new ShowInFrameMenu();
        chartViewer.addMenuItem(showInFrameMenu);
        String[] labels = { "Test1", "Test2", "Test3" };
        double[] labelPositions = { 0.0, 10.0, 20.0 };
        chartViewer.setLabels(IChartViewer.X, labels, labelPositions);
View Full Code Here

Examples of fr.soleil.comete.swing.Chart

        IKeyGenerator simulatedKey = new SimulatedKeyGenerator();
        keyGeneratorMap.put(simulatedKey.toString(), simulatedKey);

        // create components
        chartBox = new ChartViewerBox();
        chartViewer = new Chart();
        // chartViewer.setAnnotation(IChartViewer.TIME_ANNO, IChartViewer.X);
        chartViewer.setAutoHighlightOnLegend(true);

        sourceProducerList = new ComboBox();
        sourceProducerList.addComboBoxListener(this);
View Full Code Here

Examples of fr.soleil.comete.swing.Chart

    private final Chart chartViewer1;
    private final JTextArea textArea1;
    private final JButton applyProperties;

    public PlotPropertiesToXml() {
        chartViewer1 = new Chart();
        chartViewer1.setAutoHighlightOnLegend(true);
        textArea1 = new JTextArea();
        applyProperties = new JButton("Apply");
        applyProperties.addActionListener(new ActionListener() {
            @Override
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.