go-echarts / go-echarts

🎨 The adorable charts library for Golang

Home Page:https://go-echarts.github.io/go-echarts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support to Geo charts

janpfeifer opened this issue · comments

commented

Describe your proposal

First, thank you for the great project!!

While Geo object exists in go-echarts, its options are not coded -- e.g.: center, zoom, etc.

I noticed this while trying to implement the NY map example

thanks!

What the feature/improvement it should looks like?

I think it requires only implementing the missing fields.

Other information

Links:

[1] Geo options
[2] NY Lines Example

Willing to implement it?

  • Yes, I do

Hi @janpfeifer , thx for your report and glad to see you are willing to contribute on it !
Yes, the Geo options misses some configs in go-echarts which need to be added.
I checked the NY Lines sample, I think you could do the trick when you replenish those missing configs.
BTW, the myChart instance of the chart in that sample, you could get it via %MY_ECHARTS% in go-echarts also. see how-to-get-echarts-instance-in-go-echarts .