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