Update example chart config type, remove whitespace (#10831)

* Update example chart config type, remove whitespace

* update size limit
This commit is contained in:
Jacco van den Berg 2022-10-26 11:24:32 +02:00 committed by GitHub
parent 3557559004
commit b969ae3d8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ function modifyWebpackConfig(config) {
module.exports = [ module.exports = [
{ {
path: 'dist/chart.js', path: 'dist/chart.js',
limit: '78.5 KB', limit: '79 KB',
webpack: false, webpack: false,
running: false running: false
}, },

View File

@ -124,7 +124,7 @@ When using object notation in a radar chart you still need a labels array with l
```javascript ```javascript
const cfg = { const cfg = {
type: 'pie', type: 'line',
data: { data: {
datasets: [{ datasets: [{
data: { data: {
@ -187,7 +187,7 @@ When using typescript, if you want to use a data structure that is not the defau
```ts ```ts
import {ChartData} from 'chart.js'; import {ChartData} from 'chart.js';
const datasets: ChartData <'bar', {key: string, value: number} [] > = { const datasets: ChartData <'bar', {key: string, value: number} []> = {
datasets: [{ datasets: [{
data: [{key: 'Sales', value: 20}, {key: 'Revenue', value: 10}], data: [{key: 'Sales', value: 20}, {key: 'Revenue', value: 10}],
parsing: { parsing: {