Skip to content

Commit

Permalink
fix(to_figure): add units to legend in bar chart
Browse files Browse the repository at this point in the history
  • Loading branch information
devang-chauhan committed Jan 13, 2022
1 parent 6c388ea commit 936e0bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ladybug_charts/to_figure.py
Expand Up @@ -166,7 +166,7 @@ def _monthly_bar(data: MonthlyCollection, var: str, var_unit: str,
+ ' in %{customdata[0]}'
+ '<extra></extra>'),
marker_color=rgb_to_hex(color),
name=var
name=var + ' ' + var_unit
)


Expand Down Expand Up @@ -199,7 +199,7 @@ def _daily_bar(data: DailyCollection, var: str, var_unit: str,
+ ' %{customdata[1]} <br>'
+ '<extra></extra>'),
marker_color=rgb_to_hex(color),
name=var
name=var + ' ' + var_unit
)


Expand Down

0 comments on commit 936e0bc

Please sign in to comment.