function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'01/22/2024',y:[526.00,536.00,524.00,534.00]},{ x:'01/23/2024',y:[540.00,540.00,534.00,538.00]},{ x:'01/24/2024',y:[546.00,546.00,536.00,541.00]},{ x:'01/25/2024',y:[541.00,552.00,541.00,552.00]},{ x:'01/26/2024',y:[551.00,553.00,546.00,550.00]},{ x:'01/29/2024',y:[547.00,550.00,545.00,548.00]},{ x:'01/30/2024',y:[555.00,555.00,545.00,547.00]},{ x:'01/31/2024',y:[542.00,551.00,541.00,547.00]},{ x:'02/01/2024',y:[555.00,559.00,549.00,555.00]},{ x:'02/02/2024',y:[555.00,564.00,551.00,560.00]},{ x:'02/05/2024',y:[552.00,556.00,551.00,556.00]},{ x:'02/15/2024',y:[557.00,558.00,534.00,537.00]},{ x:'02/16/2024',y:[541.00,542.00,533.00,539.00]},{ x:'02/19/2024',y:[545.00,545.00,513.00,521.00]},{ x:'02/20/2024',y:[520.00,550.00,520.00,544.00]},{ x:'02/21/2024',y:[543.00,552.00,540.00,548.00]},{ x:'02/22/2024',y:[555.00,555.00,544.00,545.00]},{ x:'02/23/2024',y:[544.00,545.00,530.00,534.00]},{ x:'02/26/2024',y:[532.00,537.00,526.00,530.00]},{ x:'02/27/2024',y:[534.00,540.00,531.00,536.00]},{ x:'02/29/2024',y:[532.00,541.00,530.00,540.00]},{ x:'03/01/2024',y:[547.00,568.00,545.00,564.00]},{ x:'03/04/2024',y:[560.00,560.00,552.00,552.00]},{ x:'03/05/2024',y:[556.00,556.00,546.00,546.00]},{ x:'03/06/2024',y:[548.00,552.00,546.00,546.00]},{ x:'03/07/2024',y:[542.00,547.00,533.00,542.00]},{ x:'03/08/2024',y:[565.00,580.00,560.00,568.00]},{ x:'03/11/2024',y:[560.00,570.00,558.00,565.00]},{ x:'03/12/2024',y:[569.00,570.00,561.00,565.00]},{ x:'03/13/2024',y:[560.00,568.00,559.00,560.00]},{ x:'03/14/2024',y:[558.00,579.00,558.00,579.00]},{ x:'03/15/2024',y:[579.00,580.00,570.00,574.00]},{ x:'03/18/2024',y:[575.00,575.00,567.00,569.00]},{ x:'03/19/2024',y:[564.00,565.00,552.00,552.00]},{ x:'03/20/2024',y:[550.00,562.00,550.00,552.00]},{ x:'03/21/2024',y:[554.00,556.00,546.00,549.00]},{ x:'03/22/2024',y:[540.00,545.00,531.00,541.00]},{ x:'03/25/2024',y:[535.00,549.00,535.00,541.00]},{ x:'03/26/2024',y:[542.00,549.00,542.00,545.00]},{ x:'03/27/2024',y:[545.00,551.00,544.00,551.00]},{ x:'03/28/2024',y:[547.00,554.00,547.00,547.00]},{ x:'03/29/2024',y:[547.00,558.00,547.00,553.00]},{ x:'04/01/2024',y:[557.00,558.00,541.00,543.00]},{ x:'04/02/2024',y:[550.00,550.00,543.00,549.00]},{ x:'04/03/2024',y:[551.00,551.00,544.00,546.00]},{ x:'04/08/2024',y:[546.00,550.00,543.00,545.00]},{ x:'04/09/2024',y:[544.00,548.00,540.00,545.00]},{ x:'04/10/2024',y:[545.00,555.00,545.00,554.00]},{ x:'04/11/2024',y:[541.00,550.00,538.00,538.00]},{ x:'04/12/2024',y:[536.00,542.00,527.00,527.00]},{ x:'04/15/2024',y:[526.00,527.00,513.00,513.00]},{ x:'04/16/2024',y:[512.00,512.00,503.00,505.00]},{ x:'04/17/2024',y:[505.00,506.00,487.00,495.00]},{ x:'04/18/2024',y:[495.50,502.00,485.00,500.00]},{ x:'04/19/2024',y:[491.00,499.50,486.00,487.00]},{ x:'04/22/2024',y:[494.50,505.00,487.50,498.00]},{ x:'04/23/2024',y:[503.00,508.00,499.00,505.00]},{ x:'04/24/2024',y:[511.00,519.00,506.00,511.00]},{ x:'04/25/2024',y:[510.00,514.00,503.00,511.00]},{ x:'04/26/2024',y:[512.00,518.00,509.00,512.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1476 Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());