@@ -27,30 +27,30 @@ A line chart is a way of plotting data points on a line. Often, it is used to sh
2727[ Line Chart properties] ( https://www.chartjs.org/docs/latest/charts/line.html#dataset-properties )
2828
2929::: demo
30- <CChartLine
31- : wrapper ="false"
32- : data ="{
33- labels: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July'] ,
34- datasets: [
35- {
36- label: 'My First dataset',
37- backgroundColor: 'rgba(220, 220, 220, 0.2)',
38- borderColor: 'rgba(220, 220, 220, 1)',
39- pointBackgroundColor: 'rgba(220, 220, 220, 1)',
40- pointBorderColor: '#fff',
41- data: [ 40, 20, 12, 39, 10, 40, 39]
42- },
43- {
44- label: 'My Second dataset',
45- backgroundColor: 'rgba(151, 187, 205, 0.2)',
46- borderColor: 'rgba(151, 187, 205, 1)',
47- pointBackgroundColor: 'rgba(151, 187, 205, 1)',
48- pointBorderColor: '#fff',
49- data: [ 50, 12, 28, 29, 7, 25, 12]
50- }
51- ]
52- }"
53- />
30+ <CChartLine
31+ : wrapper ="false"
32+ : data ="{
33+ labels: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July'] ,
34+ datasets: [
35+ {
36+ label: 'My First dataset',
37+ backgroundColor: 'rgba(220, 220, 220, 0.2)',
38+ borderColor: 'rgba(220, 220, 220, 1)',
39+ pointBackgroundColor: 'rgba(220, 220, 220, 1)',
40+ pointBorderColor: '#fff',
41+ data: [ 40, 20, 12, 39, 10, 40, 39]
42+ },
43+ {
44+ label: 'My Second dataset',
45+ backgroundColor: 'rgba(151, 187, 205, 0.2)',
46+ borderColor: 'rgba(151, 187, 205, 1)',
47+ pointBackgroundColor: 'rgba(151, 187, 205, 1)',
48+ pointBorderColor: '#fff',
49+ data: [ 50, 12, 28, 29, 7, 25, 12]
50+ }
51+ ]
52+ }"
53+ />
5454:::
5555``` vue
5656<!-- use <CChart type="line"> or <CChartLine> component -->
0 commit comments