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:[24.75,24.89,24.70,24.82]},{ x:'04/30/2024',y:[24.87,24.87,24.69,24.72]},{ x:'05/02/2024',y:[24.70,24.70,24.53,24.57]},{ x:'05/03/2024',y:[24.86,24.86,24.57,24.57]},{ x:'05/06/2024',y:[24.80,24.85,24.70,24.73]},{ x:'05/07/2024',y:[24.81,24.89,24.68,24.77]},{ x:'05/08/2024',y:[24.73,24.80,24.62,24.73]},{ x:'05/09/2024',y:[24.74,24.86,24.73,24.74]},{ x:'05/10/2024',y:[24.77,24.90,24.74,24.80]},{ x:'05/13/2024',y:[24.97,25.16,24.82,24.88]},{ x:'05/14/2024',y:[24.92,25.16,24.90,25.05]},{ x:'05/15/2024',y:[25.06,25.10,24.90,24.92]},{ x:'05/16/2024',y:[25.03,25.28,25.03,25.28]},{ x:'05/17/2024',y:[25.35,25.35,25.12,25.20]},{ x:'05/20/2024',y:[25.30,25.42,25.13,25.34]},{ x:'05/21/2024',y:[25.34,25.38,25.21,25.25]},{ x:'05/22/2024',y:[25.30,25.49,25.29,25.47]},{ x:'05/23/2024',y:[25.50,25.59,25.35,25.49]},{ x:'05/24/2024',y:[25.41,25.59,25.33,25.54]},{ x:'06/11/2024',y:[26.10,26.25,25.96,25.98]},{ x:'06/12/2024',y:[25.99,26.01,25.88,26.01]},{ x:'06/13/2024',y:[26.19,26.44,26.17,26.23]},{ x:'06/14/2024',y:[26.23,26.27,26.20,26.27]},{ x:'06/17/2024',y:[26.30,26.45,26.25,26.40]},{ x:'06/18/2024',y:[26.50,26.70,26.47,26.70]},{ x:'06/19/2024',y:[26.85,27.00,26.84,26.98]},{ x:'06/20/2024',y:[27.01,27.09,27.01,27.08]},{ x:'06/21/2024',y:[27.00,27.00,26.82,26.94]},{ x:'06/24/2024',y:[26.20,26.20,25.88,25.90]},{ x:'06/25/2024',y:[25.85,25.87,25.56,25.72]},{ x:'06/26/2024',y:[25.80,25.95,25.76,25.89]},{ x:'06/27/2024',y:[25.72,25.93,25.67,25.80]},{ x:'06/28/2024',y:[25.83,25.95,25.80,25.85]},{ x:'07/01/2024',y:[25.86,26.27,25.86,26.14]},{ x:'07/02/2024',y:[26.14,26.21,25.92,26.00]},{ x:'07/03/2024',y:[26.13,26.17,26.00,26.02]},{ x:'07/04/2024',y:[26.12,26.17,26.02,26.03]},{ x:'07/05/2024',y:[26.04,26.14,26.03,26.04]},{ x:'07/12/2024',y:[25.96,25.98,25.75,25.79]},{ x:'07/15/2024',y:[25.87,25.90,25.74,25.78]},{ x:'07/16/2024',y:[25.79,25.86,25.70,25.70]},{ x:'07/17/2024',y:[25.75,25.77,25.59,25.60]},{ x:'07/18/2024',y:[25.44,25.44,25.15,25.39]},{ x:'07/19/2024',y:[25.29,25.30,24.98,25.00]},{ x:'07/22/2024',y:[24.97,24.97,24.20,24.44]},{ x:'07/23/2024',y:[24.70,24.80,24.66,24.78]},{ x:'07/26/2024',y:[24.25,24.48,24.01,24.48]},{ x:'07/29/2024',y:[24.65,24.85,24.28,24.30]},{ x:'07/30/2024',y:[24.30,24.38,24.00,24.37]},{ x:'07/31/2024',y:[24.29,24.40,24.13,24.36]},{ x:'08/01/2024',y:[24.70,24.78,24.53,24.64]},{ x:'08/02/2024',y:[24.26,24.30,24.00,24.05]},{ x:'08/05/2024',y:[23.50,23.55,22.10,22.26]},{ x:'08/06/2024',y:[22.50,23.15,22.10,22.83]},{ x:'08/07/2024',y:[23.00,23.63,22.84,23.57]},{ x:'08/08/2024',y:[23.31,23.49,23.14,23.27]},{ x:'08/09/2024',y:[23.75,23.90,23.64,23.67]},{ x:'08/12/2024',y:[23.82,24.20,23.82,24.13]},{ x:'08/13/2024',y:[24.30,24.30,24.09,24.10]},{ x:'08/14/2024',y:[24.33,24.47,24.31,24.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00919 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());