mirror of
https://github.com/seigler/neat-charts
synced 2025-07-27 09:26:10 +00:00
crisp rendering on the grid-lines
This commit is contained in:
parent
e81d52327f
commit
de47e4569a
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,8 @@ class SVGChartBuilder {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue