Package ChartDirector

Examples of ChartDirector.XYChart.yAxis()


        LegendBox b = c.addLegend2(55, 33, 3, "Arial Bold", 9);
        b.setBackground(Chart.Transparent, Chart.Transparent);
        b.setWidth(520);

        // Configure the y-axis with a 10pts Arial Bold axis title
        c.yAxis().setTitle("Price (USD)", "Arial Bold", 10);

        // Configure the x-axis to auto-scale with at least 75 pixels between major tick and 15
        // pixels between minor ticks. This shows more minor grid lines on the chart.
        c.xAxis().setTickDensity(75, 15);
View Full Code Here


        // pixels between minor ticks. This shows more minor grid lines on the chart.
        c.xAxis().setTickDensity(75, 15);

        // Set the axes width to 2 pixels
        c.xAxis().setWidth(2);
        c.yAxis().setWidth(2);

        // Now we add the data to the chart
        Date lastTime = timeStamps[timeStamps.length - 1];
        if (lastTime != null) {
            // Set up the x-axis to show the time range in the data buffer
View Full Code Here

            //

            // Add a red mark line to the chart, with the mark label shown at the left of
            // the mark line.
            double thresholdValue = Double.parseDouble(alarmThreshold.getText());
            Mark m = c.yAxis().addMark(thresholdValue, 0xff0000, "Alarm = " + thresholdValue);
            m.setAlignment(Chart.Left);
            m.setBackground(0xffcccc);

            if ((dataSeriesC[dataSeriesC.length - 1] > thresholdValue)
                    || (dataSeriesB[dataSeriesB.length - 1] > thresholdValue)) {
View Full Code Here

        LegendBox b = c.addLegend2(55, 33, 3, "Arial Bold", 9);
        b.setBackground(Chart.Transparent, Chart.Transparent);
        b.setWidth(520);

        // Configure the y-axis with a 10pts Arial Bold axis title
        c.yAxis().setTitle("Price (USD)", "Arial Bold", 10);

        // Configure the x-axis to auto-scale with at least 75 pixels between major tick and 15
        // pixels between minor ticks. This shows more minor grid lines on the chart.
        c.xAxis().setTickDensity(75, 15);
View Full Code Here

        // pixels between minor ticks. This shows more minor grid lines on the chart.
        c.xAxis().setTickDensity(75, 15);

        // Set the axes width to 2 pixels
        c.xAxis().setWidth(2);
        c.yAxis().setWidth(2);

        // Now we add the data to the chart
        Date lastTime = timeStamps[timeStamps.length - 1];
        if (lastTime != null) {
            // Set up the x-axis to show the time range in the data buffer
View Full Code Here

            //

            // Add a red mark line to the chart, with the mark label shown at the left of
            // the mark line.
            double thresholdValue = Double.parseDouble(alarmThreshold.getText());
            Mark m = c.yAxis().addMark(thresholdValue, 0xff0000, "Alarm = " + thresholdValue);
            m.setAlignment(Chart.Left);
            m.setBackground(0xffcccc);

            if ((dataSeriesC[dataSeriesC.length - 1] > thresholdValue)
                    || (dataSeriesB[dataSeriesB.length - 1] > thresholdValue)) {
View Full Code Here

        LegendBox b = c.addLegend2(55, 33, 3, "Arial Bold", 9);
        b.setBackground(Chart.Transparent, Chart.Transparent);
        b.setWidth(520);

        // Configure the y-axis with a 10pts Arial Bold axis title
        c.yAxis().setTitle("Price (USD)", "Arial Bold", 10);

        // Configure the x-axis to auto-scale with at least 75 pixels between major tick and 15
        // pixels between minor ticks. This shows more minor grid lines on the chart.
        c.xAxis().setTickDensity(75, 15);
View Full Code Here

        // pixels between minor ticks. This shows more minor grid lines on the chart.
        c.xAxis().setTickDensity(75, 15);

        // Set the axes width to 2 pixels
        c.xAxis().setWidth(2);
        c.yAxis().setWidth(2);

        // Now we add the data to the chart
        Date lastTime = timeStamps[timeStamps.length - 1];
        if (lastTime != null) {
            // Set up the x-axis to show the time range in the data buffer
View Full Code Here

            //

            // Add a red mark line to the chart, with the mark label shown at the left of
            // the mark line.
            double thresholdValue = Double.parseDouble(alarmThreshold.getText());
            Mark m = c.yAxis().addMark(thresholdValue, 0xff0000, "Alarm = " + thresholdValue);
            m.setAlignment(Chart.Left);
            m.setBackground(0xffcccc);

            if ((dataSeriesC[dataSeriesC.length - 1] > thresholdValue)
                    || (dataSeriesB[dataSeriesB.length - 1] > thresholdValue)) {
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.