Skip to content

Instantly share code, notes, and snippets.

@mrhieu
Last active February 7, 2017 08:07
Show Gist options
  • Save mrhieu/a555fd23c26b05e1290b44899f3bc754 to your computer and use it in GitHub Desktop.
Save mrhieu/a555fd23c26b05e1290b44899f3bc754 to your computer and use it in GitHub Desktop.
Collection of handy CSS rules for nvd3 chart (D3.js). By adding class name(s), you will have the desired style applied.
.hide-axis-x
.nvd3 .nv-axis.nv-x path
opacity: 0
.hide-axis-y
.nvd3 .nv-axis.nv-y path
opacity: 0
.dashed-userInteractiveGuideLine
.nvd3 .nv-interactiveGuideLine .nv-guideline
stroke-dasharray: 5,3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment