Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8109507

XYChart API attributes related to horizontal&vertical grid lines & row fill colors are not working.

    Details

      Description

      XYChart API attributes related to horizontal & vertical grid lines & row fill colors are not working.
      This is reproducible with soma b17.

      import javafx.scene.chart.part.*;
      import javafx.scene.chart.*;
      import javafx.scene.*;
      import javafx.scene.paint.*;
      import javafx.scene.shape.*;
      import javafx.scene.text.*;
      import javafx.stage.*;

      var xAxis = NumberAxis {
              lowerBound: 0
              upperBound: 120
              tickUnit: 30
      };
      var yAxis = NumberAxis {
          lowerBound: 0
          upperBound: 30
          tickUnit: 10
      };
      var testData = LineChart.Series {
          name: "line"
          data: [
              LineChart.Data { xValue: 0.5, yValue: 0 }
              LineChart.Data { xValue: 5, yValue: 1 }
              LineChart.Data { xValue: 10, yValue: 2 }
              LineChart.Data { xValue: 15, yValue: 3 }
              LineChart.Data { xValue: 20, yValue: 4 }
              LineChart.Data { xValue: 25, yValue: 5 }
              LineChart.Data { xValue: 39, yValue: 6 }
          ]
      };
      var lineChart:LineChart = LineChart {
          horizontalGridLineVisible: true
          verticalGridLineVisible: true

          horizontalAlternateRowFill: Color.LIGHTGREY
          verticalAlternateRowFill: Color.BLUE

          horizontalGridLineStroke: Color.BROWN
          verticalGridLineStroke: Color.BLACK

          horizontalGridLineStrokeWidth:4
          verticalGridLineStrokeWidth: 4

          horizontalZeroLineVisible: true
          verticalZeroLineVisible: true

          showSymbols: false
          dataEffect: null
          xAxis: xAxis
          yAxis: yAxis
          data: testData
      };
      Stage {
          scene: Scene { content: [ lineChart ] }
          title: "Chart Test"
          width: 400
          height: 400
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                psomashe Parvathi Somashekar (Inactive)
                Reporter:
                smandalisunw Srinivas Mandalika (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: