Movatterモバイル変換


[0]ホーム

URL:


piechart

package
v2.26.5Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2025 License:MITImports:9Imported by:2

Details

Repository

github.com/grokify/gocharts

Links

Documentation

Index

Constants

View Source
const (PieSliceTextLabel = "label")

Variables

This section is empty.

Functions

funcPieChartMaterialHTMLadded inv2.22.1

func PieChartMaterialHTML(chartgoogle.Chart)string

funcPieChartMaterialHTMLPageadded inv2.22.1

func PieChartMaterialHTMLPage(chartgoogle.Chart)string

funcStreamPieChartMaterialHTMLadded inv2.22.1

func StreamPieChartMaterialHTML(qw422016 *qt422016.Writer, chartgoogle.Chart)

funcStreamPieChartMaterialHTMLPageadded inv2.22.1

func StreamPieChartMaterialHTMLPage(qw422016 *qt422016.Writer, chartgoogle.Chart)

funcWritePieChartMaterialHTMLadded inv2.22.1

func WritePieChartMaterialHTML(qq422016qtio422016.Writer, chartgoogle.Chart)

funcWritePieChartMaterialHTMLPageadded inv2.22.1

func WritePieChartMaterialHTMLPage(qq422016qtio422016.Writer, chartgoogle.Chart)

Types

typeChartadded 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

funcNewPieChartMaterialInts

func NewPieChartMaterialInts(chartName, sliceName, sliceValueNamestring, vals map[string]int) *Chart

func (*Chart)BuildDataTableadded inv2.20.0

func (chart *Chart) BuildDataTable()google.DataTable

func (*Chart)ChartDivOrDefaultadded inv2.20.0

func (chart *Chart) ChartDivOrDefault()string

func (*Chart)DataTableJSONadded inv2.20.0

func (chart *Chart) DataTableJSON() []byte

func (*Chart)HTMLadded inv2.22.1

func (chart *Chart) HTML()string

func (*Chart)LoadDataTableHistogramadded inv2.20.0

func (chart *Chart) LoadDataTableHistogram(h *histogram.Histogram, colsgoogle.Columns)

func (*Chart)OptionsJSONadded inv2.20.0

func (chart *Chart) OptionsJSON() []byte

func (*Chart)PageHTMLadded inv2.20.0

func (chart *Chart) PageHTML()string

func (*Chart)PageTitleadded inv2.20.0

func (chart *Chart) PageTitle()string

func (*Chart)WriteFilePageHTMLadded inv2.20.2

func (chart *Chart) WriteFilePageHTML(filenamestring, permos.FileMode)error

func (*Chart)WritePageadded inv2.20.0

func (chart *Chart) WritePage(wio.Writer)

typeOptionsadded 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)Inflateadded inv2.20.0

func (opts *Options) Inflate()

func (*Options)MustJSONadded inv2.20.0

func (opts *Options) MustJSON() []byte

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.

typeTextStyle

type TextStyle struct {//https://developers.google.com/chart/interactive/docs/gallery/piechartColorstring  `json:"color,omitempty"`FontNamestring  `json:"fontName,omitempty"`FontSizefloat64 `json:"fontSize,omitempty"`Boldbool    `json:"bold,omitempty"`Italicbool    `json:"italic,omitempty"`}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp