forked from chartjs/Chart.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable override settings for the axis border - chartjs#4041
Adds two new options to the cartesian axis: `borderColor` and `borderWidth` which are used to control the border drawn at the edge of the axis area. If these options are not set, the first grid line settings are used.
- Loading branch information
Showing
4 changed files
with
63 additions
and
3 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
58 changes: 58 additions & 0 deletions
58
test/fixtures/core.scale/cartesian-axis-border-settings.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,58 @@ | ||
{ | ||
"config": { | ||
"type": "scatter", | ||
"data": { | ||
"datasets": [{ | ||
"data": [{ | ||
"x": -20, | ||
"y": -30 | ||
}, { | ||
"x": 0, | ||
"y": 0 | ||
}, { | ||
"x": 20, | ||
"y": 15 | ||
}] | ||
}] | ||
}, | ||
"options": { | ||
"legend": false, | ||
"title": false, | ||
"scales": { | ||
"x": { | ||
"axis": "x", | ||
"min": -100, | ||
"max": 100, | ||
"gridLines": { | ||
"borderColor": "blue", | ||
"borderWidth": 5, | ||
"color": "red", | ||
"drawBorder": true, | ||
"drawOnChartArea": false | ||
}, | ||
"ticks": { | ||
"display": false | ||
} | ||
}, | ||
"y": { | ||
"axis": "y", | ||
"min": -100, | ||
"max": 100, | ||
"gridLines": { | ||
"color": "red", | ||
"drawOnChartArea": false | ||
}, | ||
"ticks": { | ||
"display": false | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"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.