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/29/2022',y:[33.14,33.14,33.04,33.08]},{ x:'12/30/2022',y:[33.39,33.39,33.30,33.30]},{ x:'01/03/2023',y:[32.77,32.77,32.68,32.77]},{ x:'01/04/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/05/2023',y:[32.93,32.93,32.85,32.85]},{ x:'01/06/2023',y:[32.90,33.07,32.90,33.04]},{ x:'01/09/2023',y:[33.43,33.43,33.28,33.28]},{ x:'01/10/2023',y:[33.33,33.33,33.33,33.33]},{ x:'01/11/2023',y:[33.64,33.64,33.64,33.64]},{ x:'01/12/2023',y:[33.69,33.69,33.69,33.69]},{ x:'01/13/2023',y:[33.35,33.35,33.25,33.26]},{ x:'01/16/2023',y:[32.91,32.91,32.85,32.89]},{ x:'01/17/2023',y:[0.00,0.00,0.00,0.00]},{ x:'01/30/2023',y:[34.87,34.91,34.85,34.86]},{ x:'01/31/2023',y:[0.00,0.00,0.00,0.00]},{ x:'02/01/2023',y:[34.90,34.90,34.84,34.84]},{ x:'02/02/2023',y:[34.85,34.85,34.85,34.85]},{ x:'02/03/2023',y:[34.88,35.03,34.88,35.03]},{ x:'02/06/2023',y:[35.24,35.35,35.24,35.35]},{ x:'02/07/2023',y:[35.30,35.30,35.30,35.30]},{ x:'02/08/2023',y:[35.05,35.11,35.05,35.11]},{ x:'02/09/2023',y:[35.00,35.00,35.00,35.00]},{ x:'02/10/2023',y:[35.17,35.17,35.11,35.11]},{ x:'02/13/2023',y:[34.88,34.90,34.88,34.90]},{ x:'02/14/2023',y:[35.09,35.09,35.09,35.09]},{ x:'02/15/2023',y:[34.85,34.89,34.84,34.84]},{ x:'02/16/2023',y:[35.08,35.19,35.08,35.19]},{ x:'02/17/2023',y:[34.94,34.95,34.94,34.95]},{ x:'02/20/2023',y:[34.93,34.93,34.87,34.88]},{ x:'02/21/2023',y:[34.92,34.92,34.92,34.92]},{ x:'02/22/2023',y:[34.50,34.50,34.39,34.43]},{ x:'02/23/2023',y:[34.47,34.47,34.47,34.47]},{ x:'02/24/2023',y:[34.52,34.73,34.52,34.73]},{ x:'03/01/2023',y:[34.85,34.90,34.81,34.90]},{ x:'03/02/2023',y:[34.91,34.91,34.91,34.91]},{ x:'03/03/2023',y:[35.15,35.40,35.15,35.40]},{ x:'03/06/2023',y:[35.64,35.84,35.64,35.84]},{ x:'03/07/2023',y:[35.92,36.01,35.92,36.01]},{ x:'03/08/2023',y:[35.96,36.01,35.96,36.01]},{ x:'03/09/2023',y:[36.07,36.14,36.07,36.14]},{ x:'03/10/2023',y:[35.80,35.88,35.77,35.77]},{ x:'03/13/2023',y:[35.24,35.24,35.22,35.22]},{ x:'03/14/2023',y:[34.54,34.67,34.50,34.67]},{ x:'03/15/2023',y:[34.74,34.74,34.67,34.67]},{ x:'03/16/2023',y:[34.22,34.25,34.22,34.25]},{ x:'03/17/2023',y:[34.83,34.83,34.83,34.83]},{ x:'03/20/2023',y:[34.67,34.67,34.54,34.54]},{ x:'03/21/2023',y:[34.56,34.68,34.56,34.68]},{ x:'03/22/2023',y:[35.08,35.08,35.08,35.08]},{ x:'03/23/2023',y:[34.84,34.84,34.84,34.84]},{ x:'03/24/2023',y:[34.76,34.84,34.76,34.84]},{ x:'03/27/2023',y:[34.80,34.94,34.74,34.94]},{ x:'03/28/2023',y:[34.95,34.95,34.90,34.90]},{ x:'03/29/2023',y:[35.26,35.26,35.26,35.26]},{ x:'03/30/2023',y:[35.41,35.53,35.41,35.53]},{ x:'03/31/2023',y:[35.74,35.87,35.74,35.87]},{ x:'04/06/2023',y:[35.19,35.19,35.19,35.19]},{ x:'04/07/2023',y:[35.23,35.23,35.23,35.23]},{ x:'04/10/2023',y:[35.47,35.50,35.47,35.50]},{ x:'04/11/2023',y:[35.91,35.91,35.91,35.91]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00661 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());