mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-09 09:46:51 +01:00
Make Chart.Ticks private and remove Chart.Ticks.generators.time (#4602)
This commit is contained in:
@@ -13,7 +13,6 @@ Chart.Element = require('./core/core.element');
|
||||
Chart.elements = require('./elements/index');
|
||||
Chart.Interaction = require('./core/core.interaction');
|
||||
Chart.platform = require('./platforms/platform');
|
||||
Chart.Ticks = require('./core/core.ticks');
|
||||
|
||||
require('./core/core.plugin')(Chart);
|
||||
require('./core/core.animation')(Chart);
|
||||
|
||||
@@ -407,10 +407,6 @@ module.exports = function(Chart) {
|
||||
}
|
||||
};
|
||||
|
||||
Chart.Ticks.generators.time = function(opts, range) {
|
||||
return generate(range.min, range.max, opts.unit, opts.majorUnit, opts.stepSize, opts.timeOpts);
|
||||
};
|
||||
|
||||
var TimeScale = Chart.Scale.extend({
|
||||
initialize: function() {
|
||||
if (!moment) {
|
||||
|
||||
Reference in New Issue
Block a user