-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bugfix] Remedy for Dual Axis chart render bug #4130
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.6
does not exposexScale
(although it exists innvd3/master
), and secondly there isyAxis1
andyAxis2
instead of justyAxis
.Making up for
xScale
isn't an issue becausemultiChart
just usesd3.scale.linear()
but I'm wondering how annotations are handled for two axes? @fabianmenges