From: Jacco van den Berg Date: Wed, 26 Oct 2022 09:24:32 +0000 (+0200) Subject: Update example chart config type, remove whitespace (#10831) X-Git-Tag: v4.0.0-release~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b969ae3d8df26054ba8eb5010fd50b0b63b082bc;p=thirdparty%2FChart.js.git Update example chart config type, remove whitespace (#10831) * Update example chart config type, remove whitespace * update size limit --- diff --git a/.size-limit.cjs b/.size-limit.cjs index 1c42d1dc0..2f4e5e4c6 100644 --- a/.size-limit.cjs +++ b/.size-limit.cjs @@ -7,7 +7,7 @@ function modifyWebpackConfig(config) { module.exports = [ { path: 'dist/chart.js', - limit: '78.5 KB', + limit: '79 KB', webpack: false, running: false }, diff --git a/docs/general/data-structures.md b/docs/general/data-structures.md index 10ec6bc6b..3f59ed4ad 100644 --- a/docs/general/data-structures.md +++ b/docs/general/data-structures.md @@ -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: {