From d34ca89a70fbfa7cd1dda6c687569cb184c8677f Mon Sep 17 00:00:00 2001 From: Abhishek Saharn Date: Mon, 5 Aug 2024 21:16:36 +0530 Subject: [PATCH] Revert Basic charts options --- pages/examples/noauth/basiccharts.html | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/pages/examples/noauth/basiccharts.html b/pages/examples/noauth/basiccharts.html index b5975ec..703fc62 100644 --- a/pages/examples/noauth/basiccharts.html +++ b/pages/examples/noauth/basiccharts.html @@ -41,26 +41,6 @@ } } - var mycustomExport = (marker) => {alert("Alert! Custom export function called with marker: " + JSON.stringify(marker))}; - - var defaultMarkers = [[to - 500*1000 , "MarkerTP"],[to - 200*1000 , "MarkerAS"]]; - - var chartOptionsSwimLane1 = { - theme: 'light', - markers: defaultMarkers, - yExtent: [0.2, 0.8], - yAxisType: 'shared', label: 'Lane 1', - onClick: () => alert("'Lane 1' label/axis clicked"), - onMarkersChange: (marker) => { - if(marker){ - mycustomExport(marker); - console.log(JSON.stringify(marker)); - } else { - console.log('No markers'); - } - } - }; - var swimLaneOptions = { 1: { yExtent: [0.2, 0.8], yAxisType: 'shared', label: 'Lane 1', onClick: () => alert("'Lane 1' label/axis clicked") }, 2: { yAxisType: 'shared', label: 'Lane 2', onClick: () => alert("'Lane 2' label/axis clicked") }, @@ -70,7 +50,7 @@ // render the data in a chart var kustoTrender = new KustoTrender(); var lineChart = new kustoTrender.ux.LineChart(document.getElementById('chart1')); - lineChart.render(data, chartOptionsSwimLane1); + lineChart.render(data, { theme: 'light', swimLaneOptions }); var barChart = new kustoTrender.ux.BarChart(document.getElementById('chart2')); barChart.render(data, { theme: 'dark', grid: true, tooltip: true, legend: 'compact' });