PrinceGallywix commented on issue #23735: URL: https://github.com/apache/superset/issues/23735#issuecomment-1554086163
@rusackas yep, it ought to work and it was OK in 2.0.1, but not in 2.1.0: I've tryed to debug this feature, but then I got stuck. You can debug this in the next steps: 1. Open any time-series Echart (for example, open 'Time-series Bar Chart v2') with at least 2 dimensions, 2. Set a breakpoint on this line: https://github.com/apache/superset/blob/357745f418d3eb42fececd6fd7d4a59337709a1d/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx#L75 (on the user side, the path is: _webpack://superset/plugins/plugin-chart-echarts/src/Timeseries/EchartsTimeseries.tsx_ ) 3. Double click on any bar (or on the name of dimention in annotation layer) 4. Ok, now you are paused on a breakpoint 5. Check out the _echartInstance_ variable (which one is defined in the line above our debugging point). In 2.1.0 it is _undefined_. I guess this is the problem, the reference handler is broken somewhere, but I don't know where and how to fix it. This is how it was looking like in 2.0.1:  In 2.1.0 we have _undefined_. This is because the _echartRef_ is null, which one is defined a little above. If you have any ideas about this bug, please share :) I guess we can re-open this issue, because it's not deprecated and it would be very helpful for us to use it until 3.0 release -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
