Open spoojaj opened 2 years ago
cannot reproduce, Demo Code. BTW, triggerEvent is for 2D axes only.
EDIT: alert does not work in Chrome anymore, generates error:
Ignored call to 'alert()'. The document is sandboxed, and the 'allow-modals' keyword is not set.
Use console.log instead.
Version
5.3.1
Link to Minimal Reproduction
No response
Steps to Reproduce
1) create any 3d chart 2) try adding hover event 3) does not trigger any event
Current Behavior
does not trigger any event
Expected Behavior
should show alert.
Environment
Any additional comments?
$.get( ROOT_PATH + '/data/asset/data/life-expectancy-table.json', function (data) { var symbolSize = 2.5; option = { grid3D: {}, xAxis3D: { type: 'category', name: 'Test', triggerEvent: true, }, yAxis3D: {}, zAxis3D: {}, dataset: { dimensions: [ 'Income', 'Life Expectancy', 'Population', 'Country', { name: 'Year', type: 'ordinal' } ], source: data }, series: [ { type: 'scatter3D', symbolSize: symbolSize, encode: { x: 'Country', y: 'Life Expectancy', z: 'Income', tooltip: [0, 1, 2, 3, 4] } } ] }; myChart.setOption(option); myChart.on('mouseover', function (params) { if (params.componentType === 'xAxis3D') { alert('Done'); } }) } );