@@ -49,23 +49,23 @@ fetch(document.head.baseURI + 'examples/assets/1703/training-by-shoe-category.js
49
49
. setTickStrategy ( AxisTickStrategies . Empty , ( strategy ) =>
50
50
strategy . setCursorFormatter ( ( value ) => shoeBrands [ Math . round ( value ) ] ?? '' ) ,
51
51
)
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 ) )
53
53
54
54
chart
55
55
. getAxis ( Axes . over_5_miles )
56
56
. setTickStrategy ( AxisTickStrategies . Empty , ( strategy ) =>
57
57
strategy . setCursorFormatter ( ( value ) => ( value ? '> 5 miles' : '< 5 miles' ) ) ,
58
58
)
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 )
61
61
62
62
chart
63
63
. getAxis ( Axes . after_2020 )
64
64
. setTickStrategy ( AxisTickStrategies . Empty , ( strategy ) =>
65
65
strategy . setCursorFormatter ( ( value ) => ( value ? 'After 2020' : 'Before 2020' ) ) ,
66
66
)
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 )
69
69
70
70
// Configure nice labels and formatting for Axes.
71
71
chart . getAxis ( Axes . training_date ) . setTitle ( 'Training date' ) . setTickStrategy ( AxisTickStrategies . DateTime )
0 commit comments