]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update example chart config type, remove whitespace (#10831)
authorJacco van den Berg <jaccoberg2281@gmail.com>
Wed, 26 Oct 2022 09:24:32 +0000 (11:24 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Oct 2022 09:24:32 +0000 (11:24 +0200)
* Update example chart config type, remove whitespace

* update size limit

.size-limit.cjs
docs/general/data-structures.md

index 1c42d1dc006cf10b44881d1836e2cf376b7a74a9..2f4e5e4c67d3fc43c6e39ce2027ff2a360d4a8a2 100644 (file)
@@ -7,7 +7,7 @@ function modifyWebpackConfig(config) {
 module.exports = [
   {
     path: 'dist/chart.js',
-    limit: '78.5 KB',
+    limit: '79 KB',
     webpack: false,
     running: false
   },
index 10ec6bc6b5ce43b2a7a5b8597991c3af35c18069..3f59ed4ad0581561dfa6674bada89c46d272a465 100644 (file)
@@ -124,7 +124,7 @@ When using object notation in a radar chart you still need a labels array with l
 
 ```javascript
 const cfg = {
-  type: 'pie',
+  type: 'line',
   data: {
     datasets: [{
       data: {
@@ -187,7 +187,7 @@ When using typescript, if you want to use a data structure that is not the defau
 ```ts
 import {ChartData} from 'chart.js';
 
-const datasets: ChartData <'bar', {key: string, value: number} [] > = {
+const datasets: ChartData <'bar', {key: string, value: number} []> = {
   datasets: [{
     data: [{key: 'Sales', value: 20}, {key: 'Revenue', value: 10}],
     parsing: {