Versions in this module Expand all Collapse all v0 v0.0.2 May 21, 2023 Changes in this version + var AssetsList = []string + var List = map[string]string + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type Attributes struct + Labels []string + type BarAttributes struct + DataSets BarDataSets + type BarChart struct + JsContent BarJsContent + func Bar() *BarChart + func (l *BarChart) AddDataSet(s string) *BarChart + func (l *BarChart) DSBackgroundColor(backgroundColor Color) *BarChart + func (l *BarChart) DSBorderCapStyle(borderCapStyle string) *BarChart + func (l *BarChart) DSBorderColor(borderColor Color) *BarChart + func (l *BarChart) DSBorderSkipped(skip string) *BarChart + func (l *BarChart) DSBorderWidth(borderWidth float64) *BarChart + func (l *BarChart) DSData(data []float64) *BarChart + func (l *BarChart) DSHoverBackgroundColor(hoverBackgroundColor Color) *BarChart + func (l *BarChart) DSHoverBorderColor(hoverBorderColor Color) *BarChart + func (l *BarChart) DSHoverBorderWidth(hoverBorderWidth float64) *BarChart + func (l *BarChart) DSLabel(s string) *BarChart + func (l *BarChart) DSOrder(order float64) *BarChart + func (l *BarChart) DSType(t string) *BarChart + func (l *BarChart) DSXAxisID(xAxisID string) *BarChart + func (l *BarChart) DSYAxisID(yAxisID string) *BarChart + func (l *BarChart) GetContent() template.HTML + func (l *BarChart) SetHeight(s int) *BarChart + func (l *BarChart) SetID(s string) *BarChart + func (l *BarChart) SetLabels(s []string) *BarChart + func (l *BarChart) SetTitle(s template.HTML) *BarChart + type BarDataSet struct + BackgroundColor Color + BorderCapStyle string + BorderColor Color + BorderSkipped string + BorderWidth float64 + Data []float64 + HoverBackgroundColor Color + HoverBorderColor Color + HoverBorderWidth float64 + Label string + Order float64 + Type string + XAxisID string + YAxisID string + func (l *BarDataSet) SetBackgroundColor(backgroundColor Color) *BarDataSet + func (l *BarDataSet) SetBorderCapStyle(borderCapStyle string) *BarDataSet + func (l *BarDataSet) SetBorderColor(borderColor Color) *BarDataSet + func (l *BarDataSet) SetBorderSkipped(skip string) *BarDataSet + func (l *BarDataSet) SetBorderWidth(borderWidth float64) *BarDataSet + func (l *BarDataSet) SetData(data []float64) *BarDataSet + func (l *BarDataSet) SetHoverBackgroundColor(hoverBackgroundColor Color) *BarDataSet + func (l *BarDataSet) SetHoverBorderColor(hoverBorderColor Color) *BarDataSet + func (l *BarDataSet) SetHoverBorderWidth(hoverBorderWidth float64) *BarDataSet + func (l *BarDataSet) SetLabel(label string) *BarDataSet + func (l *BarDataSet) SetOrder(order float64) *BarDataSet + func (l *BarDataSet) SetType(t string) *BarDataSet + func (l *BarDataSet) SetXAxisID(xAxisID string) *BarDataSet + func (l *BarDataSet) SetYAxisID(yAxisID string) *BarDataSet + type BarDataSets []*BarDataSet + func (l BarDataSets) Add(ds *BarDataSet) BarDataSets + type BarJsContent struct + Data BarAttributes + type Chart struct + Height int + ID string + Js template.JS + JsContentOptions *Options + Title template.HTML + func NewChart() *Chart + func (c *Chart) GetAsset(name string) ([]byte, error) + func (c *Chart) GetAssetList() []string + func (c *Chart) GetContent() template.HTML + func (c *Chart) SetHeight(height int) *Chart + func (c *Chart) SetID(id string) *Chart + func (c *Chart) SetOptionAnimationDuration(duration int) + func (c *Chart) SetOptionAnimationEasing(easing string) + func (c *Chart) SetOptionElementArc(arc *OptionElementArc) + func (c *Chart) SetOptionElementLine(line *OptionElementLine) + func (c *Chart) SetOptionElementPoint(point *OptionElementPoint) + func (c *Chart) SetOptionElementRectangle(rectangle *OptionElementRectangle) + func (c *Chart) SetOptionLayoutPaddingBottom(bottom int) + func (c *Chart) SetOptionLayoutPaddingLeft(left int) + func (c *Chart) SetOptionLayoutPaddingRight(right int) + func (c *Chart) SetOptionLayoutPaddingTop(top int) + func (c *Chart) SetOptionLegendAlign(align string) + func (c *Chart) SetOptionLegendDisplay(display bool) + func (c *Chart) SetOptionLegendFullWidt(fullWidth bool) + func (c *Chart) SetOptionLegendLabels(labels *OptionLegendLabel) + func (c *Chart) SetOptionLegendPosition(position string) + func (c *Chart) SetOptionLegendRevers(reverse bool) + func (c *Chart) SetOptionLegendRt(rtl bool) + func (c *Chart) SetOptionLegendTextDirection(textDirection string) + func (c *Chart) SetOptionTitleDisplay(display bool) + func (c *Chart) SetOptionTitleFontColor(fontColor Color) + func (c *Chart) SetOptionTitleFontFamily(fontFamily string) + func (c *Chart) SetOptionTitleFontSize(fontSize int) + func (c *Chart) SetOptionTitleFontStyle(fontStyle string) + func (c *Chart) SetOptionTitleLineHeight(lineHeight int) + func (c *Chart) SetOptionTitlePadding(padding int) + func (c *Chart) SetOptionTitlePosition(position string) + func (c *Chart) SetOptionTitleText(text string) + func (c *Chart) SetOptionTooltipsBackgroundColor(backgroundColor Color) + func (c *Chart) SetOptionTooltipsBodyAlign(bodyAlign string) + func (c *Chart) SetOptionTooltipsBodyFontColor(bodyFontColor Color) + func (c *Chart) SetOptionTooltipsBodyFontFamily(bodyFontFamily string) + func (c *Chart) SetOptionTooltipsBodyFontSize(bodyFontSize int) + func (c *Chart) SetOptionTooltipsBodyFontStyle(bodyFontStyle string) + func (c *Chart) SetOptionTooltipsBodySpacing(bodySpacing int) + func (c *Chart) SetOptionTooltipsBorderColor(borderColor Color) + func (c *Chart) SetOptionTooltipsBorderWidth(borderWidth int) + func (c *Chart) SetOptionTooltipsCaretPadding(caretPadding int) + func (c *Chart) SetOptionTooltipsCaretSize(caretSize int) + func (c *Chart) SetOptionTooltipsCornerRadius(cornerRadius int) + func (c *Chart) SetOptionTooltipsDisplayColors(displayColors bool) + func (c *Chart) SetOptionTooltipsEnabled(enabled bool) + func (c *Chart) SetOptionTooltipsFooterAlign(footerAlign string) + func (c *Chart) SetOptionTooltipsFooterFontColor(footerFontColor Color) + func (c *Chart) SetOptionTooltipsFooterFontFamily(footerFontFamily string) + func (c *Chart) SetOptionTooltipsFooterFontSize(footerFontSize int) + func (c *Chart) SetOptionTooltipsFooterFontStyle(footerFontStyle string) + func (c *Chart) SetOptionTooltipsFooterMarginTop(footerMarginTop int) + func (c *Chart) SetOptionTooltipsFooterSpacing(footerSpacing int) + func (c *Chart) SetOptionTooltipsIntersect(intersect bool) + func (c *Chart) SetOptionTooltipsMode(mode string) + func (c *Chart) SetOptionTooltipsMultiKeyBackground(multiKeyBackground Color) + func (c *Chart) SetOptionTooltipsPosition(position string) + func (c *Chart) SetOptionTooltipsRtl(rtl bool) + func (c *Chart) SetOptionTooltipsTextDirection(textDirection string) + func (c *Chart) SetOptionTooltipsTitleAlign(titleAlign string) + func (c *Chart) SetOptionTooltipsTitleFontColor(titleFontColor Color) + func (c *Chart) SetOptionTooltipsTitleFontFamily(titleFontFamily string) + func (c *Chart) SetOptionTooltipsTitleFontSize(titleFontSize int) + func (c *Chart) SetOptionTooltipsTitleFontStyle(titleFontStyle string) + func (c *Chart) SetOptionTooltipsTitleMarginBottom(titleMarginBottom int) + func (c *Chart) SetOptionTooltipsTitleSpacing(titleSpacing int) + func (c *Chart) SetOptionTooltipsXPadding(xPadding int) + func (c *Chart) SetOptionTooltipsYPadding(yPadding int) + func (c *Chart) SetTitle(title template.HTML) *Chart + type Color string + type DataSet struct + Data []float64 + Label string + Type string + type DataSets []DataSet + type JsContent struct + Options *Options + Type string + type LineAttributes struct + DataSets LineDataSets + type LineChart struct + JsContent LineJsContent + func Line() *LineChart + func (l *LineChart) AddDataSet(s string) *LineChart + func (l *LineChart) DSBackgroundColor(backgroundColor Color) *LineChart + func (l *LineChart) DSBorderCapStyle(borderCapStyle string) *LineChart + func (l *LineChart) DSBorderColor(borderColor Color) *LineChart + func (l *LineChart) DSBorderDash(borderDash []int) *LineChart + func (l *LineChart) DSBorderDashOffset(borderDashOffset float64) *LineChart + func (l *LineChart) DSBorderJoinStyle(borderJoinStyle string) *LineChart + func (l *LineChart) DSBorderWidth(borderWidth float64) *LineChart + func (l *LineChart) DSCubicInterpolationMode(cubicInterpolationMode string) *LineChart + func (l *LineChart) DSData(data []float64) *LineChart + func (l *LineChart) DSFill(fill bool) *LineChart + func (l *LineChart) DSHoverBackgroundColor(hoverBackgroundColor Color) *LineChart + func (l *LineChart) DSHoverBorderCapStyle(hoverBorderCapStyle string) *LineChart + func (l *LineChart) DSHoverBorderColor(hoverBorderColor Color) *LineChart + func (l *LineChart) DSHoverBorderDash(hoverBorderDash float64) *LineChart + func (l *LineChart) DSHoverBorderDashOffset(hoverBorderDashOffset float64) *LineChart + func (l *LineChart) DSHoverBorderJoinStyle(hoverBorderJoinStyle string) *LineChart + func (l *LineChart) DSHoverBorderWidth(hoverBorderWidth float64) *LineChart + func (l *LineChart) DSLabel(s string) *LineChart + func (l *LineChart) DSLineTension(lineTension float64) *LineChart + func (l *LineChart) DSOrder(order float64) *LineChart + func (l *LineChart) DSPointBackgroundColor(pointBackgroundColor Color) *LineChart + func (l *LineChart) DSPointBorderColor(pointBorderColor Color) *LineChart + func (l *LineChart) DSPointBorderWidth(pointBorderWidth float64) *LineChart + func (l *LineChart) DSPointHitRadius(pointHitRadius float64) *LineChart + func (l *LineChart) DSPointHoverBackgroundColor(pointHoverBackgroundColor Color) *LineChart + func (l *LineChart) DSPointHoverBorderColor(pointHoverBorderColor Color) *LineChart + func (l *LineChart) DSPointHoverBorderWidth(pointHoverBorderWidth float64) *LineChart + func (l *LineChart) DSPointHoverRadius(pointHoverRadius float64) *LineChart + func (l *LineChart) DSPointRadius(pointRadius float64) *LineChart + func (l *LineChart) DSPointRotation(pointRotation float64) *LineChart + func (l *LineChart) DSPointStyle(pointStyle string) *LineChart + func (l *LineChart) DSShowLine(showLine bool) *LineChart + func (l *LineChart) DSSpanGaps(spanGaps bool) *LineChart + func (l *LineChart) DSSteppedLine(steppedLine bool) *LineChart + func (l *LineChart) DSType(t string) *LineChart + func (l *LineChart) DSXAxisID(xAxisID string) *LineChart + func (l *LineChart) DSYAxisID(yAxisID string) *LineChart + func (l *LineChart) GetContent() template.HTML + func (l *LineChart) SetHeight(s int) *LineChart + func (l *LineChart) SetID(s string) *LineChart + func (l *LineChart) SetLabels(s []string) *LineChart + func (l *LineChart) SetTitle(s template.HTML) *LineChart + type LineDataSet struct + BackgroundColor Color + BorderCapStyle string + BorderColor Color + BorderDash []int + BorderDashOffset float64 + BorderJoinStyle string + BorderWidth float64 + CubicInterpolationMode string + Data []float64 + Fill bool + HoverBackgroundColor Color + HoverBorderCapStyle string + HoverBorderColor Color + HoverBorderDash float64 + HoverBorderDashOffset float64 + HoverBorderJoinStyle string + HoverBorderWidth float64 + Label string + LineTension float64 + Order float64 + PointBackgroundColor Color + PointBorderColor Color + PointBorderWidth float64 + PointHitRadius float64 + PointHoverBackgroundColor Color + PointHoverBorderColor Color + PointHoverBorderWidth float64 + PointHoverRadius float64 + PointRadius float64 + PointRotation float64 + PointStyle string + ShowLine bool + SpanGaps bool + SteppedLine bool + Type string + XAxisID string + YAxisID string + func (l *LineDataSet) SetBackgroundColor(backgroundColor Color) *LineDataSet + func (l *LineDataSet) SetBorderCapStyle(borderCapStyle string) *LineDataSet + func (l *LineDataSet) SetBorderColor(borderColor Color) *LineDataSet + func (l *LineDataSet) SetBorderDash(borderDash []int) *LineDataSet + func (l *LineDataSet) SetBorderDashOffset(borderDashOffset float64) *LineDataSet + func (l *LineDataSet) SetBorderJoinStyle(borderJoinStyle string) *LineDataSet + func (l *LineDataSet) SetBorderWidth(borderWidth float64) *LineDataSet + func (l *LineDataSet) SetCubicInterpolationMode(cubicInterpolationMode string) *LineDataSet + func (l *LineDataSet) SetData(data []float64) *LineDataSet + func (l *LineDataSet) SetFill(fill bool) *LineDataSet + func (l *LineDataSet) SetHoverBackgroundColor(hoverBackgroundColor Color) *LineDataSet + func (l *LineDataSet) SetHoverBorderCapStyle(hoverBorderCapStyle string) *LineDataSet + func (l *LineDataSet) SetHoverBorderColor(hoverBorderColor Color) *LineDataSet + func (l *LineDataSet) SetHoverBorderDash(hoverBorderDash float64) *LineDataSet + func (l *LineDataSet) SetHoverBorderDashOffset(hoverBorderDashOffset float64) *LineDataSet + func (l *LineDataSet) SetHoverBorderJoinStyle(hoverBorderJoinStyle string) *LineDataSet + func (l *LineDataSet) SetHoverBorderWidth(hoverBorderWidth float64) *LineDataSet + func (l *LineDataSet) SetLabel(label string) *LineDataSet + func (l *LineDataSet) SetLineTension(lineTension float64) *LineDataSet + func (l *LineDataSet) SetOrder(order float64) *LineDataSet + func (l *LineDataSet) SetPointBackgroundColor(pointBackgroundColor Color) *LineDataSet + func (l *LineDataSet) SetPointBorderColor(pointBorderColor Color) *LineDataSet + func (l *LineDataSet) SetPointBorderWidth(pointBorderWidth float64) *LineDataSet + func (l *LineDataSet) SetPointHitRadius(pointHitRadius float64) *LineDataSet + func (l *LineDataSet) SetPointHoverBackgroundColor(pointHoverBackgroundColor Color) *LineDataSet + func (l *LineDataSet) SetPointHoverBorderColor(pointHoverBorderColor Color) *LineDataSet + func (l *LineDataSet) SetPointHoverBorderWidth(pointHoverBorderWidth float64) *LineDataSet + func (l *LineDataSet) SetPointHoverRadius(pointHoverRadius float64) *LineDataSet + func (l *LineDataSet) SetPointRadius(pointRadius float64) *LineDataSet + func (l *LineDataSet) SetPointRotation(pointRotation float64) *LineDataSet + func (l *LineDataSet) SetPointStyle(pointStyle string) *LineDataSet + func (l *LineDataSet) SetShowLine(showLine bool) *LineDataSet + func (l *LineDataSet) SetSpanGaps(spanGaps bool) *LineDataSet + func (l *LineDataSet) SetSteppedLine(steppedLine bool) *LineDataSet + func (l *LineDataSet) SetType(t string) *LineDataSet + func (l *LineDataSet) SetXAxisID(xAxisID string) *LineDataSet + func (l *LineDataSet) SetYAxisID(yAxisID string) *LineDataSet + type LineDataSets []*LineDataSet + func (l LineDataSets) Add(ds *LineDataSet) LineDataSets + type LineJsContent struct + Data LineAttributes + type OptionAnimation struct + Duration int + Easing string + type OptionElement struct + Arc *OptionElementArc + Line *OptionElementLine + Point *OptionElementPoint + Rectangle *OptionElementRectangle + type OptionElementArc struct + Angle int + BackgroundColor Color + BorderAlign string + BorderColor Color + BorderWidth int + type OptionElementLine struct + BackgroundColor Color + BorderCapStyle string + BorderColor Color + BorderDash int + BorderDashOffset int + BorderJoinStyle string + BorderWidth int + CapBezierPoints bool + CubicInterpolationMode string + Fill bool + Stepped bool + Tension int + type OptionElementPoint struct + BackgroundColor Color + BorderColor Color + BorderWidth int + HitRadius int + HoverBorderWidth int + HoverRadius int + PointStyle string + Radius int + Rotation int + type OptionElementRectangle struct + BackgroundColor Color + BorderColor Color + BorderSkipped string + BorderWidth int + type OptionLayout struct + Padding struct{ ... } + type OptionLegend struct + Align string + Display bool + FullWidth bool + Labels *OptionLegendLabel + Position string + Reverse bool + Rtl bool + TextDirection string + type OptionLegendLabel struct + BoxWidth int + FontColor Color + FontFamily string + FontSize int + FontStyle string + Padding int + UsePointStyle bool + type OptionTitle struct + Display bool + FontColor Color + FontFamily string + FontSize int + FontStyle string + LineHeight int + Padding int + Position string + Text string + type OptionTooltips struct + BackgroundColor Color + BodyAlign string + BodyFontColor Color + BodyFontFamily string + BodyFontSize int + BodyFontStyle string + BodySpacing int + BorderColor Color + BorderWidth int + CaretPadding int + CaretSize int + CornerRadius int + DisplayColors bool + Enabled bool + FooterAlign string + FooterFontColor Color + FooterFontFamily string + FooterFontSize int + FooterFontStyle string + FooterMarginTop int + FooterSpacing int + Intersect bool + Mode string + MultiKeyBackground Color + Position string + Rtl bool + TextDirection string + TitleAlign string + TitleFontColor Color + TitleFontFamily string + TitleFontSize int + TitleFontStyle string + TitleMarginBottom int + TitleSpacing int + XPadding int + YPadding int + type Options struct + Animation *OptionAnimation + Elements *OptionElement + Layout *OptionLayout + Legend *OptionLegend + Title *OptionTitle + Tooltips *OptionTooltips + type PieAttributes struct + DataSets PieDataSets + type PieChart struct + JsContent PieJsContent + func Pie() *PieChart + func (l *PieChart) AddDataSet(s string) *PieChart + func (l *PieChart) DSBackgroundColor(backgroundColor []Color) *PieChart + func (l *PieChart) DSBorderColor(borderColor Color) *PieChart + func (l *PieChart) DSBorderWidth(borderWidth float64) *PieChart + func (l *PieChart) DSData(data []float64) *PieChart + func (l *PieChart) DSHoverBackgroundColor(hoverBackgroundColor Color) *PieChart + func (l *PieChart) DSHoverBorderColor(hoverBorderColor Color) *PieChart + func (l *PieChart) DSHoverBorderWidth(hoverBorderWidth float64) *PieChart + func (l *PieChart) DSLabel(s string) *PieChart + func (l *PieChart) DSType(t string) *PieChart + func (l *PieChart) DSWeight(weight int) *PieChart + func (l *PieChart) GetContent() template.HTML + func (l *PieChart) SetHeight(s int) *PieChart + func (l *PieChart) SetID(s string) *PieChart + func (l *PieChart) SetLabels(s []string) *PieChart + func (l *PieChart) SetTitle(s template.HTML) *PieChart + type PieDataSet struct + BackgroundColor []Color + BorderAlign string + BorderColor Color + BorderWidth float64 + Data []float64 + HoverBackgroundColor Color + HoverBorderColor Color + HoverBorderWidth float64 + Label string + Type string + Weight int + func (l *PieDataSet) SetBackgroundColor(backgroundColor []Color) *PieDataSet + func (l *PieDataSet) SetBorderAlign(align string) *PieDataSet + func (l *PieDataSet) SetBorderColor(borderColor Color) *PieDataSet + func (l *PieDataSet) SetBorderWidth(borderWidth float64) *PieDataSet + func (l *PieDataSet) SetData(data []float64) *PieDataSet + func (l *PieDataSet) SetHoverBackgroundColor(hoverBackgroundColor Color) *PieDataSet + func (l *PieDataSet) SetHoverBorderColor(hoverBorderColor Color) *PieDataSet + func (l *PieDataSet) SetHoverBorderWidth(hoverBorderWidth float64) *PieDataSet + func (l *PieDataSet) SetLabel(label string) *PieDataSet + func (l *PieDataSet) SetType(t string) *PieDataSet + func (l *PieDataSet) SetWeight(weight int) *PieDataSet + type PieDataSets []*PieDataSet + func (l PieDataSets) Add(ds *PieDataSet) PieDataSets + type PieJsContent struct + Data PieAttributes