Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Allow scale labels to override category labels, if set
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean committed Dec 21, 2016
1 parent ecc35c5 commit 014952b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scales/scale.category.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ module.exports = function(Chart) {
*/
getLabels: function() {
var data = this.chart.data;
return (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels;

return this.options.labels || (this.isHorizontal() ? data.xLabels : data.yLabels) || data.labels;
},
// Implement this so that
determineDataLimits: function() {
Expand Down

0 comments on commit 014952b

Please sign in to comment.