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:[9.07,9.08,8.94,8.97]},{ x:'01/23/2024',y:[8.79,8.97,8.74,8.97]},{ x:'01/24/2024',y:[9.00,9.03,8.71,8.74]},{ x:'01/25/2024',y:[8.88,9.16,8.88,9.16]},{ x:'01/26/2024',y:[9.15,9.16,8.94,8.96]},{ x:'01/29/2024',y:[8.96,8.96,8.52,8.52]},{ x:'01/30/2024',y:[8.48,8.48,8.36,8.37]},{ x:'01/31/2024',y:[8.28,8.28,8.03,8.13]},{ x:'02/01/2024',y:[8.06,8.40,7.99,8.27]},{ x:'02/02/2024',y:[8.26,8.29,8.01,8.02]},{ x:'02/05/2024',y:[8.00,8.02,7.71,7.97]},{ x:'02/15/2024',y:[8.28,8.82,8.15,8.80]},{ x:'02/16/2024',y:[8.89,8.91,8.80,8.90]},{ x:'02/19/2024',y:[8.91,9.17,8.90,9.04]},{ x:'02/20/2024',y:[9.20,9.25,9.11,9.18]},{ x:'02/21/2024',y:[9.21,9.38,9.14,9.32]},{ x:'02/22/2024',y:[9.25,9.40,9.19,9.34]},{ x:'02/23/2024',y:[9.37,9.50,9.34,9.35]},{ x:'02/26/2024',y:[9.40,9.51,9.37,9.50]},{ x:'02/27/2024',y:[9.45,9.89,9.40,9.82]},{ x:'02/29/2024',y:[9.63,9.99,9.54,9.81]},{ x:'03/01/2024',y:[9.88,10.30,9.88,10.19]},{ x:'03/04/2024',y:[10.26,10.58,10.26,10.49]},{ x:'03/05/2024',y:[10.48,10.67,10.33,10.57]},{ x:'03/06/2024',y:[10.48,10.48,10.24,10.42]},{ x:'03/07/2024',y:[10.35,10.53,10.20,10.27]},{ x:'03/08/2024',y:[10.25,10.43,10.18,10.37]},{ x:'03/11/2024',y:[10.49,10.53,10.34,10.44]},{ x:'03/12/2024',y:[10.59,10.73,10.49,10.54]},{ x:'03/13/2024',y:[10.54,10.71,10.54,10.68]},{ x:'03/14/2024',y:[10.63,10.63,10.41,10.43]},{ x:'03/15/2024',y:[10.40,10.49,10.38,10.40]},{ x:'03/18/2024',y:[10.62,10.95,10.59,10.83]},{ x:'03/19/2024',y:[10.94,11.12,10.88,11.09]},{ x:'03/20/2024',y:[11.07,11.15,10.95,10.97]},{ x:'03/21/2024',y:[10.97,11.08,10.95,10.97]},{ x:'03/22/2024',y:[10.95,11.01,10.76,10.90]},{ x:'03/25/2024',y:[10.98,10.98,10.83,10.84]},{ x:'03/26/2024',y:[10.66,10.75,10.60,10.60]},{ x:'03/27/2024',y:[10.60,10.60,10.25,10.25]},{ x:'03/28/2024',y:[10.20,10.52,10.15,10.43]},{ x:'03/29/2024',y:[10.44,10.44,10.28,10.36]},{ x:'04/01/2024',y:[10.36,10.67,10.36,10.62]},{ x:'04/02/2024',y:[10.57,10.69,10.48,10.50]},{ x:'04/03/2024',y:[10.50,10.50,10.32,10.37]},{ x:'04/08/2024',y:[10.36,10.39,10.29,10.36]},{ x:'04/09/2024',y:[10.32,10.38,10.23,10.27]},{ x:'04/10/2024',y:[10.27,10.29,10.00,10.00]},{ x:'04/11/2024',y:[9.91,10.12,9.91,10.12]},{ x:'04/12/2024',y:[10.05,10.34,10.05,10.30]},{ x:'04/15/2024',y:[10.16,10.35,10.13,10.27]},{ x:'04/16/2024',y:[10.25,10.25,10.02,10.11]},{ x:'04/17/2024',y:[10.03,10.33,10.00,10.26]},{ x:'04/18/2024',y:[10.36,10.42,10.17,10.42]},{ x:'04/19/2024',y:[10.31,10.32,9.99,10.12]},{ x:'04/22/2024',y:[10.09,10.14,9.74,9.97]},{ x:'04/23/2024',y:[10.00,10.05,9.92,9.94]},{ x:'04/24/2024',y:[10.02,10.20,9.96,10.18]},{ x:'04/25/2024',y:[10.24,10.33,10.20,10.22]},{ x:'04/26/2024',y:[10.20,10.70,10.20,10.66]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00877 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());