@@ -49,23 +49,23 @@ fetch(document.head.baseURI + 'examples/assets/1703/training-by-shoe-category.js
4949 . setTickStrategy ( AxisTickStrategies . Empty , ( strategy ) =>
5050 strategy . setCursorFormatter ( ( value ) => shoeBrands [ Math . round ( value ) ] ?? '' ) ,
5151 )
52- shoeBrands . forEach ( ( brand , i ) => chart . getAxis ( Axes . shoe_brand ) . addCustomTick ( ) . setValue ( i ) . setMouseInteractions ( false ) )
52+ shoeBrands . forEach ( ( brand , i ) => chart . getAxis ( Axes . shoe_brand ) . addCustomTick ( ) . setValue ( i ) . setPointerEvents ( false ) )
5353
5454 chart
5555 . getAxis ( Axes . over_5_miles )
5656 . setTickStrategy ( AxisTickStrategies . Empty , ( strategy ) =>
5757 strategy . setCursorFormatter ( ( value ) => ( value ? '> 5 miles' : '< 5 miles' ) ) ,
5858 )
59- chart . getAxis ( Axes . over_5_miles ) . addCustomTick ( ) . setValue ( 0 ) . setMouseInteractions ( false ) . setLabelAlignment ( - 1 )
60- chart . getAxis ( Axes . over_5_miles ) . addCustomTick ( ) . setValue ( 1 ) . setMouseInteractions ( false ) . setLabelAlignment ( 1 )
59+ chart . getAxis ( Axes . over_5_miles ) . addCustomTick ( ) . setValue ( 0 ) . setPointerEvents ( false ) . setLabelAlignment ( - 1 )
60+ chart . getAxis ( Axes . over_5_miles ) . addCustomTick ( ) . setValue ( 1 ) . setPointerEvents ( false ) . setLabelAlignment ( 1 )
6161
6262 chart
6363 . getAxis ( Axes . after_2020 )
6464 . setTickStrategy ( AxisTickStrategies . Empty , ( strategy ) =>
6565 strategy . setCursorFormatter ( ( value ) => ( value ? 'After 2020' : 'Before 2020' ) ) ,
6666 )
67- chart . getAxis ( Axes . after_2020 ) . addCustomTick ( ) . setValue ( 0 ) . setMouseInteractions ( false ) . setLabelAlignment ( - 1 )
68- chart . getAxis ( Axes . after_2020 ) . addCustomTick ( ) . setValue ( 1 ) . setMouseInteractions ( false ) . setLabelAlignment ( 1 )
67+ chart . getAxis ( Axes . after_2020 ) . addCustomTick ( ) . setValue ( 0 ) . setPointerEvents ( false ) . setLabelAlignment ( - 1 )
68+ chart . getAxis ( Axes . after_2020 ) . addCustomTick ( ) . setValue ( 1 ) . setPointerEvents ( false ) . setLabelAlignment ( 1 )
6969
7070 // Configure nice labels and formatting for Axes.
7171 chart . getAxis ( Axes . training_date ) . setTitle ( 'Training date' ) . setTickStrategy ( AxisTickStrategies . DateTime )
0 commit comments