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/20/2024',y:[10.41,10.44,10.32,10.41]},{ x:'03/21/2024',y:[10.44,10.55,10.44,10.50]},{ x:'03/22/2024',y:[10.53,10.54,10.38,10.43]},{ x:'03/25/2024',y:[10.39,10.50,10.38,10.47]},{ x:'03/26/2024',y:[10.45,10.45,10.33,10.36]},{ x:'03/27/2024',y:[10.35,10.40,10.30,10.30]},{ x:'03/28/2024',y:[10.29,10.30,10.12,10.23]},{ x:'03/29/2024',y:[10.23,10.23,10.20,10.21]},{ x:'04/01/2024',y:[10.21,10.30,10.20,10.27]},{ x:'04/02/2024',y:[10.30,10.38,10.29,10.30]},{ x:'04/03/2024',y:[10.30,10.35,10.28,10.30]},{ x:'04/08/2024',y:[10.23,10.36,10.16,10.30]},{ x:'04/09/2024',y:[10.30,10.39,10.30,10.33]},{ x:'04/10/2024',y:[10.33,10.40,10.33,10.37]},{ x:'04/11/2024',y:[10.33,10.45,10.27,10.45]},{ x:'04/12/2024',y:[10.45,10.47,10.33,10.33]},{ x:'04/15/2024',y:[10.24,10.36,10.20,10.31]},{ x:'04/16/2024',y:[10.31,10.33,10.20,10.24]},{ x:'04/17/2024',y:[10.24,10.29,10.22,10.26]},{ x:'04/18/2024',y:[10.29,10.40,10.26,10.31]},{ x:'04/19/2024',y:[10.31,10.35,10.26,10.33]},{ x:'04/22/2024',y:[10.34,10.50,10.34,10.43]},{ x:'04/23/2024',y:[10.44,10.48,10.40,10.44]},{ x:'04/24/2024',y:[10.44,10.50,10.41,10.48]},{ x:'04/25/2024',y:[10.48,10.71,10.46,10.64]},{ x:'04/26/2024',y:[10.68,10.77,10.68,10.76]},{ x:'04/29/2024',y:[10.78,11.01,10.78,10.94]},{ x:'04/30/2024',y:[10.94,10.98,10.85,10.85]},{ x:'05/02/2024',y:[10.85,11.00,10.81,10.96]},{ x:'05/03/2024',y:[11.00,11.12,10.98,11.01]},{ x:'05/06/2024',y:[11.09,11.20,11.05,11.16]},{ x:'05/07/2024',y:[11.16,11.32,11.16,11.28]},{ x:'05/08/2024',y:[11.28,11.40,11.26,11.26]},{ x:'05/09/2024',y:[11.26,11.45,11.19,11.41]},{ x:'05/10/2024',y:[11.47,11.87,11.47,11.87]},{ x:'05/13/2024',y:[11.90,12.04,11.78,12.03]},{ x:'05/14/2024',y:[12.03,12.10,11.92,11.95]},{ x:'05/15/2024',y:[11.96,11.98,11.79,11.82]},{ x:'05/16/2024',y:[11.85,12.10,11.85,12.10]},{ x:'05/17/2024',y:[12.12,12.25,12.10,12.18]},{ x:'05/20/2024',y:[12.26,12.43,12.25,12.40]},{ x:'05/21/2024',y:[12.42,12.48,12.29,12.32]},{ x:'05/22/2024',y:[12.33,12.51,12.27,12.45]},{ x:'05/23/2024',y:[12.40,12.40,12.07,12.09]},{ x:'05/24/2024',y:[12.00,12.16,11.92,12.02]},{ x:'06/11/2024',y:[12.06,12.06,11.74,11.76]},{ x:'06/12/2024',y:[11.75,11.76,11.58,11.64]},{ x:'06/13/2024',y:[11.65,11.75,11.65,11.69]},{ x:'06/14/2024',y:[11.69,11.88,11.66,11.83]},{ x:'06/17/2024',y:[11.84,11.84,11.68,11.74]},{ x:'06/18/2024',y:[11.78,11.84,11.71,11.77]},{ x:'06/19/2024',y:[11.77,11.99,11.77,11.95]},{ x:'06/20/2024',y:[12.00,12.08,11.99,12.00]},{ x:'06/21/2024',y:[12.00,12.00,11.82,11.84]},{ x:'06/24/2024',y:[11.83,11.83,11.70,11.77]},{ x:'06/25/2024',y:[11.80,11.99,11.80,11.94]},{ x:'06/26/2024',y:[11.90,11.91,11.80,11.85]},{ x:'06/27/2024',y:[11.91,11.91,11.70,11.70]},{ x:'06/28/2024',y:[11.69,11.82,11.64,11.80]},{ x:'07/01/2024',y:[11.80,11.80,11.74,11.76]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00882 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());