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:'03/11/2024',y:[43.55,43.61,43.55,43.61]},{ x:'03/12/2024',y:[43.64,43.69,43.62,43.62]},{ x:'03/13/2024',y:[43.56,43.64,43.56,43.64]},{ x:'03/14/2024',y:[43.71,43.73,43.71,43.73]},{ x:'03/15/2024',y:[43.87,43.90,43.85,43.89]},{ x:'03/18/2024',y:[43.89,43.93,43.86,43.90]},{ x:'03/19/2024',y:[44.05,44.10,44.05,44.10]},{ x:'03/20/2024',y:[44.26,44.26,44.20,44.23]},{ x:'03/21/2024',y:[44.11,44.19,44.11,44.17]},{ x:'03/22/2024',y:[44.31,44.48,44.31,44.43]},{ x:'03/25/2024',y:[44.42,44.42,44.13,44.22]},{ x:'03/26/2024',y:[44.20,44.37,44.20,44.37]},{ x:'03/27/2024',y:[44.41,44.50,44.41,44.48]},{ x:'03/28/2024',y:[44.48,44.48,44.43,44.43]},{ x:'03/29/2024',y:[44.42,44.52,44.42,44.51]},{ x:'04/01/2024',y:[44.49,44.49,44.46,44.46]},{ x:'04/02/2024',y:[44.57,44.68,44.57,44.63]},{ x:'04/03/2024',y:[44.63,44.63,44.55,44.57]},{ x:'04/08/2024',y:[44.72,44.72,44.67,44.67]},{ x:'04/09/2024',y:[44.67,44.73,44.67,44.69]},{ x:'04/10/2024',y:[44.58,44.58,44.46,44.54]},{ x:'04/11/2024',y:[44.67,44.85,44.67,44.84]},{ x:'04/12/2024',y:[44.92,44.99,44.91,44.92]},{ x:'04/15/2024',y:[45.00,45.13,45.00,45.06]},{ x:'04/16/2024',y:[45.18,45.34,45.18,45.32]},{ x:'04/17/2024',y:[45.27,45.33,45.26,45.28]},{ x:'04/18/2024',y:[45.19,45.27,45.04,45.06]},{ x:'04/19/2024',y:[45.16,45.50,45.16,45.41]},{ x:'04/22/2024',y:[45.40,45.44,45.31,45.43]},{ x:'04/23/2024',y:[45.53,45.53,45.47,45.48]},{ x:'04/24/2024',y:[45.31,45.34,45.25,45.32]},{ x:'04/25/2024',y:[45.45,45.49,45.42,45.42]},{ x:'04/26/2024',y:[45.42,45.88,45.41,45.42]},{ x:'04/29/2024',y:[45.44,45.44,45.42,45.42]},{ x:'04/30/2024',y:[45.37,45.38,45.27,45.36]},{ x:'05/02/2024',y:[45.36,45.41,45.36,45.39]},{ x:'05/03/2024',y:[45.15,45.20,45.14,45.14]},{ x:'05/06/2024',y:[45.05,45.11,45.05,45.10]},{ x:'05/07/2024',y:[45.15,45.24,45.11,45.23]},{ x:'05/08/2024',y:[45.26,45.30,45.25,45.25]},{ x:'05/09/2024',y:[45.22,45.30,45.22,45.28]},{ x:'05/10/2024',y:[45.28,45.36,45.28,45.36]},{ x:'05/13/2024',y:[45.34,45.39,45.34,45.36]},{ x:'05/14/2024',y:[45.34,45.34,45.31,45.31]},{ x:'05/15/2024',y:[45.17,45.18,45.05,45.05]},{ x:'05/16/2024',y:[44.84,44.88,44.77,44.82]},{ x:'05/17/2024',y:[44.93,45.08,44.93,45.06]},{ x:'05/20/2024',y:[45.14,45.14,45.12,45.13]},{ x:'05/21/2024',y:[45.20,45.26,45.19,45.20]},{ x:'05/22/2024',y:[45.20,45.20,45.12,45.18]},{ x:'05/23/2024',y:[45.12,45.19,45.07,45.07]},{ x:'05/24/2024',y:[45.14,45.16,45.10,45.10]},{ x:'06/11/2024',y:[45.22,45.46,45.22,45.44]},{ x:'06/12/2024',y:[45.44,45.44,45.37,45.41]},{ x:'06/13/2024',y:[45.31,45.31,45.28,45.31]},{ x:'06/14/2024',y:[45.42,45.42,45.40,45.40]},{ x:'06/17/2024',y:[45.44,45.45,45.36,45.39]},{ x:'06/18/2024',y:[45.48,45.48,45.42,45.47]},{ x:'06/19/2024',y:[45.46,45.46,45.43,45.44]},{ x:'06/20/2024',y:[45.44,45.44,45.41,45.41]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00865b 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());