Skip to content

Commit

Permalink
Chart title is now hidden if it is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Sep 23, 2022
1 parent 512e122 commit 411b28d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Fixed a zero division error when no candle volume is set
- Chart title is now hidden if it is an empty string

### Removed
-
Expand Down
2 changes: 1 addition & 1 deletion src/candlestick_chart/info_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def render(self, candle_set: "CandleSet", available_width: int) -> str:
filter(
len,
(
f"{self.name:>{constants.WIDTH + 3}}",
self.name,
self._render_price(candle_set),
self._render_highest(candle_set),
self._render_lowest(candle_set),
Expand Down

0 comments on commit 411b28d

Please sign in to comment.