Git Product home page Git Product logo

Comments (2)

jjallaire avatar jjallaire commented on July 24, 2024

Yes. If you qualify your styles with .r2d3 then they should be scoped to only affect your visualization. For example, here's a re-write of the CSS for the circlepacking example that does this:

.r2d3 circle {
  fill: rgb(31, 119, 180);
  fill-opacity: .25;
  stroke: rgb(31, 119, 180);
  stroke-width: 1px;
}

.r2d3 .leaf circle {
  fill: #ff7f0e;
  fill-opacity: 1;
}

.r2d3 text {
  font: sans-serif;
  text-anchor: middle;
}

@javierluraschi Could we do this for all of the examples that use CSS then regenerate the site?

We should also add a note about this to the docs.

from r2d3.

jjallaire avatar jjallaire commented on July 24, 2024

I think we should address this issue before submitting to CRAN.

from r2d3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.