|
|
@ -1,11 +1,10 @@ |
|
|
|
// Initialize empty stock list
|
|
|
|
// Initialize empty stock list
|
|
|
|
let stockList = ['2330.TW']; |
|
|
|
let stockList = ['2330.TW']; |
|
|
|
let currentList = []; |
|
|
|
let currentList = []; |
|
|
|
const layout={'autosize': true, 'legend': {'title': {'text': ''}, |
|
|
|
const layout={'autosize': true, 'title': {'text': 'Assets'},
|
|
|
|
'tracegroupgap': 0}, 'title': {'text': 'Assets'}, 'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0], |
|
|
|
'xaxis': {'anchor': 'y', 'domain': [0.0, 1.0], 'rangeslider': {'visible': true}},
|
|
|
|
'title': {'text': 'Date'}, 'rangeslider': {'visible': true}},
|
|
|
|
'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0]}, |
|
|
|
'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0], 'title': {'text': 'Price'}}, |
|
|
|
'legend': {'yanchor': 'top', 'y': 1.3, 'xanchor': 'left', 'x': 0.01}, 'margin': {'l': 25, 'r': 5, 't': 10, 'b': 5}, |
|
|
|
'legend': {'yanchor': 'top', 'y': 1.3, 'xanchor': 'left', 'x': 0.01}, 'margin': {'l': 40, 'r': 40, 't': 40, 'b': 40}, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// Cache frequently-used DOM elements
|
|
|
|
// Cache frequently-used DOM elements
|
|
|
|
const $stockForm = $('#stock-form'); |
|
|
|
const $stockForm = $('#stock-form'); |
|
|
|