Skip to content

Commit f454856

Browse files
authored
Merge pull request joshua1988#5 from giseoplee/feature/code_fix_by_chart.js_version_update
chart.js 3 버전대 업데이트로 인한 변경 내용 반영 요청
2 parents 80414f4 + 3ccbd49 commit f454856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ async function setupData() {
168168

169169
function renderChart(data, labels) {
170170
var ctx = $('#lineChart').getContext('2d');
171-
Chart.defaults.global.defaultFontColor = '#f5eaea';
172-
Chart.defaults.global.defaultFontFamily = 'Exo 2';
171+
Chart.defaults.color = '#f5eaea';
172+
Chart.defaults.font.family = 'Exo 2';
173173
new Chart(ctx, {
174174
type: 'line',
175175
data: {

0 commit comments

Comments
 (0)