go-echarts-assets

command module
v0.0.0-...-41f247b Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 1 Imported by: 0

README

go-echarts-assets

go-echarts-assets is the turn key solution for hosting go-echarts javascript assets.
It can be placed as it is into your server and its gh-pages acts as the default content delivery host when you evaluate go-echarts for web purposes. i.e.

On page usage

        page := components.NewPage()
	page.AssetsHost = "https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/"

On single chart usage

	bar := charts.NewBar()
	bar.SetGlobalOptions(
		charts.WithInitializationOpts(opts.Initialization{
			AssetsHost: "https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/",
		}),
        )

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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