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/07/2023',y:[20.54,20.63,20.49,20.60]},{ x:'11/08/2023',y:[20.57,20.80,20.57,20.68]},{ x:'11/09/2023',y:[20.68,20.75,20.61,20.74]},{ x:'11/10/2023',y:[20.60,20.64,20.52,20.63]},{ x:'11/13/2023',y:[20.75,20.79,20.69,20.74]},{ x:'11/14/2023',y:[20.90,20.96,20.81,20.89]},{ x:'11/15/2023',y:[21.13,21.15,20.96,21.00]},{ x:'11/16/2023',y:[21.06,21.06,20.88,20.96]},{ x:'11/17/2023',y:[21.01,21.10,21.01,21.08]},{ x:'11/20/2023',y:[21.10,21.12,20.98,21.10]},{ x:'11/21/2023',y:[21.23,21.30,21.22,21.23]},{ x:'11/22/2023',y:[21.11,21.17,21.03,21.10]},{ x:'11/23/2023',y:[21.10,21.16,21.03,21.08]},{ x:'11/24/2023',y:[21.16,21.23,21.11,21.12]},{ x:'11/27/2023',y:[21.22,21.23,20.98,20.98]},{ x:'11/28/2023',y:[21.01,21.23,21.01,21.21]},{ x:'11/29/2023',y:[21.22,21.38,21.22,21.31]},{ x:'11/30/2023',y:[21.34,21.38,21.24,21.32]},{ x:'12/01/2023',y:[21.31,21.50,21.23,21.50]},{ x:'12/04/2023',y:[21.71,21.79,21.61,21.67]},{ x:'12/05/2023',y:[21.62,21.62,21.46,21.51]},{ x:'12/06/2023',y:[21.63,21.69,21.62,21.65]},{ x:'12/07/2023',y:[21.64,21.65,21.56,21.57]},{ x:'12/08/2023',y:[21.67,21.80,21.64,21.67]},{ x:'12/11/2023',y:[21.79,21.85,21.78,21.83]},{ x:'12/12/2023',y:[22.00,22.20,22.00,22.15]},{ x:'12/18/2023',y:[21.88,21.89,21.75,21.85]},{ x:'12/19/2023',y:[21.81,21.83,21.58,21.67]},{ x:'01/10/2024',y:[21.42,21.42,21.29,21.31]},{ x:'01/11/2024',y:[21.36,21.45,21.36,21.44]},{ x:'01/12/2024',y:[21.45,21.55,21.37,21.49]},{ x:'01/15/2024',y:[21.54,21.71,21.54,21.66]},{ x:'01/16/2024',y:[21.62,21.62,21.45,21.47]},{ x:'01/17/2024',y:[21.44,21.44,21.15,21.18]},{ x:'01/18/2024',y:[21.18,21.22,21.00,21.15]},{ x:'01/19/2024',y:[21.25,21.37,21.20,21.37]},{ x:'01/22/2024',y:[21.48,21.54,21.46,21.52]},{ x:'01/23/2024',y:[21.57,21.63,21.51,21.61]},{ x:'01/24/2024',y:[21.64,21.71,21.64,21.66]},{ x:'01/25/2024',y:[21.70,21.75,21.61,21.75]},{ x:'01/26/2024',y:[21.75,21.75,21.41,21.43]},{ x:'01/29/2024',y:[21.41,21.59,21.39,21.56]},{ x:'01/30/2024',y:[21.60,21.61,21.50,21.54]},{ x:'01/31/2024',y:[21.50,21.50,21.36,21.39]},{ x:'02/01/2024',y:[21.40,21.49,21.40,21.47]},{ x:'02/02/2024',y:[21.49,21.49,21.42,21.43]},{ x:'02/05/2024',y:[21.36,21.42,21.23,21.41]},{ x:'02/15/2024',y:[21.41,21.47,21.33,21.46]},{ x:'02/16/2024',y:[21.51,21.55,21.42,21.53]},{ x:'02/19/2024',y:[21.56,21.67,21.51,21.65]},{ x:'02/20/2024',y:[21.69,21.87,21.69,21.86]},{ x:'02/21/2024',y:[21.87,21.89,21.78,21.79]},{ x:'02/22/2024',y:[21.86,22.10,21.86,22.09]},{ x:'02/23/2024',y:[22.16,22.24,21.91,21.91]},{ x:'02/26/2024',y:[21.90,21.98,21.87,21.97]},{ x:'02/27/2024',y:[21.97,22.07,21.75,21.88]},{ x:'02/29/2024',y:[21.87,22.01,21.83,21.97]},{ x:'03/01/2024',y:[22.30,22.33,22.11,22.24]},{ x:'03/04/2024',y:[22.50,22.50,22.28,22.41]},{ x:'03/05/2024',y:[22.48,22.65,22.45,22.65]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00918 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());