Giter Club home page Giter Club logo

examples's Issues

Page rendering gives errors

cannot load pages: ex:

gives errors where the first chart renders, but the others do not

image

error messages:

Loaded claygl, version 1.2.1
echarts-gl.min.js:1 Loaded echarts, version 4.1.0
page_none_layout.html:30 Uncaught SyntaxError: Identifier 'goecharts_MZqBadxvuKyl' has already been declared
page_none_layout.html:41 Uncaught SyntaxError: Identifier 'goecharts_MZqBadxvuKyl' has already been declared
page_none_layout.html:52 Uncaught SyntaxError: Identifier 'goecharts_MZqBadxvuKyl' has already been declared
page_none_layout.html:74 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:85 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:96 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:107 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:118 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:129 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:140 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:151 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:162 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:173 Uncaught SyntaxError: Identifier 'goecharts_mhjEmTCPRtms' has already been declared
page_none_layout.html:184 

i also noticed this issue trying to recreate the issue on my project

Example of label callback

Hi, could you create an example where the formatter uses a callback to format text per series element?

charts.WithLabelOpts(
		opts.Label{
			Show:      true,
			Formatter: callback?,
		},
	)

SunBurst and Tree examples make `go run` fail

❯ go run .
# github.com/go-echarts/go-echarts-examples/examples
examples/sunburst.go:14:32: undefined: opts.SunBurstData
examples/sunburst.go:15:18: undefined: opts.SunBurstData
examples/sunburst.go:17:25: undefined: opts.SunBurstData
examples/sunburst.go:31:22: undefined: charts.Sunburst
examples/sunburst.go:32:14: undefined: charts.NewSunburst
examples/tree.go:12:20: undefined: opts.TreeData
examples/tree.go:52:14: undefined: opts.TreeData
examples/tree.go:59:18: undefined: charts.Tree
examples/tree.go:60:11: undefined: charts.NewTree
examples/tree.go:68:4: undefined: charts.WithTreeOpts
examples/tree.go:68:4: too many errors

Removing the examples/sunburst.go and examples/tree.go files makes for a quick fix and allows the server to run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.