Skip to content

Commit

Permalink
refactor: chartwidth in w
Browse files Browse the repository at this point in the history
  • Loading branch information
wayne-shih committed Oct 29, 2024
1 parent 412b392 commit 6393ebc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/indexticker/index_ticker.star
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ def print_chart(INDEX_JSON, TotalTicks, LastClose, Interval):
DataElement = TickIndex[i], Percentage_Change
Data.append(DataElement)

ChartWidth = len(Data)

if ChartWidth > 64:
ChartWidth = 64
ChartWidth = min(len(Data), 64)

if Interval == "YTD":
ChartWidth = int(ChartWidth * 1.23)
Expand Down

0 comments on commit 6393ebc

Please sign in to comment.