Skip to content

Commit

Permalink
fix(examples/js-chart-and-grid-messagerouter): fix runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kruplm committed Nov 5, 2024
1 parent d5dce8d commit fd8a498
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions examples/js-chart-and-grid-messagerouter/js-chart/chart.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit fd8a498

Please sign in to comment.