ndtv
ndtv copied to clipboard
how to add CSS class attributes with edge.css.class, vertex.css.class, vertex.label.css.class?
In render.d3movie
there are options for adding CSS styling to vertices, edges, and vertex labels. What is the intended syntax to produce this? For example, do I need a "styles.css" file that contains all of these class attributes? If so, would I reference each class attribute in a character vector?
For example, suppose my CSS sheet had the following class attributes in it:
.edge {
stroke: black;
}
.label {
pointer-events: none;
}
Would I reference the desired attribute in the render.d3movie
function as follows?
render.d3movie(
...
edge.css.class = "edge",
...
)
# OR
render.d3movie(
...
edge.css.class = c("edge", "label"),
...
)
Any guidance is appreciated.
@skyebend will need to answer these questions -- thx for your patience.