Documentation ¶
Overview ¶
Package gopie renders pie charts to SVG.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PieChart ¶
type PieChart struct { Width float64 // SVG Width. Default is 200. Height float64 // SVG Height. Default is 200. Values []Value // Chart values. SliceColors []string // Colors to be used for pie slices and label lines. StrokeColor string // Slice stroke color. Default is "#ffffff". StrokeWidth float64 // Slice stroke width. Default is 0 px. FontSize float64 // Label font size. Default is 12 px. FontFamily string // Label font family. Default is "Roboto Medium". LabelLine float64 // Label line length. Default is 10 px. LabelLineWidth float64 // Label line width. Default is 2 px. LabelPadding float64 // Label text padding. Default is 4 px. DPI float64 // DPI. Default is 92. EmbedFont bool // Whether embed font or not. Default is false. InnerRadius float64 // Inner radius or donut chart. Default is 0 which means by default pie chart will be rendered. // contains filtered or unexported fields }
PieChart struct represents a pie chart rendering options.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.