You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have simple example of using composite chart with currently latest dc js version (18). Anyway if I try to add any margin to chart definition I get chart lines shifted.
UPDATE Depends on position of .margins(...) call. If it is at the beginning then everything is ok. If it is at the end of config - I get a bug with shifting.
You can play a little bit with method call position, it depends.
The text was updated successfully, but these errors were encountered:
Thanks @rand0m86, indeed there is some trickiness about when attributes get copied down from the composite chart to its children. The margins only get copied down in compose itself. Why some attributes get copied later, during generateG, I don't think anyone fully understands.
I'm going to keep this open as a documentation issue - docs should list the current behavior, if not explain it.
gordonwoodhull
changed the title
Margins for composite chart cause child charts to be shifted
Margins inheritance from composite chart to children is unclear
Oct 6, 2015
gordonwoodhull
changed the title
Margins inheritance from composite chart to children is unclear
need to call margins before compose for child charts to inherit
Oct 3, 2019
I have simple example of using composite chart with currently latest dc js version (18). Anyway if I try to add any margin to chart definition I get chart lines shifted.
UPDATE Depends on position of
.margins(...)
call. If it is at the beginning then everything is ok. If it is at the end of config - I get a bug with shifting.You can play a little bit with method call position, it depends.
The text was updated successfully, but these errors were encountered: