mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-14 20:26:50 +01:00
Time Scale now requires and warns for Moment.js dep
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
if (!window.moment) {
|
||||
console.warn('Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at http://momentjs.com/');
|
||||
return;
|
||||
}
|
||||
|
||||
var root = this,
|
||||
Chart = root.Chart,
|
||||
helpers = Chart.helpers;
|
||||
|
||||
Reference in New Issue
Block a user