Trivial formatting changes
This commit is contained in:
parent
c120781f03
commit
4a60be48ee
@ -5,7 +5,7 @@ from candlestick_chart import CandlestickChart
|
|||||||
from plot import plot
|
from plot import plot
|
||||||
|
|
||||||
end_date = datetime.today().date()
|
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)
|
data = ohlc('SPX.XO', '1d', start_date = start_date, end_date = end_date)
|
||||||
|
|
||||||
candlestick_chart = CandlestickChart(
|
candlestick_chart = CandlestickChart(
|
||||||
|
@ -5,7 +5,7 @@ from line_chart import LineChart
|
|||||||
from plot import plot
|
from plot import plot
|
||||||
|
|
||||||
end_date = datetime.today().date()
|
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)
|
data = ohlc('SPX.XO', '1d', start_date = start_date, end_date = end_date)
|
||||||
|
|
||||||
line_chart = LineChart(
|
line_chart = LineChart(
|
||||||
|
2
plot.py
2
plot.py
@ -29,4 +29,4 @@ def figure_with_subplots(subplots: List[List[Chart]]) -> Figure:
|
|||||||
return figure
|
return figure
|
||||||
|
|
||||||
def plot(chart: Chart) -> None:
|
def plot(chart: Chart) -> None:
|
||||||
figure_with_subplots([[chart]]).show(config={'displayModeBar': False})
|
figure_with_subplots([[chart]]).show(config = {'displayModeBar': False})
|
Loading…
Reference in New Issue
Block a user