Skip to content

Instantly share code, notes, and snippets.

@MohamedAlaa
Last active December 13, 2025 06:56
Show Gist options
  • Select an option

  • Save MohamedAlaa/02dfb1e4785a0ec0888f to your computer and use it in GitHub Desktop.

Select an option

Save MohamedAlaa/02dfb1e4785a0ec0888f to your computer and use it in GitHub Desktop.
nvd3 Scatter hide the lines in the x and y Axis
.nv-scatterChart {
.nv-distributionX line.nv-distx[y1="0"],
.nv-distributionY line.nv-disty[x2="8"]
{
display: none;
}
}
@jacobson99
Copy link

CSS selectors are quite specific — using properties like [y1="0"] and [x2="8"] to target grow a garden can cause it to malfunction if the library changes the DOM structure or these values ​​change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment