From f337922cc81a102dfcc1aee89fbebf0e6f7e7c73 Mon Sep 17 00:00:00 2001 From: kruplm <73655443+kruplm@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:39:44 +0200 Subject: [PATCH] fix(examples/js-chart-and-grid-messagerouter): fix runtime errors --- .../js-chart/chart.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/examples/js-chart-and-grid-messagerouter/js-chart/chart.js b/examples/js-chart-and-grid-messagerouter/js-chart/chart.js index 3d66a71ac..1a612c3e0 100644 --- a/examples/js-chart-and-grid-messagerouter/js-chart/chart.js +++ b/examples/js-chart-and-grid-messagerouter/js-chart/chart.js @@ -1,11 +1,12 @@ -import Chart from 'highcharts/es-modules/Core/Chart/Chart.js'; -import ColumnSeries from 'highcharts/es-modules/Series/Column/ColumnSeries.js'; +import NoDataToDisplay from 'highcharts/modules/no-data-to-display.js'; import * as Highcharts from 'highcharts'; import { createMessageRouter } from "@morgan-stanley/composeui-messaging-client"; let chart; let client; +NoDataToDisplay(Highcharts); + window.addEventListener('load', function () { chart = Highcharts.chart('container', { chart: { @@ -38,15 +39,6 @@ window.addEventListener('load', function () { }); }); - window.document.getElementById("close-button").onclick = - async ev => { - if (!client) return; - const tmpClient = client; - client = undefined; - tmpClient.close(); - }; - - async function requestData() { (async () => {