[Bugfix] Remedy for Dual Axis chart render bug#4130
[Bugfix] Remedy for Dual Axis chart render bug#4130mistercrunch merged 1 commit intoapache:masterfrom
Conversation
d56f0db to
46c3cc3
Compare
46c3cc3 to
eea56bb
Compare
|
Right now, annotations are not supported with the Dual Axis Line Chart slices (in the sense that I have not tested and developed with them in mind and I'm pretty sure they are not available through the UI). @Mogball Your fix looks good, but there are probably some other things that need to be hooked up, for it to actually work e.g.: https://github.com/apache/incubator-superset/blob/master/superset/assets/javascripts/modules/AnnotationTypes.js#L59 @kkalyan did you setup annotations in a time series 'single'-line chart and then switch over to dual line chart? We probably need to add some code that wipes/ignores annotations if the current slice/chart type does not support the type of annotation configured. |
|
I seemed to have been getting the same errors even though I didn't create any annotation layers. |
|
Lacking the whole context, should I merge this? |
fabianmenges
left a comment
There was a problem hiding this comment.
This is a bug, we should merge it.
|
@Mogball you are right, this is an issue even when no annotations are selected. |
An attempt to remedy #4115, which seems to be the result of issues handling annotations for Dual Axis Line Charts.
The first issue is that the most recent nvd3 release
1.8.6does not exposexScale(although it exists innvd3/master), and secondly there isyAxis1andyAxis2instead of justyAxis.Making up for
xScaleisn't an issue becausemultiChartjust usesd3.scale.linear()but I'm wondering how annotations are handled for two axes? @fabianmenges