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/29/2023',y:[15.16,15.25,15.09,15.17]},{ x:'03/30/2023',y:[15.21,15.35,15.21,15.32]},{ x:'03/31/2023',y:[15.33,15.46,15.33,15.38]},{ x:'04/06/2023',y:[15.35,15.35,15.18,15.24]},{ x:'04/07/2023',y:[15.27,15.33,15.22,15.24]},{ x:'04/10/2023',y:[15.24,15.30,15.21,15.24]},{ x:'04/11/2023',y:[15.24,15.31,15.19,15.25]},{ x:'04/12/2023',y:[15.25,15.28,15.20,15.23]},{ x:'04/13/2023',y:[15.21,15.21,15.08,15.10]},{ x:'04/14/2023',y:[15.12,15.26,15.12,15.22]},{ x:'04/17/2023',y:[15.22,15.22,15.09,15.15]},{ x:'04/18/2023',y:[15.16,15.17,15.06,15.09]},{ x:'04/19/2023',y:[15.09,15.12,14.99,15.01]},{ x:'04/20/2023',y:[15.00,15.05,14.94,14.98]},{ x:'04/21/2023',y:[14.99,15.03,14.86,14.88]},{ x:'04/24/2023',y:[14.82,14.90,14.78,14.86]},{ x:'04/25/2023',y:[14.86,14.88,14.55,14.57]},{ x:'04/26/2023',y:[14.55,14.55,14.44,14.52]},{ x:'04/27/2023',y:[14.52,14.67,14.50,14.60]},{ x:'04/28/2023',y:[14.64,14.81,14.64,14.79]},{ x:'05/02/2023',y:[14.79,14.90,14.76,14.85]},{ x:'05/03/2023',y:[14.80,14.84,14.74,14.83]},{ x:'05/04/2023',y:[14.83,14.86,14.77,14.86]},{ x:'05/05/2023',y:[14.86,14.93,14.83,14.88]},{ x:'05/08/2023',y:[14.95,15.06,14.95,15.00]},{ x:'05/09/2023',y:[15.00,15.02,14.93,15.01]},{ x:'05/10/2023',y:[14.98,14.99,14.85,14.88]},{ x:'05/11/2023',y:[14.88,14.93,14.79,14.79]},{ x:'05/12/2023',y:[14.76,14.83,14.66,14.80]},{ x:'05/15/2023',y:[14.79,14.79,14.70,14.74]},{ x:'05/16/2023',y:[14.80,14.93,14.80,14.89]},{ x:'05/17/2023',y:[14.88,15.08,14.88,15.05]},{ x:'05/18/2023',y:[15.10,15.25,15.10,15.20]},{ x:'05/19/2023',y:[15.25,15.30,15.21,15.28]},{ x:'05/22/2023',y:[15.28,15.31,15.21,15.24]},{ x:'05/23/2023',y:[15.23,15.32,15.20,15.27]},{ x:'05/24/2023',y:[15.24,15.26,15.16,15.25]},{ x:'05/25/2023',y:[15.35,15.50,15.35,15.50]},{ x:'05/26/2023',y:[15.79,15.93,15.79,15.91]},{ x:'05/29/2023',y:[16.05,16.22,16.05,16.12]},{ x:'05/30/2023',y:[16.16,16.23,16.11,16.18]},{ x:'05/31/2023',y:[16.17,16.20,15.99,16.13]},{ x:'06/01/2023',y:[16.01,16.06,15.95,16.01]},{ x:'06/02/2023',y:[16.05,16.26,16.05,16.18]},{ x:'06/05/2023',y:[16.19,16.21,16.12,16.13]},{ x:'06/06/2023',y:[16.14,16.21,16.09,16.15]},{ x:'06/07/2023',y:[16.15,16.39,16.15,16.38]},{ x:'06/08/2023',y:[16.34,16.36,16.13,16.17]},{ x:'06/09/2023',y:[16.20,16.39,16.20,16.37]},{ x:'06/12/2023',y:[16.38,16.58,16.38,16.51]},{ x:'06/13/2023',y:[16.65,16.96,16.65,16.92]},{ x:'06/14/2023',y:[16.91,16.98,16.87,16.97]},{ x:'06/15/2023',y:[16.98,17.14,16.98,17.11]},{ x:'06/16/2023',y:[17.11,17.12,16.97,17.05]},{ x:'06/19/2023',y:[17.03,17.13,16.97,17.11]},{ x:'06/20/2023',y:[17.08,17.10,16.90,16.96]},{ x:'06/21/2023',y:[16.95,17.03,16.90,16.98]},{ x:'06/26/2023',y:[16.76,16.88,16.74,16.82]},{ x:'06/27/2023',y:[16.77,16.83,16.66,16.67]},{ x:'06/28/2023',y:[16.75,16.83,16.71,16.73]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00881 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());