@@ -42,7 +42,6 @@ const dashboard = lightningChart({
4242 . Dashboard ( {
4343 numberOfColumns : COLUMNS ,
4444 numberOfRows : ROWS + 1 ,
45- theme : Themes [ new URLSearchParams ( window . location . search ) . get ( 'theme' ) || 'darkGold' ] || undefined ,
4645 } )
4746 . setSplitterStyle ( new SolidLine ( { thickness : 0 } ) )
4847
@@ -62,22 +61,24 @@ for (let column = 0; column < COLUMNS; column += 1) {
6261 . setTitleFillStyle ( emptyFill )
6362 . setTitleMargin ( { top : 0 , bottom : 0 } )
6463 . setPadding ( 0 )
65- . setMouseInteractions ( false )
64+ . setUserInteractions ( undefined )
6665 . setCursor ( ( autoCursor ) => autoCursor . setTickMarkerXVisible ( false ) . setTickMarkerYVisible ( false ) . setAutoFitStrategy ( undefined ) )
6766 const axisX = chart
6867 . getDefaultAxisX ( )
6968 . setTickStrategy ( AxisTickStrategies . Empty )
70- . setMouseInteractions ( false )
7169 . setScrollStrategy ( AxisScrollStrategies . progressive )
7270 . setDefaultInterval ( ( state ) => ( { end : state . dataMax , start : ( state . dataMax ?? 0 ) - HISTORYMS , stopAxisAfter : false } ) )
7371 . setStrokeStyle ( emptyLine )
7472 . setAnimationScroll ( false )
73+ . setTitleEffect ( false )
7574 const axisY = chart
7675 . getDefaultAxisY ( )
7776 . setTickStrategy ( AxisTickStrategies . Empty )
78- . setMouseInteractions ( false )
7977 . setStrokeStyle ( emptyLine )
8078 . setAnimationScroll ( false )
79+ . setTitleEffect ( false )
80+ chart . setTitleEffect ( false )
81+ chart . setSeriesBackgroundEffect ( false )
8182 chartList . push ( chart )
8283 }
8384}
@@ -86,7 +87,7 @@ for (let column = 0; column < COLUMNS; column += 1) {
8687uiPanel
8788 . addUIElement ( UIElementBuilders . TextBox . setBackground ( UIBackgrounds . None ) )
8889 . setText ( `${ COLUMNS * ROWS } live channels (1 ms resolution) 1 minute history` )
89- . setMouseInteractions ( false )
90+ . setPointerEvents ( false )
9091 . setPosition ( { x : 50 , y : 100 } )
9192 . setOrigin ( UIOrigins . CenterTop )
9293
@@ -100,7 +101,7 @@ if (!showFullDashboard) {
100101 . setMargin ( 30 )
101102 . setDraggingMode ( UIDraggingModes . notDraggable )
102103 . setMouseStyle ( MouseStyles . Point )
103- . onMouseClick ( ( ) => {
104+ . addEventListener ( 'click' , ( ) => {
104105 // Add '?full = true' to URL and reload page.
105106 let url = window . location . href
106107 url += ( url . split ( '?' ) [ 1 ] ? '&' : '?' ) + 'full=true'
@@ -119,6 +120,7 @@ const seriesList = chartList.map((chart, i) => {
119120 . setStrokeStyle ( ( stroke ) => stroke . setThickness ( 1 ) )
120121 . setAreaFillStyle ( emptyFill )
121122 . setMaxSampleCount ( HISTORYMS )
123+ . setEffect ( false )
122124 return series
123125} )
124126
0 commit comments