]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix time documentation (#5507)
authorAntoine Aumjaud <antoine_dev@aumjaud.fr>
Sat, 26 May 2018 07:55:44 +0000 (09:55 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Sat, 26 May 2018 07:55:44 +0000 (09:55 +0200)
docs/axes/cartesian/time.md

index cefe9c24806d8dc4eabd72b53b21b32f35b99006..fcda85d6173e0c7df9ac7bbf2fd3b2ca9d104f96 100644 (file)
@@ -6,7 +6,7 @@ The time scale is used to display times and dates. When building its ticks, it w
 
 ### Input Data
 
-The x-axis data points may additionally be specified via the `t` attribute when using the time scale.
+The x-axis data points may additionally be specified via the `t` or `x` attribute when using the time scale.
 
     data: [{
         x: new Date(),
@@ -64,6 +64,7 @@ var chart = new Chart(ctx, {
     options: {
         scales: {
             xAxes: [{
+                type: 'time',
                 time: {
                     unit: 'month'
                 }