diff options
author | Jan Klemkow <j.klemkow@wemelug.de> | 2013-01-08 15:31:39 +0100 |
---|---|---|
committer | Jan Klemkow <j.klemkow@wemelug.de> | 2013-01-08 15:31:39 +0100 |
commit | b87b23086cef0850f5baa9f1a4519576b26f4ab6 (patch) | |
tree | 0a1667227ea288757e00c42ddec59873eee865da | |
parent | 7336eeb587f72743c1288bad7df34195196a681f (diff) | |
download | sksys-b87b23086cef0850f5baa9f1a4519576b26f4ab6.tar.gz sksys-b87b23086cef0850f5baa9f1a4519576b26f4ab6.tar.bz2 sksys-b87b23086cef0850f5baa9f1a4519576b26f4ab6.zip |
make stroke bigger in pie chart.
-rw-r--r-- | image/wayland-sep-pie.svg | 4 | ||||
-rw-r--r-- | piechart.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/image/wayland-sep-pie.svg b/image/wayland-sep-pie.svg index c15faf8..2299f3d 100644 --- a/image/wayland-sep-pie.svg +++ b/image/wayland-sep-pie.svg @@ -4,6 +4,6 @@ <title>Pie chart</title> <desc>Picture of a pie chart</desc> -<path d="M200,200 L390,200 A190,190 0 1,1 383.36729378339,150.23620220928 z" fill="#73d216" stroke="#FFFFFF" stroke-width="2" fill-opacity="1.0" stroke-linejoin="round" /> -<path d="M200,200 L383.36729378339,150.23620220928 A190,190 0 0,1 390,200 z" fill="#cc0000" stroke="#FFFFFF" stroke-width="2" fill-opacity="1.0" stroke-linejoin="round" /> +<path d="M200,200 L390,200 A190,190 0 1,1 383.36729378339,150.23620220928 z" fill="#73d216" stroke="#FFFFFF" stroke-width="3" fill-opacity="1.0" stroke-linejoin="round" /> +<path d="M200,200 L383.36729378339,150.23620220928 A190,190 0 0,1 390,200 z" fill="#cc0000" stroke="#FFFFFF" stroke-width="3" fill-opacity="1.0" stroke-linejoin="round" /> </svg> diff --git a/piechart.php b/piechart.php index 42b29f9..ddb34c0 100644 --- a/piechart.php +++ b/piechart.php @@ -101,7 +101,7 @@ function piechart($data, $cx, $cy, $radius) { $chartelem .= " L$adx,$ady "; // draw line away away from cursor $chartelem .= " A$radius,$radius 0 $laf,1 $ax,$ay "; // draw arc $chartelem .= " z\" "; // z = close path - $chartelem .= " fill=\"$colour\" stroke=\"#FFFFFF\" stroke-width=\"2\" "; + $chartelem .= " fill=\"$colour\" stroke=\"#FFFFFF\" stroke-width=\"3\" "; $chartelem .= " fill-opacity=\"1.0\" stroke-linejoin=\"round\" />"; $dx = $x; // old end points become new starting point $dy = $y; // id. |