From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 18 Mar 2019 07:14:01 +0000 (-0700) Subject: Add docs for the date adapter used by the time scale (#6134) X-Git-Tag: v2.9.0~1^2~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=390a8d7b413a5ba557f8b73888bad0b19aba8ed4;p=thirdparty%2FChart.js.git Add docs for the date adapter used by the time scale (#6134) --- diff --git a/docs/axes/cartesian/time.md b/docs/axes/cartesian/time.md index a3d3e016c..61e04da74 100644 --- a/docs/axes/cartesian/time.md +++ b/docs/axes/cartesian/time.md @@ -2,6 +2,10 @@ The time scale is used to display times and dates. When building its ticks, it will automatically calculate the most comfortable unit base on the size of the scale. +## Date Adapters + +The time scale requires both a date library and corresponding adapter to be present. By default, Chart.js includes an adapter for Moment.js. You may wish to [exclude moment](../../getting-started/integration.md) and choose from [other available adapters](https://github.com/chartjs/awesome#adapters) instead. + ## Data Sets ### Input Data