Miquel
Miquel

Reputation: 858

nvd3.js - Bigger points in a line chart

I am searching how to show bigger points in a line chart using nvd3.js, but I haven't found anything. Anybody can give me a hand?

I want the points to be easily visible across the chart lines.

Thanks.

Upvotes: 5

Views: 4204

Answers (1)

Sirko
Sirko

Reputation: 74086

After looking through the output generated in the simple line chart, you could add this CSS, to make all points visible:

.nvd3 .nv-groups .nv-point {
    stroke-opacity: 0.5 !important;
    stroke-width: 10px;
}

This is, however, more like a hack. There should be better solutions around. If you want to modify more details, it may also be better to switch to d3.js directly instead of using a wrapper.

Upvotes: 14

Related Questions