We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've noticed https://github.com/go-echarts/go-echarts/blob/master/render/engine.go
I want to override https://github.com/go-echarts/go-echarts/blob/master/templates/chart.go in particular
idk how you can allow users to override, add Templates to Renderer interface please?
The text was updated successfully, but these errors were encountered:
Hi @kaihendry , you can implement ur own render same in engine.go to do the render thing. i.e.
engine.go
type MyRender struct { } func (mr *MyRender) Render(w io.Writer) error { // ... return nil } func run() { bar := NewBar() bar.Renderer = &MyRender{} _ = bar.Render(ioutil.Discard) }
Sorry, something went wrong.
No branches or pull requests
I've noticed https://github.com/go-echarts/go-echarts/blob/master/render/engine.go
I want to override https://github.com/go-echarts/go-echarts/blob/master/templates/chart.go in particular
idk how you can allow users to override, add Templates to Renderer interface please?
The text was updated successfully, but these errors were encountered: