Skip to content

Commit

Permalink
图表的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BEE-Synth committed Jan 4, 2016
1 parent 13ae733 commit bca5aa7
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ private void refreshLineChart() {
.getLineChart(getBegin(), getEnd(), type);

// set Axis and Title
NumberAxis yAxis = new NumberAxis();
CategoryAxis xAxis = new CategoryAxis();
LineChart<String, Number> lineChart = new LineChart<>(xAxis, yAxis);
NumberAxis yAxis = (NumberAxis)lineChart.getYAxis();
CategoryAxis xAxis = (CategoryAxis)lineChart.getXAxis();
// LineChart<String, Number> lineChart = new LineChart<>(xAxis, yAxis);
lineChart.setTitle(lineChartVO.title);
// set labels
xAxis.setLabel(lineChartVO.mainXType);
Expand Down Expand Up @@ -153,8 +153,8 @@ private void refreshBarChart() {
.getBarChart(getBegin(), getEnd(), type);

// set Axis and Title
NumberAxis yAxis = new NumberAxis();
CategoryAxis xAxis = new CategoryAxis();
NumberAxis yAxis = (NumberAxis)barChart.getYAxis();
CategoryAxis xAxis = (CategoryAxis)barChart.getXAxis();
barChart.setTitle(barChartVO.title);
// set labels
xAxis.setLabel(barChartVO.mainXType);
Expand Down

0 comments on commit bca5aa7

Please sign in to comment.