Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Jun 25, 2022
1 parent da3ad16 commit f127606
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ Screenshot of common charts, the left part is light theme, the right part is gra
<p align="center">
<img src="./assets/go-table.png" alt="go-table">
</p>

## Chart Type

These chart types are supported: `line`, `bar`, `pie`, `radar` or `funnel`.
These chart types are supported: `line`, `bar`, `pie`, `radar` or `funnel` and `table`.

## Example

Expand Down
6 changes: 5 additions & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
<img src="./assets/go-charts.png" alt="go-charts">
</p>

<p align="center">
<img src="./assets/go-table.png" alt="go-table">
</p
## 支持图表类型
支持以下的图表类型:`line`, `bar`, `pie`, `radar` 以及 `funnel`
支持以下的图表类型:`line`, `bar`, `pie`, `radar`, `funnel` 以及 `table`
## 示例
Expand Down
4 changes: 0 additions & 4 deletions table.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,6 @@ func (t *tableChart) Render() (Box, error) {
if !opt.BackgroundColor.IsZero() {
p.SetBackground(p.Width(), p.Height(), opt.BackgroundColor)
}
headerBGColor := opt.HeaderBackgroundColor
if headerBGColor.IsZero() {
headerBGColor = tableDefaultSetting.HeaderColor
}
if opt.Font == nil && opt.FontFamily != "" {
opt.Font, _ = GetFont(opt.FontFamily)
}
Expand Down

0 comments on commit f127606

Please sign in to comment.