-
Bug
-
Resolution: Fixed
-
P2
-
fx1.2
-
XP Prof, jdk6u18, soma-b17
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
}
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
}
- is blocked by
-
JDK-8108090 Neither vertical nor horizontal grid is pinted for chart on Vista
- Closed