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/29/2024',y:[21.95,22.28,21.95,22.26]},{ x:'04/30/2024',y:[22.27,22.30,22.19,22.26]},{ x:'05/02/2024',y:[22.25,22.36,22.13,22.22]},{ x:'05/03/2024',y:[22.50,22.50,22.29,22.30]},{ x:'05/06/2024',y:[22.58,22.68,22.47,22.63]},{ x:'05/07/2024',y:[22.79,22.82,22.59,22.76]},{ x:'05/08/2024',y:[22.76,22.90,22.76,22.89]},{ x:'05/09/2024',y:[22.91,22.93,22.81,22.83]},{ x:'05/10/2024',y:[22.89,23.15,22.86,23.12]},{ x:'05/13/2024',y:[23.21,23.25,23.11,23.16]},{ x:'05/14/2024',y:[23.21,23.31,23.17,23.30]},{ x:'05/15/2024',y:[23.42,23.61,23.33,23.40]},{ x:'05/16/2024',y:[23.59,23.66,23.54,23.57]},{ x:'05/17/2024',y:[23.03,23.09,22.98,22.99]},{ x:'05/20/2024',y:[23.00,23.05,22.88,23.02]},{ x:'05/21/2024',y:[22.98,23.00,22.75,22.87]},{ x:'05/22/2024',y:[22.89,23.20,22.89,23.20]},{ x:'05/23/2024',y:[23.20,23.21,23.03,23.18]},{ x:'05/24/2024',y:[23.12,23.18,23.00,23.16]},{ x:'06/11/2024',y:[22.97,23.09,22.92,22.97]},{ x:'06/12/2024',y:[22.98,23.06,22.97,23.03]},{ x:'06/13/2024',y:[23.15,23.39,23.14,23.31]},{ x:'06/14/2024',y:[23.31,23.35,23.25,23.33]},{ x:'06/17/2024',y:[23.33,23.40,23.27,23.37]},{ x:'06/18/2024',y:[23.38,23.53,23.38,23.51]},{ x:'06/19/2024',y:[23.55,23.88,23.55,23.83]},{ x:'06/20/2024',y:[23.83,24.00,23.83,23.98]},{ x:'06/21/2024',y:[23.94,23.94,23.76,23.85]},{ x:'06/24/2024',y:[23.83,23.83,23.60,23.69]},{ x:'06/25/2024',y:[23.65,23.65,23.41,23.63]},{ x:'06/26/2024',y:[23.63,23.73,23.50,23.60]},{ x:'06/27/2024',y:[23.44,23.53,23.35,23.53]},{ x:'06/28/2024',y:[23.53,23.74,23.53,23.69]},{ x:'07/01/2024',y:[23.69,23.94,23.69,23.88]},{ x:'07/02/2024',y:[23.84,23.90,23.72,23.82]},{ x:'07/03/2024',y:[23.95,24.00,23.86,23.96]},{ x:'07/04/2024',y:[24.00,24.15,24.00,24.10]},{ x:'07/05/2024',y:[24.14,24.25,24.14,24.20]},{ x:'07/12/2024',y:[24.54,24.54,24.36,24.40]},{ x:'07/15/2024',y:[24.50,24.53,24.30,24.39]},{ x:'07/16/2024',y:[24.40,24.45,24.32,24.34]},{ x:'07/17/2024',y:[24.35,24.37,24.20,24.20]},{ x:'07/18/2024',y:[24.07,24.08,23.83,23.97]},{ x:'07/19/2024',y:[23.89,23.89,23.51,23.60]},{ x:'07/22/2024',y:[23.57,23.57,23.00,23.20]},{ x:'07/23/2024',y:[23.40,23.52,23.40,23.46]},{ x:'07/26/2024',y:[23.04,23.15,22.90,23.10]},{ x:'07/29/2024',y:[23.26,23.44,22.97,22.99]},{ x:'07/30/2024',y:[22.93,22.95,22.60,22.92]},{ x:'07/31/2024',y:[22.88,23.08,22.80,22.97]},{ x:'08/01/2024',y:[23.39,23.40,23.21,23.36]},{ x:'08/02/2024',y:[22.93,23.05,22.85,22.87]},{ x:'08/05/2024',y:[22.50,22.54,21.18,21.32]},{ x:'08/06/2024',y:[21.84,22.15,21.12,21.86]},{ x:'08/07/2024',y:[22.00,22.43,21.92,22.37]},{ x:'08/08/2024',y:[22.06,22.29,21.94,22.10]},{ x:'08/09/2024',y:[22.55,22.77,22.45,22.57]},{ x:'08/12/2024',y:[22.74,23.03,22.74,22.92]},{ x:'08/13/2024',y:[23.08,23.08,22.92,22.99]},{ x:'08/14/2024',y:[23.19,23.32,23.13,23.26]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00878 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());