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:'11/17/2023',y:[17.10,17.10,17.04,17.04]},{ x:'11/20/2023',y:[17.12,17.15,17.07,17.07]},{ x:'11/21/2023',y:[17.25,17.28,17.18,17.20]},{ x:'11/22/2023',y:[17.03,17.06,16.98,17.03]},{ x:'11/23/2023',y:[17.02,17.11,17.02,17.07]},{ x:'11/24/2023',y:[17.08,17.13,17.07,17.07]},{ x:'11/27/2023',y:[17.07,17.08,16.95,16.96]},{ x:'11/28/2023',y:[16.96,16.97,16.93,16.94]},{ x:'11/29/2023',y:[17.00,17.05,16.94,16.95]},{ x:'11/30/2023',y:[16.96,17.01,16.96,16.98]},{ x:'12/01/2023',y:[16.81,16.81,16.72,16.72]},{ x:'12/04/2023',y:[16.75,16.78,16.74,16.78]},{ x:'12/05/2023',y:[16.70,16.70,16.61,16.63]},{ x:'12/06/2023',y:[16.68,16.84,16.68,16.84]},{ x:'12/07/2023',y:[16.76,16.77,16.74,16.77]},{ x:'12/08/2023',y:[17.07,17.09,16.97,17.00]},{ x:'12/11/2023',y:[17.09,17.16,17.08,17.08]},{ x:'12/12/2023',y:[17.23,17.25,17.20,17.20]},{ x:'12/18/2023',y:[17.75,17.79,17.75,17.77]},{ x:'12/19/2023',y:[17.77,17.78,17.69,17.77]},{ x:'01/10/2024',y:[17.43,17.47,17.42,17.43]},{ x:'01/11/2024',y:[17.54,17.60,17.53,17.58]},{ x:'01/12/2024',y:[17.50,17.50,17.43,17.43]},{ x:'01/15/2024',y:[17.35,17.40,17.31,17.40]},{ x:'01/16/2024',y:[17.35,17.36,17.30,17.36]},{ x:'01/17/2024',y:[17.66,17.72,17.61,17.62]},{ x:'01/18/2024',y:[17.51,17.52,17.45,17.46]},{ x:'01/19/2024',y:[17.65,17.67,17.62,17.63]},{ x:'01/22/2024',y:[18.02,18.04,17.95,17.98]},{ x:'01/23/2024',y:[17.86,17.87,17.74,17.83]},{ x:'01/24/2024',y:[17.85,17.92,17.85,17.90]},{ x:'01/25/2024',y:[17.87,17.93,17.85,17.92]},{ x:'01/26/2024',y:[17.65,17.69,17.59,17.61]},{ x:'01/29/2024',y:[17.71,17.78,17.71,17.73]},{ x:'01/30/2024',y:[17.93,17.97,17.91,17.91]},{ x:'01/31/2024',y:[17.50,17.50,17.45,17.48]},{ x:'02/01/2024',y:[17.51,17.64,17.51,17.60]},{ x:'02/02/2024',y:[17.97,17.98,17.91,17.92]},{ x:'02/05/2024',y:[18.12,18.18,18.09,18.17]},{ x:'02/15/2024',y:[18.60,18.93,18.58,18.91]},{ x:'02/16/2024',y:[18.94,19.01,18.93,19.01]},{ x:'02/19/2024',y:[19.00,19.02,18.95,18.96]},{ x:'02/20/2024',y:[18.90,18.99,18.90,18.90]},{ x:'02/21/2024',y:[18.49,18.49,18.40,18.45]},{ x:'02/22/2024',y:[18.94,19.01,18.93,18.99]},{ x:'02/23/2024',y:[19.53,19.69,19.53,19.68]},{ x:'02/26/2024',y:[19.45,19.45,19.34,19.40]},{ x:'02/27/2024',y:[19.50,19.63,19.50,19.62]},{ x:'02/29/2024',y:[19.60,19.71,19.60,19.65]},{ x:'03/01/2024',y:[20.20,20.36,20.19,20.34]},{ x:'03/04/2024',y:[20.64,20.75,20.64,20.74]},{ x:'03/05/2024',y:[20.68,20.68,20.51,20.51]},{ x:'03/06/2024',y:[20.26,20.55,20.26,20.52]},{ x:'03/07/2024',y:[20.62,20.72,20.62,20.64]},{ x:'03/08/2024',y:[21.02,21.25,21.02,21.19]},{ x:'03/11/2024',y:[20.68,20.70,20.40,20.55]},{ x:'03/12/2024',y:[20.54,20.70,20.54,20.70]},{ x:'03/13/2024',y:[21.11,21.22,21.10,21.22]},{ x:'03/14/2024',y:[20.83,20.83,20.72,20.80]},{ x:'03/15/2024',y:[20.32,20.32,20.22,20.26]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00893 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());