Replies: 2 comments 7 replies
-
Since it got you, it's worth adding, I'll approve the PR :) |
Beta Was this translation helpful? Give feedback.
-
Maybe you can use tozeroy and make areas translucent?
You could put all reused filters in an array once at the root, the extra ones inside the entity and then load them via |
Beta Was this translation helpful? Give feedback.
-
Problem: Series bleed into each other because
fill: tonexty
default for stackgroups uses the upper extent of the previous series as y=0, so when a series swaps to negative, it fills over the previous one.When I tried a workaround documented elsewhere, to filter positive/negative value series into separate stackgroups, the stackgroups didn't work - despite resample in the entity defaults.
The solution was to move all the filter defaults into every entity - a filter is not additive, it replaces all default filters even though the new filter is not one previously specified in the defaults. This causes a lot of duplication. Does this need explicitly adding to "gotchas?" It got me for a long time but maybe I'm dense... or could/should it be fixed? Personal preference I suspect?
Note that I have exploited a previous gotcha I added to the readme - in this case I want to display value of
ys
in a single legend whatever its value, and hide the negative legend, so I addedname:
before the filter, not after.One remaining niggle: blue series shows a continuous line at y<0 even when y is positive, and red shows a continuous line at y>0 when y is negative. Ideas welcome. Am I even achieving this in the best/only way?
Beta Was this translation helpful? Give feedback.
All reactions