You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, `https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns@next` returns the latest (minified) version, however it's [highly recommended](https://www.jsdelivr.com/features) to always specify a version in order to avoid breaking changes. This can be achieved by appending `@{version}` to the url:
Read more about jsDeliver versioning on their [website](http://www.jsdelivr.com/).
@@ -39,7 +38,7 @@ Read more about jsDeliver versioning on their [website](http://www.jsdelivr.com/
39
38
40
39
### Locale support via scale options
41
40
42
-
date-fns requires a date-fns locale object to be tagged on to each `format()` call, which requires the locale to be explicitly set via the `adapters.date` option: [Chart.js documentation on adapters.date](https://www.chartjs.org/docs/latest/axes/cartesian/time.html?h=adapter)
41
+
date-fns requires a date-fns locale object to be tagged on to each `format()` call, which requires the locale to be explicitly set via the `adapters.date` option: [Chart.js documentation on adapters.date](https://www.chartjs.org/docs/next/axes/cartesian/time#date-adapters)
43
42
44
43
For example:
45
44
@@ -58,7 +57,7 @@ import {de} from 'date-fns/locale';
58
57
}
59
58
```
60
59
61
-
Further, read the [Chart.js documentation](https://www.chartjs.org/docs/latest) for other possible date/time related options. For example, the time scale [`time.*` options](https://www.chartjs.org/docs/latest/axes/cartesian/time.html#configuration-options) can be overridden using the [date-fns tokens](https://date-fns.org/v2.0.0-alpha.27/docs/format).
60
+
Further, read the [Chart.js documentation](https://www.chartjs.org/docs/next) for other possible date/time related options. For example, the time scale [`time.*` options](https://www.chartjs.org/docs/next/axes/cartesian/time#configuration-options) can be overridden using the [date-fns tokens](https://date-fns.org/docs/format).
62
61
63
62
## Development
64
63
@@ -71,9 +70,8 @@ You first need to install node dependencies (requires [Node.js](https://nodejs.o
71
70
The following commands will then be available from the repository root:
72
71
73
72
```bash
74
-
> gulp build // build dist files
75
-
> gulp build --watch // build and watch for changes
0 commit comments