echarts

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package echarts provides a godom plugin for Apache ECharts integration. ECharts is embedded and injected automatically — no CDN or manual <script> tag required. Users configure charts using plain Go maps that map to ECharts' option-driven API.

Index

Constants

This section is empty.

Variables

View Source
var Plugin godom.PluginFunc = func(eng *godom.Engine) {
	eng.RegisterPlugin("echarts", echartsLibJS, bridgeJS)
}

Plugin registers ECharts with a godom Engine.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	Title   M        `json:"title,omitempty"`
	Tooltip M        `json:"tooltip,omitempty"`
	Legend  M        `json:"legend,omitempty"`
	XAxis   M        `json:"xAxis,omitempty"`
	YAxis   M        `json:"yAxis,omitempty"`
	Series  []M      `json:"series"`
	Grid    M        `json:"grid,omitempty"`
	Color   []string `json:"color,omitempty"`
}

Chart holds the ECharts option object. All fields map directly to ECharts' setOption API.

type M

type M = map[string]interface{}

M is a shorthand for map[string]interface{}.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL