Update app.py
Browse files
app.py
CHANGED
|
@@ -120,44 +120,7 @@ def plot_logarithmic_chart(data, ticker):
|
|
| 120 |
hovermode='x unified',
|
| 121 |
plot_bgcolor='#F5F9F8',
|
| 122 |
paper_bgcolor='#F5F9F8',
|
| 123 |
-
font=dict(family="Quicksand, sans-serif", size=12, color="#313D38")
|
| 124 |
-
showlegend=True,
|
| 125 |
-
modebar_add=["drawline", "drawopenpath", "drawclosedpath", "drawcircle", "drawrect", "eraseshape"],
|
| 126 |
-
modebar=dict(bgcolor='rgba(255, 255, 255, 0.8)'),
|
| 127 |
-
updatemenus=[
|
| 128 |
-
dict(
|
| 129 |
-
type="buttons",
|
| 130 |
-
direction="left",
|
| 131 |
-
buttons=[
|
| 132 |
-
dict(
|
| 133 |
-
args=["visible", [True, True, True, True, True, True]],
|
| 134 |
-
label="All",
|
| 135 |
-
method="restyle"
|
| 136 |
-
),
|
| 137 |
-
dict(
|
| 138 |
-
args=["visible", [True, True, False, False, False, False]],
|
| 139 |
-
label="Price & Trend",
|
| 140 |
-
method="restyle"
|
| 141 |
-
),
|
| 142 |
-
dict(
|
| 143 |
-
args=["visible", [True, True, True, True, False, False]],
|
| 144 |
-
label="Inner Bands",
|
| 145 |
-
method="restyle"
|
| 146 |
-
),
|
| 147 |
-
dict(
|
| 148 |
-
args=["visible", [True, True, False, False, True, True]],
|
| 149 |
-
label="Outer Bands",
|
| 150 |
-
method="restyle"
|
| 151 |
-
)
|
| 152 |
-
],
|
| 153 |
-
pad={"r": 10, "t": 10},
|
| 154 |
-
showactive=True,
|
| 155 |
-
x=0.11,
|
| 156 |
-
xanchor="left",
|
| 157 |
-
y=1.1,
|
| 158 |
-
yanchor="top"
|
| 159 |
-
),
|
| 160 |
-
]
|
| 161 |
)
|
| 162 |
|
| 163 |
fig.update_xaxes(
|
|
@@ -173,9 +136,6 @@ def plot_logarithmic_chart(data, ticker):
|
|
| 173 |
)
|
| 174 |
)
|
| 175 |
|
| 176 |
-
# Add config to enable sharing
|
| 177 |
-
fig.show(config={'showLink': True, 'linkText': 'Share this chart'})
|
| 178 |
-
|
| 179 |
return fig
|
| 180 |
|
| 181 |
def plot_candlestick_chart(data, ticker):
|
|
@@ -200,9 +160,7 @@ def plot_candlestick_chart(data, ticker):
|
|
| 200 |
hovermode='x unified',
|
| 201 |
plot_bgcolor='#F5F9F8',
|
| 202 |
paper_bgcolor='#F5F9F8',
|
| 203 |
-
font=dict(family="Quicksand, sans-serif", size=12, color="#313D38")
|
| 204 |
-
modebar_add=["drawline", "drawopenpath", "drawclosedpath", "drawcircle", "drawrect", "eraseshape"],
|
| 205 |
-
modebar=dict(bgcolor='rgba(255, 255, 255, 0.8)')
|
| 206 |
)
|
| 207 |
|
| 208 |
fig.update_xaxes(
|
|
@@ -218,9 +176,6 @@ def plot_candlestick_chart(data, ticker):
|
|
| 218 |
)
|
| 219 |
)
|
| 220 |
|
| 221 |
-
# Add config to enable sharing
|
| 222 |
-
fig.show(config={'showLink': True, 'linkText': 'Share this chart'})
|
| 223 |
-
|
| 224 |
return fig
|
| 225 |
|
| 226 |
# Get the current date
|
|
|
|
| 120 |
hovermode='x unified',
|
| 121 |
plot_bgcolor='#F5F9F8',
|
| 122 |
paper_bgcolor='#F5F9F8',
|
| 123 |
+
font=dict(family="Quicksand, sans-serif", size=12, color="#313D38")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
)
|
| 125 |
|
| 126 |
fig.update_xaxes(
|
|
|
|
| 136 |
)
|
| 137 |
)
|
| 138 |
|
|
|
|
|
|
|
|
|
|
| 139 |
return fig
|
| 140 |
|
| 141 |
def plot_candlestick_chart(data, ticker):
|
|
|
|
| 160 |
hovermode='x unified',
|
| 161 |
plot_bgcolor='#F5F9F8',
|
| 162 |
paper_bgcolor='#F5F9F8',
|
| 163 |
+
font=dict(family="Quicksand, sans-serif", size=12, color="#313D38")
|
|
|
|
|
|
|
| 164 |
)
|
| 165 |
|
| 166 |
fig.update_xaxes(
|
|
|
|
| 176 |
)
|
| 177 |
)
|
| 178 |
|
|
|
|
|
|
|
|
|
|
| 179 |
return fig
|
| 180 |
|
| 181 |
# Get the current date
|