Skip to content

Commit

Permalink
Allow to set the min, max value of a scale
Browse files Browse the repository at this point in the history
  • Loading branch information
asheshv committed Sep 9, 2019
1 parent ba9b0d0 commit 2d4b5bc
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 26 deletions.
2 changes: 2 additions & 0 deletions dist/chartjs-plugin-gantt.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ const ScaleUtils = {

scale.min = null;
scale.max = null;
if (scale.options && scale.options.minVal) scale.min = scale.options.minVal;
if (scale.options && scale.options.maxVal) scale.max = scale.options.maxVal;
helpers.each(chart.data.datasets, function (dataset, datasetIndex) {
const meta = chart.getDatasetMeta(datasetIndex);

Expand Down
2 changes: 1 addition & 1 deletion dist/chartjs-plugin-gantt.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2d4b5bc

Please sign in to comment.