piechart
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- Constants
- func PieChartMaterialHTML(chart google.Chart) string
- func PieChartMaterialHTMLPage(chart google.Chart) string
- func StreamPieChartMaterialHTML(qw422016 *qt422016.Writer, chart google.Chart)
- func StreamPieChartMaterialHTMLPage(qw422016 *qt422016.Writer, chart google.Chart)
- func WritePieChartMaterialHTML(qq422016 qtio422016.Writer, chart google.Chart)
- func WritePieChartMaterialHTMLPage(qq422016 qtio422016.Writer, chart google.Chart)
- type Chart
- func (chart *Chart) BuildDataTable() google.DataTable
- func (chart *Chart) ChartDivOrDefault() string
- func (chart *Chart) DataTableJSON() []byte
- func (chart *Chart) HTML() string
- func (chart *Chart) LoadDataTableHistogram(h *histogram.Histogram, cols google.Columns)
- func (chart *Chart) OptionsJSON() []byte
- func (chart *Chart) PageHTML() string
- func (chart *Chart) PageTitle() string
- func (chart *Chart) WriteFilePageHTML(filename string, perm os.FileMode) error
- func (chart *Chart) WritePage(w io.Writer)
- type Options
- type TextStyle
Constants¶
const (PieSliceTextLabel = "label")Variables¶
This section is empty.
Functions¶
funcPieChartMaterialHTML¶added inv2.22.1
funcPieChartMaterialHTMLPage¶added inv2.22.1
funcStreamPieChartMaterialHTML¶added inv2.22.1
funcStreamPieChartMaterialHTMLPage¶added inv2.22.1
funcWritePieChartMaterialHTML¶added inv2.22.1
func WritePieChartMaterialHTML(qq422016qtio422016.Writer, chartgoogle.Chart)
funcWritePieChartMaterialHTMLPage¶added inv2.22.1
func WritePieChartMaterialHTMLPage(qq422016qtio422016.Writer, chartgoogle.Chart)
Types¶
typeChart¶added inv2.20.0
type Chart struct {TitlestringSubtitlestringChartDivstringAddCountToNameboolDefaultCategoryNamestringDataTable *google.DataTableColumnsgoogle.ColumnsDatapiechart.PieChartDataGoogleOptions *Options}Chart provides data for Google Material Pie Charts described here:https://developers.google.com/chart/interactive/docs/gallery/piechart
func (*Chart)BuildDataTable¶added inv2.20.0
func (*Chart)ChartDivOrDefault¶added inv2.20.0
func (*Chart)DataTableJSON¶added inv2.20.0
func (*Chart)LoadDataTableHistogram¶added inv2.20.0
func (*Chart)OptionsJSON¶added inv2.20.0
func (*Chart)WriteFilePageHTML¶added inv2.20.2
typeOptions¶added inv2.20.0
type Options struct {Titlestring `json:"title,omitempty"`Legendstring `json:"legend,omitempty"`Heightuint `json:"height,omitempty"`Widthuint `json:"width,omitempty"`PieHolefloat64 `json:"pieHole,omitempty"`PieSliceTextstring `json:"pieSliceText,omitempty"`PieSliceTextStyleTextStyle `json:"pieSliceTextStyle,omitempty"`PieStartAnglefloat64 `json:"pieStartAngle,omitempty"`}Options represents the Google Charts JSON options map as defined here:https://developers.google.com/chart/interactive/docs/gallery/piechart .
func (*Options)MustJSON¶added inv2.20.0
MustJSON represents the Google Charts JSON options map as defined here:https://developers.google.com/chart/interactive/docs/gallery/piechart .The output is intended to be used directly with the client-side JS library call.