Trivial formatting changes

This commit is contained in:
moshferatu 2023-12-31 07:15:53 -08:00
parent c120781f03
commit 4a60be48ee
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ from candlestick_chart import CandlestickChart
from plot import plot
end_date = datetime.today().date()
start_date = (end_date - timedelta(days=90))
start_date = (end_date - timedelta(days = 90))
data = ohlc('SPX.XO', '1d', start_date = start_date, end_date = end_date)
candlestick_chart = CandlestickChart(

View File

@ -5,7 +5,7 @@ from line_chart import LineChart
from plot import plot
end_date = datetime.today().date()
start_date = (end_date - timedelta(days=90))
start_date = (end_date - timedelta(days = 90))
data = ohlc('SPX.XO', '1d', start_date = start_date, end_date = end_date)
line_chart = LineChart(

View File

@ -29,4 +29,4 @@ def figure_with_subplots(subplots: List[List[Chart]]) -> Figure:
return figure
def plot(chart: Chart) -> None:
figure_with_subplots([[chart]]).show(config={'displayModeBar': False})
figure_with_subplots([[chart]]).show(config = {'displayModeBar': False})