Skip to content

Commit

Permalink
update sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 31, 2024
1 parent 9d294b2 commit 0206bdd
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions pkg/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ import (
)

const (
DEFAULT_PADDING_TOP = 20
DEFAULT_PADDING_RIGHT = 20
DEFAULT_PADDING_BOTTOM = 20
DEFAULT_PADDING_LEFT = 20
DEFAULT_TITLE_FONT_SIZE = 12
DEFAULT_SUBTITLE_FONT_SIZE = 10
MINI_CHART_WIDTH = 300
MINI_CHART_HEIGHT = 300
DEFAULT_PADDING_TOP = 20
DEFAULT_PADDING_RIGHT = 20
DEFAULT_PADDING_BOTTOM = 20
DEFAULT_PADDING_LEFT = 20
DEFAULT_TITLE_FONT_SIZE = 12
DEFAULT_TITLE_MINI_FONT_SIZE = 10
DEFAULT_SUBTITLE_FONT_SIZE = 10
DEFAULT_SUBTITLE_MINI_FONT_SIZE = 9
MINI_CHART_WIDTH = 300
MINI_CHART_HEIGHT = 300

BAR_STYLE_VERTICAL = "vertical"
BAR_STYLE_HORIZONTAL = "horizontal"
Expand Down Expand Up @@ -141,8 +143,8 @@ func GetTitleSizes(req *ChartRequest) charts.TitleOption {
titleSizes = charts.TitleOption{
Text: Truncate(req.ChartTitle, 17),
Subtext: Truncate(req.ChartSubtitle, 17),
FontSize: DEFAULT_TITLE_FONT_SIZE,
SubtextFontSize: DEFAULT_SUBTITLE_FONT_SIZE,
FontSize: DEFAULT_TITLE_MINI_FONT_SIZE,
SubtextFontSize: DEFAULT_SUBTITLE_MINI_FONT_SIZE,
Left: charts.PositionCenter,
SubtextFontColor: DEFAULT_SUBTITLE_COLOR,
}
Expand Down

0 comments on commit 0206bdd

Please sign in to comment.