-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix time scale ticks.reverse issue (#5933)
- Loading branch information
1 parent
918e2c0
commit 39b4d61
Showing
9 changed files
with
172 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
test/fixtures/controller.bar/bar-thickness-flex-single-reverse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"config": { | ||
"type": "bar", | ||
"data": { | ||
"labels": ["2016", "2018", "2020", "2024", "2030"], | ||
"datasets": [{ | ||
"backgroundColor": "#FF6384", | ||
"data": [1] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"legend": false, | ||
"title": false, | ||
"scales": { | ||
"xAxes": [{ | ||
"type": "time", | ||
"display": false, | ||
"barThickness": "flex", | ||
"barPercentage": 1, | ||
"categoryPercentage": 1, | ||
"ticks": { | ||
"source": "labels", | ||
"reverse": true | ||
} | ||
}], | ||
"yAxes": [{ | ||
"display": false, | ||
"ticks": { | ||
"beginAtZero": true | ||
} | ||
}] | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions
41
test/fixtures/controller.bar/bar-thickness-flex-single.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"config": { | ||
"type": "bar", | ||
"data": { | ||
"labels": ["2016", "2018", "2020", "2024", "2030"], | ||
"datasets": [{ | ||
"backgroundColor": "#FF6384", | ||
"data": [1] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"legend": false, | ||
"title": false, | ||
"scales": { | ||
"xAxes": [{ | ||
"type": "time", | ||
"display": false, | ||
"barThickness": "flex", | ||
"barPercentage": 1, | ||
"categoryPercentage": 1, | ||
"ticks": { | ||
"source": "labels" | ||
} | ||
}], | ||
"yAxes": [{ | ||
"display": false, | ||
"ticks": { | ||
"beginAtZero": true | ||
} | ||
}] | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"config": { | ||
"type": "bar", | ||
"data": { | ||
"labels": ["2016", "2018", "2020", "2024", "2030"], | ||
"datasets": [{ | ||
"backgroundColor": "#FF6384", | ||
"data": [1, null, 3, 4, 5] | ||
}, { | ||
"backgroundColor": "#36A2EB", | ||
"data": [5, 4, 3, null, 1] | ||
}, { | ||
"backgroundColor": "#FFCE56", | ||
"data": [3, 5, 2, null, 4] | ||
}] | ||
}, | ||
"options": { | ||
"responsive": false, | ||
"legend": false, | ||
"title": false, | ||
"scales": { | ||
"xAxes": [{ | ||
"type": "time", | ||
"display": false, | ||
"barPercentage": 1, | ||
"categoryPercentage": 1, | ||
"ticks": { | ||
"source": "labels", | ||
"reverse": true | ||
} | ||
}], | ||
"yAxes": [{ | ||
"display": false, | ||
"ticks": { | ||
"beginAtZero": true | ||
} | ||
}] | ||
} | ||
} | ||
}, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters