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
dc.js >=2.1 uses visibility: hidden to hide/show controls without disrupting the layout. To return the old display: none behavior, set chart.controlsUseVisibility(false) and use that style instead.
However, the API docs and the dc behaviour is the opposite: the default is to use display: none and chart.controlsUseVisibility has to be set to true to trigger the behaviour. Suggest changing the docs to
By default, dc.js uses display: none to control whether or not chart controls are displayed. To use visibility: hidden to hide/show controls without disrupting the layout, set chart.controlsUseVisibility(true).
The text was updated successfully, but these errors were encountered:
Thanks! I think I originally thought I would just change the behavior, then went back and made it backward-compatible instead. But I forgot I had documented it in the Getting Started guide.
An easy documentation fix I spotted...
According to the dc.js Getting Started guide:
However, the API docs and the dc behaviour is the opposite: the default is to use
display: none
andchart.controlsUseVisibility
has to be set totrue
to trigger the behaviour. Suggest changing the docs toThe text was updated successfully, but these errors were encountered: