feat: support top setting for title
This commit is contained in:
parent
25e9984ad8
commit
72896d1c3f
5 changed files with 379 additions and 4 deletions
|
|
@ -182,6 +182,7 @@ type ECharsOptions struct {
|
|||
Title struct {
|
||||
Text string `json:"text"`
|
||||
Left Position `json:"left"`
|
||||
Top Position `json:"top"`
|
||||
TextStyle struct {
|
||||
Color string `json:"color"`
|
||||
FontFamily string `json:"fontFamily"`
|
||||
|
|
@ -282,6 +283,7 @@ func (e *ECharsOptions) ToOptions() Options {
|
|||
o.Title = Title{
|
||||
Text: e.Title.Text,
|
||||
Left: string(e.Title.Left),
|
||||
Top: string(e.Title.Top),
|
||||
Style: chart.Style{
|
||||
FontColor: parseColor(titleTextStyle.Color),
|
||||
FontSize: titleTextStyle.FontSize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue