Skip to content

Commit

Permalink
docs: update options detail (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Feb 25, 2024
1 parent f03405a commit 0410e2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
- [Ecosystem](en-us/ecosystem)
- Chart Configration
- [Global](en-us/options/global)
- [Series](en-us/options/series)
- [Options](en-us/options/options)

[//]: # ( - [Series](en-us/options/series))

[//]: # ( - [Options](en-us/options/options))
- Showcases
- [Line](en-us/charts/line)
- [Bar](en-us/charts/bar)
Expand Down
2 changes: 1 addition & 1 deletion docs/en-us/event-and-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ hard to decide where to put the `dispatchAction` part, inside other JS functions
Hence, we haven't provided an action api yet, for the *static* `dispatchAction`.

So, is it no way to make it?
?> **Actually, we do have one more thing...**
#### *Actually, we do have one more thing...*

With the power of `%MY_ECHARTS` (see `dive-into` chapter),
absolutely, when you hold the echarts instance, you get the whole world.
Expand Down
7 changes: 7 additions & 0 deletions docs/en-us/options/global.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,10 @@ In go-echarts:

It will add the line's all series into bar's and the `Options` is only obtained from bar's.

As you can see, there is two parts of the charts function.
- SetGlobalOptions
- SetSeriesOptions

They map to what the configs we mentioned early with lots of `WithXXX` helper functions.
Normally, the `WithXXX` helper functions should meet your needs.
And you can set those options all from the Charts' instance side either.

0 comments on commit 0410e2b

Please sign in to comment.