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/09/2022',y:[34.07,34.19,34.07,34.19]},{ x:'12/12/2022',y:[33.80,33.97,33.57,33.96]},{ x:'12/13/2022',y:[33.97,33.97,33.83,33.83]},{ x:'12/14/2022',y:[34.00,34.04,33.88,33.94]},{ x:'12/15/2022',y:[34.00,34.00,33.92,33.96]},{ x:'12/16/2022',y:[33.91,34.13,33.81,34.05]},{ x:'12/19/2022',y:[33.84,33.91,33.80,33.91]},{ x:'12/20/2022',y:[33.80,33.80,33.15,33.23]},{ x:'12/21/2022',y:[33.00,33.00,32.95,32.99]},{ x:'12/22/2022',y:[32.99,33.24,32.88,33.24]},{ x:'12/23/2022',y:[33.04,33.19,33.04,33.19]},{ x:'12/26/2022',y:[33.01,33.11,33.01,33.10]},{ x:'12/27/2022',y:[33.06,33.06,33.03,33.06]},{ x:'12/28/2022',y:[32.78,32.78,32.61,32.64]},{ x:'12/29/2022',y:[32.52,32.54,32.36,32.50]},{ x:'12/30/2022',y:[32.55,32.60,32.55,32.60]},{ x:'01/03/2023',y:[32.50,32.50,32.34,32.42]},{ x:'01/04/2023',y:[32.71,32.71,32.60,32.68]},{ x:'01/05/2023',y:[33.20,33.20,32.71,32.82]},{ x:'01/06/2023',y:[32.92,33.06,32.92,33.04]},{ x:'01/09/2023',y:[33.35,33.49,33.35,33.46]},{ x:'01/10/2023',y:[33.46,33.59,33.46,33.58]},{ x:'01/11/2023',y:[33.49,33.49,33.10,33.27]},{ x:'01/12/2023',y:[33.74,33.75,33.55,33.73]},{ x:'01/13/2023',y:[34.20,34.20,34.02,34.08]},{ x:'01/16/2023',y:[34.15,34.15,34.07,34.07]},{ x:'01/17/2023',y:[34.07,34.13,34.00,34.12]},{ x:'01/30/2023',y:[34.12,34.12,33.85,33.88]},{ x:'01/31/2023',y:[33.88,33.88,33.71,33.74]},{ x:'02/01/2023',y:[33.78,33.91,33.78,33.91]},{ x:'02/02/2023',y:[34.15,34.15,33.96,34.01]},{ x:'02/03/2023',y:[34.20,34.32,34.20,34.31]},{ x:'02/06/2023',y:[34.19,34.19,33.99,34.02]},{ x:'02/07/2023',y:[34.02,34.10,33.99,34.02]},{ x:'02/08/2023',y:[33.95,33.97,33.83,33.90]},{ x:'02/09/2023',y:[33.95,33.95,33.91,33.94]},{ x:'02/10/2023',y:[33.83,33.83,33.68,33.70]},{ x:'02/13/2023',y:[33.54,33.54,33.30,33.36]},{ x:'02/14/2023',y:[33.40,33.47,33.40,33.47]},{ x:'02/15/2023',y:[33.60,33.60,33.47,33.51]},{ x:'02/16/2023',y:[33.38,33.38,33.21,33.28]},{ x:'02/17/2023',y:[33.10,33.10,32.85,32.86]},{ x:'02/20/2023',y:[33.00,33.00,32.96,32.99]},{ x:'02/21/2023',y:[33.00,33.00,32.94,32.95]},{ x:'02/22/2023',y:[32.75,32.75,32.57,32.69]},{ x:'02/23/2023',y:[32.75,32.75,32.60,32.63]},{ x:'02/24/2023',y:[32.80,33.00,32.80,32.99]},{ x:'03/01/2023',y:[32.91,32.94,32.78,32.80]},{ x:'03/02/2023',y:[32.55,32.56,32.42,32.46]},{ x:'03/03/2023',y:[32.46,32.55,32.42,32.52]},{ x:'03/06/2023',y:[32.95,33.13,32.95,33.04]},{ x:'03/07/2023',y:[33.04,33.04,32.99,33.04]},{ x:'03/08/2023',y:[33.11,33.11,32.99,33.03]},{ x:'03/09/2023',y:[33.04,33.04,32.95,32.99]},{ x:'03/10/2023',y:[33.14,33.34,33.10,33.32]},{ x:'03/13/2023',y:[33.39,33.40,33.03,33.03]},{ x:'03/14/2023',y:[33.03,33.03,32.85,32.87]},{ x:'03/15/2023',y:[32.85,32.90,32.80,32.84]},{ x:'03/16/2023',y:[33.00,33.36,33.00,33.26]},{ x:'03/17/2023',y:[33.07,33.23,33.00,33.23]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00724b 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());