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/08/2023',y:[20.25,20.32,20.24,20.26]},{ x:'11/09/2023',y:[20.25,20.30,20.22,20.23]},{ x:'11/10/2023',y:[20.18,20.24,20.07,20.11]},{ x:'11/13/2023',y:[20.11,20.21,19.97,20.02]},{ x:'11/14/2023',y:[20.12,20.14,20.00,20.00]},{ x:'11/15/2023',y:[20.21,20.34,20.05,20.08]},{ x:'11/16/2023',y:[20.14,20.25,19.89,19.96]},{ x:'11/17/2023',y:[19.84,19.86,19.72,19.76]},{ x:'11/20/2023',y:[19.96,20.00,19.72,19.94]},{ x:'11/21/2023',y:[19.95,20.17,19.91,20.12]},{ x:'11/22/2023',y:[19.94,20.02,19.91,19.97]},{ x:'11/23/2023',y:[19.89,19.95,19.85,19.87]},{ x:'11/24/2023',y:[19.98,20.00,19.85,19.89]},{ x:'11/27/2023',y:[19.90,19.90,19.55,19.60]},{ x:'11/28/2023',y:[19.62,19.62,19.52,19.53]},{ x:'11/29/2023',y:[19.51,19.63,19.36,19.37]},{ x:'11/30/2023',y:[19.37,19.55,19.37,19.42]},{ x:'12/01/2023',y:[19.42,19.48,19.25,19.29]},{ x:'12/04/2023',y:[19.26,19.37,19.24,19.26]},{ x:'12/05/2023',y:[19.23,19.26,19.07,19.12]},{ x:'12/06/2023',y:[19.01,19.01,18.81,18.94]},{ x:'12/07/2023',y:[18.88,18.91,18.72,18.87]},{ x:'12/08/2023',y:[18.85,18.89,18.75,18.85]},{ x:'12/11/2023',y:[18.79,18.79,18.50,18.63]},{ x:'12/12/2023',y:[18.83,18.92,18.77,18.86]},{ x:'12/18/2023',y:[18.46,18.52,18.31,18.44]},{ x:'12/19/2023',y:[18.45,18.50,18.32,18.40]},{ x:'01/10/2024',y:[18.00,18.22,18.00,18.07]},{ x:'01/11/2024',y:[18.07,18.21,17.99,18.18]},{ x:'01/12/2024',y:[18.09,18.20,18.01,18.13]},{ x:'01/15/2024',y:[18.17,18.25,17.92,18.20]},{ x:'01/16/2024',y:[18.11,18.26,18.00,18.14]},{ x:'01/17/2024',y:[18.17,18.23,18.00,18.02]},{ x:'01/18/2024',y:[17.94,17.94,17.66,17.72]},{ x:'01/19/2024',y:[18.01,18.20,18.00,18.08]},{ x:'01/22/2024',y:[18.20,18.21,18.04,18.10]},{ x:'01/23/2024',y:[18.08,18.10,17.83,18.02]},{ x:'01/24/2024',y:[18.20,18.29,17.91,17.97]},{ x:'01/25/2024',y:[18.50,18.59,18.30,18.57]},{ x:'01/26/2024',y:[18.58,18.62,18.42,18.47]},{ x:'01/29/2024',y:[18.52,18.65,18.48,18.49]},{ x:'01/30/2024',y:[18.49,18.49,18.10,18.18]},{ x:'01/31/2024',y:[18.06,18.25,18.01,18.18]},{ x:'02/01/2024',y:[18.15,18.32,18.06,18.22]},{ x:'02/02/2024',y:[18.20,18.22,17.95,17.99]},{ x:'02/05/2024',y:[17.99,18.38,17.81,18.29]},{ x:'02/15/2024',y:[18.73,18.87,18.68,18.82]},{ x:'02/16/2024',y:[18.87,19.16,18.85,19.16]},{ x:'02/19/2024',y:[19.16,19.23,18.97,19.00]},{ x:'02/20/2024',y:[19.05,19.21,19.05,19.11]},{ x:'02/21/2024',y:[19.12,19.75,19.12,19.71]},{ x:'02/22/2024',y:[19.60,19.72,19.54,19.72]},{ x:'02/23/2024',y:[19.76,19.88,19.67,19.74]},{ x:'02/26/2024',y:[19.72,19.76,19.47,19.55]},{ x:'02/27/2024',y:[19.50,19.58,19.39,19.53]},{ x:'02/29/2024',y:[19.45,19.71,19.40,19.58]},{ x:'03/01/2024',y:[19.60,19.68,19.54,19.63]},{ x:'03/04/2024',y:[19.60,19.65,19.46,19.46]},{ x:'03/05/2024',y:[19.46,19.69,19.38,19.60]},{ x:'03/06/2024',y:[19.67,19.85,19.67,19.73]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00636 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());