rickshaw icon indicating copy to clipboard operation
rickshaw copied to clipboard

X Axis Text Blury

Open srlm-io opened this issue 10 years ago • 1 comments

On my graphs the x axis text was appearing blurry. The root cause is the style:

.rickshaw_graph .x_ticks_d3 .tick {
    stroke: rgba(0, 0, 0, 0.16);
    stroke-width: 2px;
    shape-rendering: crisp-edges;
    pointer-events: none;
}

rickshaw_blurry_text

To get rid of the blurriness it should be:

.rickshaw_graph .x_ticks_d3 .tick {
    stroke: none;
    stroke-width: 2px;
    shape-rendering: crisp-edges;
    pointer-events: none;
}

rickshaw_non_blurry_text

But then it removes (hides) the X tick marks. Is there any way to not have blurry text but still have the tick marks?

srlm-io avatar Apr 26 '14 19:04 srlm-io

The way I found that makes the axis text appear crisp is to use a stroke-width of 0 and set something like: fill:grey; stroke-width: 0;

Hopefully this helps. Best, NF

ngfrey avatar Feb 24 '16 18:02 ngfrey