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/06/2023',y:[14.85,14.85,14.67,14.67]},{ x:'02/07/2023',y:[14.64,14.72,14.63,14.66]},{ x:'02/08/2023',y:[14.79,14.97,14.79,14.94]},{ x:'02/09/2023',y:[14.92,14.96,14.90,14.95]},{ x:'02/10/2023',y:[14.94,14.96,14.87,14.89]},{ x:'02/13/2023',y:[14.82,14.82,14.71,14.77]},{ x:'02/14/2023',y:[14.86,14.95,14.85,14.94]},{ x:'02/15/2023',y:[14.80,14.83,14.67,14.70]},{ x:'02/16/2023',y:[14.72,14.89,14.72,14.84]},{ x:'02/17/2023',y:[14.76,14.76,14.68,14.71]},{ x:'02/20/2023',y:[14.71,14.84,14.68,14.81]},{ x:'02/21/2023',y:[14.81,14.92,14.77,14.90]},{ x:'02/22/2023',y:[14.75,14.77,14.69,14.73]},{ x:'02/23/2023',y:[14.75,15.00,14.75,14.95]},{ x:'02/24/2023',y:[14.99,15.07,14.85,14.86]},{ x:'03/01/2023',y:[14.80,14.93,14.66,14.93]},{ x:'03/02/2023',y:[14.87,14.97,14.82,14.91]},{ x:'03/03/2023',y:[14.99,15.06,14.96,14.99]},{ x:'03/06/2023',y:[15.10,15.22,15.10,15.18]},{ x:'03/07/2023',y:[15.19,15.30,15.15,15.25]},{ x:'03/08/2023',y:[15.14,15.18,15.09,15.14]},{ x:'03/09/2023',y:[15.16,15.21,15.13,15.14]},{ x:'03/10/2023',y:[15.01,15.01,14.86,14.87]},{ x:'03/13/2023',y:[14.84,14.90,14.72,14.90]},{ x:'03/14/2023',y:[14.70,14.73,14.60,14.65]},{ x:'03/15/2023',y:[14.77,14.87,14.66,14.67]},{ x:'03/16/2023',y:[14.62,14.63,14.48,14.54]},{ x:'03/17/2023',y:[14.73,14.75,14.66,14.75]},{ x:'03/20/2023',y:[14.81,14.81,14.70,14.73]},{ x:'03/21/2023',y:[14.80,14.82,14.74,14.78]},{ x:'03/22/2023',y:[14.88,15.02,14.88,15.01]},{ x:'03/23/2023',y:[15.01,15.12,14.96,15.08]},{ x:'03/24/2023',y:[15.18,15.18,15.09,15.16]},{ x:'03/27/2023',y:[15.16,15.16,15.05,15.09]},{ x:'03/28/2023',y:[15.07,15.07,14.87,14.90]},{ x:'03/29/2023',y:[14.94,14.98,14.82,14.89]},{ x:'03/30/2023',y:[15.04,15.04,14.93,14.99]},{ x:'03/31/2023',y:[15.04,15.16,15.04,15.05]},{ x:'04/06/2023',y:[14.99,14.99,14.86,14.92]},{ x:'04/07/2023',y:[14.98,15.01,14.93,14.99]},{ x:'04/10/2023',y:[15.09,15.14,15.03,15.05]},{ x:'04/11/2023',y:[15.05,15.13,15.02,15.09]},{ x:'04/12/2023',y:[15.13,15.13,15.04,15.10]},{ x:'04/13/2023',y:[15.07,15.07,14.97,14.98]},{ x:'04/14/2023',y:[15.10,15.12,15.00,15.10]},{ x:'04/17/2023',y:[15.13,15.15,15.05,15.11]},{ x:'04/18/2023',y:[15.13,15.13,14.97,15.00]},{ x:'04/19/2023',y:[15.00,15.01,14.85,14.87]},{ x:'04/20/2023',y:[14.89,14.91,14.80,14.81]},{ x:'04/21/2023',y:[14.59,14.61,14.37,14.38]},{ x:'04/24/2023',y:[14.36,14.38,14.30,14.36]},{ x:'04/25/2023',y:[14.40,14.40,14.11,14.13]},{ x:'04/26/2023',y:[14.10,14.12,14.04,14.11]},{ x:'04/27/2023',y:[14.11,14.19,14.07,14.13]},{ x:'04/28/2023',y:[14.31,14.32,14.25,14.28]},{ x:'05/02/2023',y:[14.34,14.38,14.28,14.30]},{ x:'05/03/2023',y:[14.28,14.28,14.21,14.26]},{ x:'05/04/2023',y:[14.22,14.30,14.21,14.29]},{ x:'05/05/2023',y:[14.34,14.37,14.29,14.34]},{ x:'05/08/2023',y:[14.43,14.50,14.42,14.44]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00912 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());