crisp rendering on the grid-lines

This commit is contained in:
Joshua Seigler 2016-06-26 22:55:55 -04:00
parent e81d52327f
commit de47e4569a

View file

@ -104,8 +104,8 @@ class SVGChartBuilder {
) {
$labelHeight = transformY($labelY, $yMax, $yRange, $height);
if (
$labelY < $yMax - 0.05 * $labelInterval &&
$labelY > $yMin + 0.05 * $labelInterval
$labelY < $yMax - 0.1 * $labelInterval &&
$labelY > $yMin + 0.1 * $labelInterval
) {
$gridLines .= " M0,".$labelHeight." ".$width.",".$labelHeight;
}
@ -139,7 +139,8 @@ class SVGChartBuilder {
font-family: sans-serif;
font-size: 10;
fill: #7f7f7f;
text-anchor:end;
text-anchor: end;
shape-rendering: crispEdges;
}
.chart__gridLinePaths {
fill: none;