Skip to content

Commit 6a1037f

Browse files
authored
Update for Chart.js v3.0.0-rc.3 (#367)
1 parent b4ad90d commit 6a1037f

17 files changed

+287
-190
lines changed

old_samples/box.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@
101101
scales: {
102102
x: {
103103
position: 'top',
104-
gridLines: {
104+
grid: {
105105
zeroLineColor: 'rgba(0,255,0,1)'
106106
},
107-
scaleLabel: {
107+
title: {
108108
display: true,
109-
labelString: 'x axis'
109+
text: 'x axis'
110110
},
111111
ticks: {
112112
maxRotation: 0,
@@ -115,12 +115,12 @@
115115
},
116116
y: {
117117
position: 'right',
118-
gridLines: {
118+
grid: {
119119
zeroLineColor: 'rgba(0,255,0,1)'
120120
},
121-
scaleLabel: {
121+
title: {
122122
display: true,
123-
labelString: 'y axis'
123+
text: 'y axis'
124124
},
125125
ticks: {
126126
reverse: true

old_samples/ellipse.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@
101101
scales: {
102102
x: {
103103
position: 'top',
104-
gridLines: {
104+
grid: {
105105
zeroLineColor: 'rgba(0,255,0,1)'
106106
},
107-
scaleLabel: {
107+
title: {
108108
display: true,
109-
labelString: 'x axis'
109+
text: 'x axis'
110110
},
111111
ticks: {
112112
maxRotation: 0,
@@ -115,12 +115,12 @@
115115
},
116116
y: {
117117
position: 'right',
118-
gridLines: {
118+
grid: {
119119
zeroLineColor: 'rgba(0,255,0,1)'
120120
},
121-
scaleLabel: {
121+
title: {
122122
display: true,
123-
labelString: 'y axis'
123+
text: 'y axis'
124124
},
125125
ticks: {
126126
reverse: true

old_samples/horizontal-line.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@
101101
scales: {
102102
x: {
103103
position: 'top',
104-
gridLines: {
104+
grid: {
105105
zeroLineColor: 'rgba(0,255,0,1)'
106106
},
107-
scaleLabel: {
107+
title: {
108108
display: true,
109-
labelString: 'x axis'
109+
text: 'x axis'
110110
},
111111
ticks: {
112112
maxRotation: 0,
@@ -115,12 +115,12 @@
115115
},
116116
y: {
117117
position: 'right',
118-
gridLines: {
118+
grid: {
119119
zeroLineColor: 'rgba(0,255,0,1)'
120120
},
121-
scaleLabel: {
121+
title: {
122122
display: true,
123-
labelString: 'y axis'
123+
text: 'y axis'
124124
},
125125
ticks: {
126126
reverse: true
@@ -192,4 +192,4 @@
192192
</script>
193193
</body>
194194

195-
</html>
195+
</html>

old_samples/imageLabels.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
const randomColor = function(opacity) {
2828
return 'rgba(' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ',' + Math.round(Math.random() * 255) + ',' + (opacity || '.3') + ')';
2929
};
30-
30+
3131
const htmlText = new Image();
3232
htmlText.src = 'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="80">' +
3333
'<foreignObject width="100%" height="100%">' +
@@ -36,7 +36,7 @@
3636

3737
const chartjs = new Image();
3838
chartjs.src = './img/chartjs-logo.svg';
39-
39+
4040
const scatterChartData = {
4141
datasets: [{
4242
label: 'My First dataset',
@@ -110,12 +110,12 @@
110110
scales: {
111111
x: {
112112
position: 'top',
113-
gridLines: {
113+
grid: {
114114
zeroLineColor: 'rgba(0,255,0,1)'
115115
},
116-
scaleLabel: {
116+
title: {
117117
display: true,
118-
labelString: 'x axis'
118+
text: 'x axis'
119119
},
120120
ticks: {
121121
maxRotation: 0,
@@ -126,12 +126,12 @@
126126
},
127127
y: {
128128
position: 'right',
129-
gridLines: {
129+
grid: {
130130
zeroLineColor: 'rgba(0,255,0,1)'
131131
},
132-
scaleLabel: {
132+
title: {
133133
display: true,
134-
labelString: 'y axis'
134+
text: 'y axis'
135135
},
136136
ticks: {
137137
reverse: true,

old_samples/labels.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@
101101
scales: {
102102
x: {
103103
position: 'top',
104-
gridLines: {
104+
grid: {
105105
zeroLineColor: 'rgba(0,255,0,1)'
106106
},
107-
scaleLabel: {
107+
title: {
108108
display: true,
109-
labelString: 'x axis'
109+
text: 'x axis'
110110
},
111111
ticks: {
112112
maxRotation: 0,
@@ -117,12 +117,12 @@
117117
},
118118
y: {
119119
position: 'right',
120-
gridLines: {
120+
grid: {
121121
zeroLineColor: 'rgba(0,255,0,1)'
122122
},
123-
scaleLabel: {
123+
title: {
124124
display: true,
125-
labelString: 'y axis'
125+
text: 'y axis'
126126
},
127127
ticks: {
128128
reverse: true,

old_samples/line-time-scale.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@
107107
// round: 'day'
108108
tooltipFormat: 'dd.MM.yyyy HH:mm'
109109
},
110-
scaleLabel: {
110+
title: {
111111
display: true,
112-
labelString: 'Date'
112+
text: 'Date'
113113
}
114114
},
115115
y: {
116-
scaleLabel: {
116+
title: {
117117
display: true,
118-
labelString: 'value'
118+
text: 'value'
119119
}
120120
}
121121
},

old_samples/point.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@
101101
scales: {
102102
x: {
103103
position: 'top',
104-
gridLines: {
104+
grid: {
105105
zeroLineColor: 'rgba(0,255,0,1)'
106106
},
107-
scaleLabel: {
107+
title: {
108108
display: true,
109-
labelString: 'x axis'
109+
text: 'x axis'
110110
},
111111
ticks: {
112112
maxRotation: 0,
@@ -115,12 +115,12 @@
115115
},
116116
y: {
117117
position: 'right',
118-
gridLines: {
118+
grid: {
119119
zeroLineColor: 'rgba(0,255,0,1)'
120120
},
121-
scaleLabel: {
121+
title: {
122122
display: true,
123-
labelString: 'y axis'
123+
text: 'y axis'
124124
},
125125
ticks: {
126126
reverse: true

old_samples/updates.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@
113113
scales: {
114114
x: {
115115
position: 'top',
116-
gridLines: {
116+
grid: {
117117
zeroLineColor: 'rgba(0,255,0,1)'
118118
},
119-
scaleLabel: {
119+
title: {
120120
display: true,
121-
labelString: 'x axis'
121+
text: 'x axis'
122122
},
123123
ticks: {
124124
maxRotation: 0,
@@ -127,12 +127,12 @@
127127
},
128128
y: {
129129
position: 'right',
130-
gridLines: {
130+
grid: {
131131
zeroLineColor: 'rgba(0,255,0,1)'
132132
},
133-
scaleLabel: {
133+
title: {
134134
display: true,
135-
labelString: 'y axis'
135+
text: 'y axis'
136136
},
137137
ticks: {
138138
reverse: true

0 commit comments

Comments
 (0)