Movatterモバイル変換


[0]ホーム

URL:


c3

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:8Imported by:1

Details

Repository

github.com/grokify/gocharts

Links

README

Documentation

Index

Constants

View Source
const (ChartTypeBar = "bar")

Variables

This section is empty.

Functions

funcC3BarChartJS

func C3BarChartJS(chartC3Chart)string

funcC3ChartHTMLSimple

func C3ChartHTMLSimple(idstring, chartC3Chart)string

funcC3DonutChartPage

func C3DonutChartPage(dataTemplateData)string

funcStreamC3BarChartJS

func StreamC3BarChartJS(qw422016 *qt422016.Writer, chartC3Chart)

funcStreamC3ChartHTMLSimple

func StreamC3ChartHTMLSimple(qw422016 *qt422016.Writer, idstring, chartC3Chart)

funcStreamC3DonutChartPage

func StreamC3DonutChartPage(qw422016 *qt422016.Writer, dataTemplateData)

funcStreamTimeseriesHTML

func StreamTimeseriesHTML(qw422016 *qt422016.Writer, dataTimeseriesData)

funcStreamTimeseriesPage

func StreamTimeseriesPage(qw422016 *qt422016.Writer, pageDataTimeseriesPageData)

funcTimeseriesHTML

func TimeseriesHTML(dataTimeseriesData)string

funcTimeseriesPage

func TimeseriesPage(pageDataTimeseriesPageData)string

funcWriteC3BarChartJS

func WriteC3BarChartJS(qq422016qtio422016.Writer, chartC3Chart)

funcWriteC3ChartHTMLSimple

func WriteC3ChartHTMLSimple(qq422016qtio422016.Writer, idstring, chartC3Chart)

funcWriteC3DonutChartPage

func WriteC3DonutChartPage(qq422016qtio422016.Writer, dataTemplateData)

funcWriteTimeseriesHTML

func WriteTimeseriesHTML(qq422016qtio422016.Writer, dataTimeseriesData)

funcWriteTimeseriesPage

func WriteTimeseriesPage(qq422016qtio422016.Writer, pageDataTimeseriesPageData)

Types

typeC3Axis

type C3Axis struct {XC3AxisX `json:"x,omitempty"`}

typeC3AxisX

type C3AxisX struct {Typestring   `json:"type,omitempty"`// "Category"Categories []string `json:"categories,omitempty"`}

typeC3Bar

type C3Bar struct {WidthRatiofloat64Widthint}

typeC3Chart

type C3Chart struct {Bindtostring      `json:"bindto,omitempty"`DataC3ChartData `json:"data,omitempty"`AxisC3Axis      `json:"axis,omitempty"`GridC3Grid      `json:"grid,omitempty"`DonutC3Donut     `json:"donut,omitempty"`BarC3Bar       `json:"bar,omitempty"`}

funcSlotDataSeriesSetSimpleToC3ChartBar

func SlotDataSeriesSetSimpleToC3ChartBar(inputslot.SlotDataSeriesSetSimple, c3BarInfoC3Bar, hardMaxint64) (C3Chart,error)

funcTimeSeriesSetSimpleToC3ChartBar

func TimeSeriesSetSimpleToC3ChartBar(data []timeseries.RowInt64, c3BarInfoC3Bar)C3Chart

func (*C3Chart)MustJSON

func (data *C3Chart) MustJSON() []byte

typeC3ChartData

type C3ChartData struct {Xstring  `json:"x,omitempty"`Columns [][]any `json:"columns,omitempty"`Typestring  `json:"type,omitempty"`}

func (*C3ChartData)MustJSON

func (data *C3ChartData) MustJSON() []byte

typeC3ColumnInt

type C3ColumnInt struct {NamestringValues []int}

typeC3ColumnsInt

type C3ColumnsInt struct {Columns []C3ColumnInt}

func (*C3ColumnsInt)ToC3ChartData

func (cols *C3ColumnsInt) ToC3ChartData(chartTypestring)C3ChartData

typeC3Donut

type C3Donut struct {Titlestring `json:"title,omitempty"`}

typeC3Grid

type C3Grid struct {XC3GridLines `json:"x,omitempty"`YC3GridLines `json:"y,omitempty"`}

typeC3GridLine

type C3GridLine struct {Valueany    `json:"value,omitempty"`Textstring `json:"text,omitempty"`Classstring `json:"class,omitempty"`Positionstring `json:"position,omitempty"`}

typeC3GridLines

type C3GridLines struct {Showbool       `json:"show,omitempty"`LinesC3GridLine `json:"lines,omitempty"`}

typeTemplateData

type TemplateData struct {HeaderHTMLstringReportNamestringReportLinkstringIncludeDataTableboolIncludeDataTableTotalsboolC3ChartC3ChartFooterHTMLstring}

func (*TemplateData)FormattedDataJSON

func (td *TemplateData) FormattedDataJSON() []byte

typeTimeseriesData

type TimeseriesData struct {IncludeTitleboolTitlestringTitleLevelstringDivIDstringJSDataVarstringJSChartVarstringTimeSeriesSet *interval.TimeSeriesSetJSONDataTimeseriesDataJSON}

func (*TimeseriesData)AddTimeSeriesSet

func (data *TimeseriesData) AddTimeSeriesSet(set *interval.TimeSeriesSet, intervaltimeutil.Interval, seriesTypeinterval.SeriesType)error

func (*TimeseriesData)DataJSON

func (data *TimeseriesData) DataJSON() []byte

func (*TimeseriesData)FormattedDataJSON

func (data *TimeseriesData) FormattedDataJSON() []byte

typeTimeseriesDataJSON

type TimeseriesDataJSON struct {Columns   [][]any          `json:"columns"`Totals    []int64          `json:"totals"`TotalsMap map[string]int64 `json:"totalsMap"`}

func (*TimeseriesDataJSON)JSON

func (tdj *TimeseriesDataJSON) JSON() []byte

typeTimeseriesPageData

type TimeseriesPageData struct {TitlestringURLstringCharts    []TimeseriesDataXoxinterval.YoYQoQGrowthXoxPoints []interval.XoxPoint}

Source Files

View all Source files

Directories

PathSynopsis
c3sts is a package for creating C3 charts from statictimeseries data.
c3sts is a package for creating C3 charts from statictimeseries data.
examples
bar_chartcommand

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