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:'02/13/2023',y:[14.96,14.96,14.81,14.87]},{ x:'02/14/2023',y:[14.92,15.00,14.92,14.97]},{ x:'02/15/2023',y:[14.76,14.84,14.69,14.71]},{ x:'02/16/2023',y:[14.75,14.89,14.75,14.86]},{ x:'02/17/2023',y:[14.78,14.78,14.68,14.74]},{ x:'02/20/2023',y:[14.75,14.81,14.68,14.76]},{ x:'02/21/2023',y:[14.76,14.83,14.75,14.81]},{ x:'02/22/2023',y:[14.68,14.68,14.56,14.61]},{ x:'02/23/2023',y:[14.67,14.88,14.66,14.84]},{ x:'02/24/2023',y:[14.88,14.93,14.70,14.70]},{ x:'03/01/2023',y:[14.69,14.93,14.49,14.93]},{ x:'03/02/2023',y:[14.92,14.92,14.77,14.90]},{ x:'03/03/2023',y:[14.93,15.03,14.91,14.92]},{ x:'03/06/2023',y:[15.02,15.18,15.02,15.12]},{ x:'03/07/2023',y:[15.12,15.28,15.10,15.25]},{ x:'03/08/2023',y:[15.18,15.18,15.08,15.15]},{ x:'03/09/2023',y:[15.17,15.21,15.13,15.13]},{ x:'03/10/2023',y:[15.00,15.01,14.84,14.87]},{ x:'03/13/2023',y:[14.80,14.93,14.73,14.93]},{ x:'03/14/2023',y:[14.77,14.83,14.71,14.75]},{ x:'03/15/2023',y:[14.80,14.96,14.77,14.77]},{ x:'03/16/2023',y:[14.73,14.83,14.70,14.74]},{ x:'03/17/2023',y:[14.84,14.97,14.84,14.97]},{ x:'03/20/2023',y:[14.97,15.00,14.90,14.91]},{ x:'03/21/2023',y:[15.00,15.03,14.95,15.01]},{ x:'03/22/2023',y:[15.11,15.24,15.11,15.24]},{ x:'03/23/2023',y:[15.15,15.38,15.15,15.34]},{ x:'03/24/2023',y:[15.36,15.47,15.36,15.47]},{ x:'03/27/2023',y:[15.45,15.45,15.32,15.33]},{ x:'03/28/2023',y:[15.30,15.30,15.15,15.16]},{ 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]} ] }], 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());