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/30/2022',y:[11.48,11.50,11.40,11.40]},{ x:'01/03/2023',y:[11.36,11.50,11.28,11.50]},{ x:'01/04/2023',y:[11.47,11.51,11.46,11.46]},{ x:'01/05/2023',y:[11.53,11.58,11.47,11.48]},{ x:'01/06/2023',y:[11.48,11.62,11.48,11.61]},{ x:'01/09/2023',y:[11.78,11.94,11.76,11.94]},{ x:'01/10/2023',y:[11.96,12.03,11.95,12.00]},{ x:'01/11/2023',y:[12.05,12.07,11.98,12.02]},{ x:'01/12/2023',y:[12.09,12.09,11.96,11.96]},{ x:'01/13/2023',y:[12.14,12.19,11.99,12.00]},{ x:'01/16/2023',y:[12.09,12.16,12.07,12.09]},{ x:'01/17/2023',y:[12.10,12.10,12.05,12.09]},{ x:'01/30/2023',y:[12.57,12.60,12.50,12.58]},{ x:'01/31/2023',y:[12.58,12.60,12.45,12.45]},{ x:'02/01/2023',y:[12.54,12.58,12.49,12.57]},{ x:'02/02/2023',y:[12.71,12.83,12.71,12.80]},{ x:'02/03/2023',y:[12.83,12.85,12.74,12.82]},{ x:'02/06/2023',y:[12.78,12.78,12.68,12.68]},{ x:'02/07/2023',y:[12.68,12.68,12.60,12.65]},{ x:'02/08/2023',y:[12.75,12.87,12.75,12.85]},{ x:'02/09/2023',y:[12.83,12.87,12.79,12.86]},{ x:'02/10/2023',y:[12.83,12.85,12.80,12.85]},{ x:'02/13/2023',y:[12.84,12.84,12.73,12.77]},{ x:'02/14/2023',y:[12.86,12.91,12.85,12.86]},{ x:'02/15/2023',y:[12.77,12.78,12.65,12.67]},{ x:'02/16/2023',y:[12.74,12.85,12.74,12.81]},{ x:'02/17/2023',y:[12.76,12.76,12.65,12.71]},{ x:'02/20/2023',y:[12.71,12.80,12.70,12.75]},{ x:'02/21/2023',y:[12.76,12.81,12.76,12.78]},{ x:'02/22/2023',y:[12.69,12.69,12.58,12.62]},{ x:'02/23/2023',y:[12.69,12.87,12.69,12.84]},{ x:'02/24/2023',y:[12.89,12.92,12.75,12.75]},{ x:'03/01/2023',y:[12.62,12.86,12.54,12.85]},{ x:'03/02/2023',y:[12.86,12.86,12.71,12.82]},{ x:'03/03/2023',y:[12.87,12.96,12.83,12.85]},{ x:'03/06/2023',y:[12.90,13.06,12.90,13.03]},{ x:'03/07/2023',y:[13.03,13.14,13.02,13.12]},{ x:'03/08/2023',y:[13.04,13.04,12.98,13.04]},{ x:'03/09/2023',y:[13.07,13.14,13.01,13.01]},{ x:'03/10/2023',y:[12.88,12.88,12.76,12.79]},{ x:'03/13/2023',y:[12.72,12.85,12.67,12.85]},{ x:'03/14/2023',y:[12.72,12.75,12.65,12.65]},{ x:'03/15/2023',y:[12.72,12.86,12.72,12.73]},{ x:'03/16/2023',y:[12.69,12.75,12.62,12.68]},{ x:'03/17/2023',y:[12.78,12.87,12.78,12.87]},{ x:'03/20/2023',y:[12.87,12.90,12.82,12.85]},{ x:'03/21/2023',y:[12.92,12.97,12.88,12.89]},{ x:'03/22/2023',y:[13.00,13.11,13.00,13.10]},{ x:'03/23/2023',y:[13.07,13.21,13.07,13.18]},{ x:'03/24/2023',y:[13.24,13.28,13.21,13.28]},{ x:'03/27/2023',y:[13.28,13.28,13.18,13.20]},{ x:'03/28/2023',y:[13.18,13.18,13.03,13.03]},{ x:'03/29/2023',y:[13.09,13.13,13.00,13.08]},{ x:'03/30/2023',y:[13.13,13.19,13.12,13.17]},{ x:'03/31/2023',y:[13.19,13.29,13.18,13.18]},{ x:'04/06/2023',y:[13.09,13.09,12.98,13.04]},{ x:'04/07/2023',y:[13.10,13.10,13.04,13.06]},{ x:'04/10/2023',y:[13.06,13.13,13.06,13.10]},{ x:'04/11/2023',y:[13.10,13.15,13.08,13.13]},{ x:'04/12/2023',y:[13.13,13.15,13.08,13.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00901 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());