forked from chartjs/Chart.js
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for floating bar chart ([start, end]) (chartjs#6056)
- Loading branch information
1 parent
d1b1141
commit 0470ce1
Showing
13 changed files
with
259 additions
and
40 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
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
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
41 changes: 41 additions & 0 deletions
41
test/fixtures/controller.bar/floatBar/float-bar-horizontal.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": "horizontalBar", | ||
"data": { | ||
"labels": ["2030", "2034", "2038", "2042"], | ||
"datasets": [{ | ||
"backgroundColor": "#FF6384", | ||
"data": [11, [6,2], [-4,-7], -2] | ||
}, { | ||
"backgroundColor": "#36A2EB", | ||
"data": [[1,2], [3,4], [-2,-3], [1,4]] | ||
}, { | ||
"backgroundColor": "#FFCE56", | ||
"data": [[0,1], [1,2], [-2,-1], [1,-7]] | ||
}] | ||
}, | ||
"options": { | ||
"title": false, | ||
"legend": false, | ||
"scales": { | ||
"xAxes": [{ | ||
"display": false, | ||
"ticks": { | ||
"min": -8, | ||
"max": 12 | ||
} | ||
}], | ||
"yAxes": [{ | ||
"display": false | ||
}] | ||
} | ||
} | ||
}, | ||
"debug": false, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions
43
test/fixtures/controller.bar/floatBar/float-bar-stacked-horizontal.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,43 @@ | ||
{ | ||
"config": { | ||
"type": "horizontalBar", | ||
"data": { | ||
"labels": ["2030", "2034", "2038", "2042"], | ||
"datasets": [{ | ||
"backgroundColor": "#FF6384", | ||
"data": [11, [6,2], [-4,-7], -2] | ||
}, { | ||
"backgroundColor": "#36A2EB", | ||
"data": [[1,2], [3,4], [-2,-3], [1,4]] | ||
}, { | ||
"backgroundColor": "#FFCE56", | ||
"data": [[0,1], [1,2], [-2,-1], [1,-7]] | ||
}] | ||
}, | ||
"options": { | ||
"title": false, | ||
"legend": false, | ||
"scales": { | ||
"xAxes": [{ | ||
"display": false, | ||
"stacked": true | ||
}], | ||
"yAxes": [{ | ||
"display": false, | ||
"stacked": true, | ||
"ticks": { | ||
"min": -8, | ||
"max": 12 | ||
} | ||
}] | ||
} | ||
} | ||
}, | ||
"debug": false, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Binary file added
BIN
+4.95 KB
test/fixtures/controller.bar/floatBar/float-bar-stacked-horizontal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions
43
test/fixtures/controller.bar/floatBar/float-bar-stacked.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,43 @@ | ||
{ | ||
"config": { | ||
"type": "bar", | ||
"data": { | ||
"labels": ["2030", "2034", "2038", "2042"], | ||
"datasets": [{ | ||
"backgroundColor": "#FF6384", | ||
"data": [11, [6,2], [-4,-7], -2] | ||
}, { | ||
"backgroundColor": "#36A2EB", | ||
"data": [[1,2], [3,4], [-2,-3], [1,4]] | ||
}, { | ||
"backgroundColor": "#FFCE56", | ||
"data": [[0,1], [1,2], [-2,-1], [1,-7]] | ||
}] | ||
}, | ||
"options": { | ||
"title": false, | ||
"legend": false, | ||
"scales": { | ||
"xAxes": [{ | ||
"display": false, | ||
"stacked": true, | ||
"ticks": { | ||
"min": -8, | ||
"max": 12 | ||
} | ||
}], | ||
"yAxes": [{ | ||
"display": false, | ||
"stacked": true | ||
}] | ||
} | ||
} | ||
}, | ||
"debug": false, | ||
"options": { | ||
"canvas": { | ||
"height": 256, | ||
"width": 512 | ||
} | ||
} | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.