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:'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]},{ x:'06/21/2024',y:[45.44,45.44,45.42,45.42]},{ x:'06/24/2024',y:[45.44,45.50,45.44,45.50]},{ x:'06/25/2024',y:[45.55,45.60,45.55,45.58]},{ x:'06/26/2024',y:[45.60,45.67,45.60,45.66]},{ x:'06/27/2024',y:[45.76,45.76,45.75,45.75]},{ x:'06/28/2024',y:[45.80,45.80,45.62,45.68]},{ x:'07/01/2024',y:[45.65,45.69,45.65,45.69]},{ x:'07/02/2024',y:[45.86,45.86,45.79,45.83]},{ x:'07/03/2024',y:[45.83,45.97,45.83,45.90]},{ x:'07/04/2024',y:[45.90,45.90,45.75,45.78]},{ x:'07/05/2024',y:[45.66,45.70,45.59,45.68]},{ x:'07/12/2024',y:[45.61,45.75,45.61,45.74]},{ x:'07/15/2024',y:[45.91,45.91,45.85,45.90]},{ x:'07/16/2024',y:[45.94,45.94,45.93,45.93]},{ x:'07/17/2024',y:[45.96,45.96,45.94,45.94]},{ x:'07/18/2024',y:[45.93,45.93,45.85,45.90]},{ x:'07/19/2024',y:[46.04,46.19,46.04,46.18]},{ x:'07/22/2024',y:[46.18,46.37,46.18,46.36]},{ x:'07/23/2024',y:[46.25,46.35,46.24,46.35]},{ x:'07/26/2024',y:[46.27,46.33,46.22,46.32]},{ x:'07/29/2024',y:[46.32,46.41,46.32,46.40]},{ x:'07/30/2024',y:[46.46,46.46,46.40,46.40]},{ x:'07/31/2024',y:[46.39,46.45,46.39,46.42]},{ x:'08/01/2024',y:[46.21,46.25,46.12,46.23]},{ x:'08/02/2024',y:[46.35,46.41,46.31,46.41]},{ x:'08/05/2024',y:[46.31,46.35,46.20,46.21]},{ x:'08/06/2024',y:[46.17,46.17,45.98,46.15]},{ x:'08/07/2024',y:[46.18,46.20,46.15,46.20]},{ x:'08/08/2024',y:[46.16,46.16,46.03,46.03]},{ x:'08/09/2024',y:[45.82,45.88,45.71,45.76]},{ x:'08/12/2024',y:[45.70,45.76,45.70,45.75]},{ x:'08/13/2024',y:[45.75,45.80,45.75,45.80]} ] }], 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());