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:'01/22/2024',y:[21.11,21.11,21.05,21.05]},{ x:'01/23/2024',y:[21.03,21.04,21.03,21.04]},{ x:'01/24/2024',y:[21.11,21.14,21.09,21.14]},{ x:'01/25/2024',y:[21.05,21.05,20.95,20.99]},{ x:'01/26/2024',y:[21.26,21.30,21.22,21.22]},{ x:'01/29/2024',y:[21.27,21.27,21.25,21.27]},{ x:'01/30/2024',y:[21.14,21.21,21.14,21.15]},{ x:'01/31/2024',y:[21.20,21.20,21.20,21.20]},{ x:'02/01/2024',y:[21.20,21.20,21.18,21.19]},{ x:'02/02/2024',y:[21.30,21.34,21.25,21.34]},{ x:'02/05/2024',y:[21.20,21.22,21.20,21.22]},{ x:'02/15/2024',y:[21.18,21.18,21.02,21.06]},{ x:'02/16/2024',y:[21.13,21.19,21.13,21.19]},{ x:'02/19/2024',y:[21.21,21.24,21.20,21.24]},{ x:'02/20/2024',y:[21.26,21.29,21.23,21.23]},{ x:'02/21/2024',y:[21.27,21.27,21.27,21.27]},{ x:'02/22/2024',y:[21.38,21.47,21.38,21.47]},{ x:'02/23/2024',y:[21.51,21.57,21.51,21.57]},{ x:'02/26/2024',y:[21.57,21.68,21.57,21.68]},{ x:'02/27/2024',y:[21.55,21.55,21.47,21.47]},{ x:'02/29/2024',y:[21.55,21.56,21.55,21.56]},{ x:'03/01/2024',y:[21.57,21.65,21.57,21.65]},{ x:'03/04/2024',y:[21.65,21.65,21.53,21.54]},{ x:'03/05/2024',y:[21.54,21.67,21.54,21.63]},{ x:'03/06/2024',y:[21.59,21.67,21.59,21.67]},{ x:'03/07/2024',y:[21.67,21.78,21.67,21.78]},{ x:'03/08/2024',y:[21.79,21.81,21.78,21.81]},{ x:'03/11/2024',y:[21.91,21.91,21.90,21.90]},{ x:'03/12/2024',y:[21.92,22.02,21.92,22.01]},{ x:'03/13/2024',y:[21.95,22.00,21.95,21.99]},{ x:'03/14/2024',y:[22.02,22.13,22.02,22.13]},{ x:'03/15/2024',y:[22.03,22.03,22.00,22.00]},{ x:'03/18/2024',y:[22.05,22.08,22.05,22.08]},{ x:'03/19/2024',y:[22.20,22.20,22.20,22.20]},{ x:'03/20/2024',y:[22.25,22.36,22.25,22.36]},{ x:'03/21/2024',y:[22.43,22.49,22.43,22.49]},{ x:'03/22/2024',y:[22.53,22.64,22.53,22.64]},{ x:'03/25/2024',y:[22.49,22.49,22.40,22.42]},{ x:'03/26/2024',y:[22.38,22.48,22.38,22.44]},{ x:'03/27/2024',y:[22.40,22.40,22.38,22.38]},{ x:'03/28/2024',y:[22.66,22.74,22.66,22.71]},{ x:'03/29/2024',y:[22.74,22.80,22.72,22.80]},{ x:'04/01/2024',y:[22.80,22.88,22.78,22.87]},{ x:'04/02/2024',y:[22.89,22.89,22.88,22.89]},{ x:'04/03/2024',y:[22.87,22.87,22.78,22.87]},{ x:'04/08/2024',y:[22.75,22.77,22.74,22.74]},{ x:'04/09/2024',y:[22.72,22.75,22.72,22.74]},{ x:'04/10/2024',y:[22.75,22.80,22.75,22.78]},{ x:'04/11/2024',y:[22.57,22.57,22.57,22.57]},{ x:'04/12/2024',y:[22.52,22.56,22.50,22.56]},{ x:'04/15/2024',y:[22.41,22.41,22.31,22.31]},{ x:'04/16/2024',y:[22.23,22.26,22.23,22.26]},{ x:'04/17/2024',y:[22.10,22.10,22.10,22.10]},{ x:'04/18/2024',y:[22.21,22.21,22.15,22.15]},{ x:'04/19/2024',y:[22.18,22.22,22.15,22.22]},{ x:'04/22/2024',y:[22.67,22.67,22.63,22.66]},{ x:'04/23/2024',y:[22.66,22.81,22.66,22.81]},{ x:'04/24/2024',y:[22.87,22.87,22.86,22.86]},{ x:'04/25/2024',y:[22.92,22.92,22.89,22.89]},{ x:'04/26/2024',y:[22.89,22.93,22.86,22.92]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00702 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());