Skip to content

Commit 8c29f7a

Browse files
author
Tom Sharp
committed
fix syntax failures
1 parent e0e0c6d commit 8c29f7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/notebooks/logic/chartJs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function generateChartHTMLEmbedded(id: number, detail: ChartDetail, label
3131

3232
const hasYaxis = detail.type === `bar` || detail.type === `line`;
3333

34-
const script = /*javascript*/`
34+
const script = /*javascript*/ `
3535
if (!window.ibmicharts) {
3636
window.ibmicharts = {};
3737
}
@@ -44,8 +44,8 @@ export function generateChartHTMLEmbedded(id: number, detail: ChartDetail, label
4444
const maxHeight = window.innerHeight * 0.8;
4545
const maxWidth = window.innerWidth * 0.8;
4646
const targetSize = Math.min(maxHeight, maxWidth);
47-
chartEle.style.maxHeight = `${targetSize}px`;
48-
chartEle.style.maxWidth = `${targetSize}px`;
47+
chartEle.style.maxHeight = targetSize + 'px';
48+
chartEle.style.maxWidth = targetSize + 'px';
4949
try {
5050
window.ibmicharts['myChart${id}'] = new Chart(chartEle.getContext('2d'), {
5151
type: '${detail.type}',

0 commit comments

Comments
 (0)