mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Update example chart config type, remove whitespace (#10831)
* Update example chart config type, remove whitespace * update size limit
This commit is contained in:
parent
3557559004
commit
b969ae3d8d
@ -7,7 +7,7 @@ function modifyWebpackConfig(config) {
|
||||
module.exports = [
|
||||
{
|
||||
path: 'dist/chart.js',
|
||||
limit: '78.5 KB',
|
||||
limit: '79 KB',
|
||||
webpack: false,
|
||||
running: false
|
||||
},
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user