SVG tests

This commit is contained in:
2017-07-07 02:17:17 +02:00
parent 567e8e63d1
commit 8c438ba08b
2 changed files with 10 additions and 4 deletions

View File

@ -8,6 +8,12 @@ component Statistics(screenSizes []*utils.AnalyticsItem)
component PieChart
svg.graph(viewBox="-1.05 -1.05 2.1 2.1")
path.slice.slice-1(d=utils.SVGSlicePath(0, 0.5))
path.slice.slice-2(d=utils.SVGSlicePath(0.5, 0.8))
path.slice.slice-3(d=utils.SVGSlicePath(0.8, 1.0))
g
title Demo (50%)
path.slice.slice-1(d=utils.SVGSlicePath(0, 0.5))
g
title Demo (30%)
path.slice.slice-2(d=utils.SVGSlicePath(0.5, 0.8))
g
title Demo (20%)
path.slice.slice-3(d=utils.SVGSlicePath(0.8, 1.0))