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:'12/21/2022',y:[13.55,13.66,13.55,13.59]},{ x:'12/22/2022',y:[13.73,13.84,13.73,13.82]},{ x:'12/23/2022',y:[13.66,13.69,13.60,13.65]},{ x:'12/26/2022',y:[13.62,13.66,13.62,13.64]},{ x:'12/27/2022',y:[13.76,13.83,13.70,13.73]},{ x:'12/28/2022',y:[13.62,13.62,13.42,13.44]},{ x:'12/29/2022',y:[13.38,13.43,13.31,13.39]},{ x:'12/30/2022',y:[13.60,13.60,13.50,13.50]},{ x:'01/03/2023',y:[13.49,13.68,13.38,13.64]},{ x:'01/04/2023',y:[13.60,13.67,13.58,13.60]},{ x:'01/05/2023',y:[13.71,13.78,13.66,13.67]},{ x:'01/06/2023',y:[13.67,13.89,13.67,13.88]},{ x:'01/09/2023',y:[14.03,14.29,14.03,14.29]},{ x:'01/10/2023',y:[14.33,14.35,14.26,14.31]},{ x:'01/11/2023',y:[14.38,14.39,14.27,14.34]},{ x:'01/12/2023',y:[14.37,14.37,14.20,14.23]},{ x:'01/13/2023',y:[14.40,14.45,14.23,14.28]},{ x:'01/16/2023',y:[14.34,14.41,14.34,14.36]},{ x:'01/17/2023',y:[14.20,14.20,14.13,14.17]},{ x:'01/30/2023',y:[14.60,14.73,14.60,14.72]},{ x:'01/31/2023',y:[14.72,14.72,14.55,14.56]},{ x:'02/01/2023',y:[14.60,14.68,14.60,14.66]},{ x:'02/02/2023',y:[14.79,14.93,14.79,14.93]},{ x:'02/03/2023',y:[14.87,14.98,14.87,14.94]},{ 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]} ] }], 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());