Skip to content

Commit e18e549

Browse files
committed
docs: update README
1 parent 9894cb3 commit e18e549

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

README.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -161,44 +161,44 @@ wrapper?: boolean
161161
class CoreUICharts extends Component {
162162
...
163163
render() {
164-
return (
165-
<CChart
166-
type='line'
167-
data={{
168-
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
169-
datasets: [
170-
{
171-
label: '2019',
172-
backgroundColor: 'rgba(179,181,198,0.2)',
173-
borderColor: 'rgba(179,181,198,1)',
174-
pointBackgroundColor: 'rgba(179,181,198,1)',
175-
pointBorderColor: '#fff',
176-
pointHoverBackgroundColor: '#fff',
177-
pointHoverBorderColor: 'rgba(179,181,198,1)',
178-
tooltipLabelColor: 'rgba(179,181,198,1)',
179-
data: [65, 59, 90, 81, 56, 55, 40]
180-
},
181-
{
182-
label: '2020',
183-
backgroundColor: 'rgba(255,99,132,0.2)',
184-
borderColor: 'rgba(255,99,132,1)',
185-
pointBackgroundColor: 'rgba(255,99,132,1)',
186-
pointBorderColor: '#fff',
187-
pointHoverBackgroundColor: '#fff',
188-
pointHoverBorderColor: 'rgba(255,99,132,1)',
189-
tooltipLabelColor: 'rgba(255,99,132,1)',
190-
data: [28, 48, 40, 19, 96, 27, 100]
191-
}
192-
],
193-
}}
194-
options={{
195-
aspectRatio: 1.5,
196-
tooltips: {
197-
enabled: true
164+
return (
165+
<CChart
166+
type='line'
167+
data={{
168+
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
169+
datasets: [
170+
{
171+
label: '2019',
172+
backgroundColor: 'rgba(179,181,198,0.2)',
173+
borderColor: 'rgba(179,181,198,1)',
174+
pointBackgroundColor: 'rgba(179,181,198,1)',
175+
pointBorderColor: '#fff',
176+
pointHoverBackgroundColor: '#fff',
177+
pointHoverBorderColor: 'rgba(179,181,198,1)',
178+
tooltipLabelColor: 'rgba(179,181,198,1)',
179+
data: [65, 59, 90, 81, 56, 55, 40]
180+
},
181+
{
182+
label: '2020',
183+
backgroundColor: 'rgba(255,99,132,0.2)',
184+
borderColor: 'rgba(255,99,132,1)',
185+
pointBackgroundColor: 'rgba(255,99,132,1)',
186+
pointBorderColor: '#fff',
187+
pointHoverBackgroundColor: '#fff',
188+
pointHoverBorderColor: 'rgba(255,99,132,1)',
189+
tooltipLabelColor: 'rgba(255,99,132,1)',
190+
data: [28, 48, 40, 19, 96, 27, 100]
198191
}
199-
}}
200-
/>
201-
)
192+
],
193+
}}
194+
options={{
195+
aspectRatio: 1.5,
196+
tooltips: {
197+
enabled: true
198+
}
199+
}}
200+
/>
201+
)
202202
}
203203
...
204204
```

0 commit comments

Comments
 (0)