@@ -28,8 +28,6 @@ const axisYStrokeStyles = axisYStyles.map((fillStyle) => new SolidLine({ fillSty
2828const axisYStylesHighlight = axisYStyles . map ( ( fillStyle ) => fillStyle . setA ( 100 ) )
2929const axisXStyleHighlight = new SolidFill ( { color : colors [ 2 ] . setA ( 100 ) } )
3030const seriesStrokeStyles = axisYStrokeStyles
31- const fittingRectangleStrokeStyle = new SolidLine ( { fillStyle : new SolidFill ( { color : ColorRGBA ( 255 , 255 , 255 , 100 ) } ) , thickness : 2 } )
32- const zoomingRectangleFillStyle = new SolidFill ( { color : colors [ 2 ] . setA ( 100 ) } )
3331
3432// Create a XY Chart.
3533const chart = lightningChart ( {
@@ -38,19 +36,12 @@ const chart = lightningChart({
3836 . ChartXY ( {
3937 theme : Themes [ new URLSearchParams ( window . location . search ) . get ( 'theme' ) || 'darkGold' ] || undefined ,
4038 } )
41- . setPadding ( {
42- right : 50 ,
43- } )
4439 . setTitle ( 'Unit production comparison' )
45- // Style chart zooming rectangle.
46- . setFittingRectangleStrokeStyle ( fittingRectangleStrokeStyle )
47- . setZoomingRectangleFillStyle ( zoomingRectangleFillStyle )
4840
4941// Cache reference to default axes and style them.
5042const axisX = chart
5143 . getDefaultAxisX ( )
5244 . setOverlayStyle ( axisXStyleHighlight )
53- . setNibOverlayStyle ( axisXStyleHighlight )
5445 // Set the X Axis to use DateTime TickStrategy and set the interval
5546 . setTickStrategy ( AxisTickStrategies . DateTime )
5647 . setInterval ( {
@@ -63,7 +54,6 @@ const axisY1 = chart
6354 . getDefaultAxisY ( )
6455 . setStrokeStyle ( axisYStrokeStyles [ 0 ] )
6556 . setOverlayStyle ( axisYStylesHighlight [ 0 ] )
66- . setNibOverlayStyle ( axisYStylesHighlight [ 0 ] )
6757 // Modify the TickStrategy to remove gridLines from this Y Axis.
6858 . setTickStrategy (
6959 // Use Numeric TickStrategy as base.
@@ -83,7 +73,6 @@ const axisY2 = chart
8373 . setTitle ( 'No of units produced' )
8474 . setStrokeStyle ( axisYStrokeStyles [ 1 ] )
8575 . setOverlayStyle ( axisYStylesHighlight [ 1 ] )
86- . setNibOverlayStyle ( axisYStylesHighlight [ 1 ] )
8776 // Modify the TickStrategy to remove gridLines from this Y Axis.
8877 . setTickStrategy (
8978 // Use Numeric TickStrategy as base.
0 commit comments