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/02/2022',y:[34.16,34.16,33.97,33.98]},{ x:'12/05/2022',y:[34.14,34.25,34.10,34.11]},{ x:'12/06/2022',y:[34.11,34.16,34.05,34.16]},{ x:'12/07/2022',y:[34.35,34.42,34.33,34.34]},{ x:'12/08/2022',y:[34.77,34.97,34.77,34.85]},{ x:'12/09/2022',y:[35.03,35.16,35.03,35.15]},{ x:'12/12/2022',y:[34.43,34.72,34.43,34.67]},{ x:'12/13/2022',y:[34.64,34.68,34.62,34.62]},{ x:'12/14/2022',y:[34.78,34.80,34.77,34.78]},{ x:'12/15/2022',y:[34.77,34.77,34.77,34.77]},{ x:'12/16/2022',y:[34.80,34.82,34.69,34.72]},{ x:'12/19/2022',y:[34.32,34.46,34.32,34.42]},{ x:'12/20/2022',y:[34.02,34.08,33.56,33.56]},{ x:'12/21/2022',y:[33.29,33.37,33.22,33.37]},{ x:'12/22/2022',y:[33.54,33.63,33.54,33.59]},{ x:'12/23/2022',y:[33.40,33.57,33.40,33.57]},{ x:'12/26/2022',y:[33.40,33.42,33.40,33.42]},{ x:'12/27/2022',y:[33.27,33.40,33.27,33.40]},{ x:'12/28/2022',y:[32.69,32.85,32.69,32.82]},{ x:'12/29/2022',y:[32.73,32.73,32.69,32.71]},{ x:'12/30/2022',y:[32.86,32.90,32.86,32.90]},{ x:'01/03/2023',y:[32.56,32.68,32.56,32.65]},{ x:'01/04/2023',y:[32.93,33.19,32.93,33.19]},{ x:'01/05/2023',y:[33.39,33.40,33.36,33.36]},{ x:'01/06/2023',y:[33.41,33.49,33.41,33.42]},{ x:'01/09/2023',y:[33.83,33.95,33.83,33.92]},{ x:'01/10/2023',y:[34.06,34.08,33.99,34.04]},{ x:'01/11/2023',y:[33.99,33.99,33.97,33.98]},{ x:'01/12/2023',y:[34.20,34.46,34.20,34.46]},{ x:'01/13/2023',y:[34.61,34.75,34.61,34.75]},{ x:'01/16/2023',y:[34.56,34.60,34.49,34.52]},{ x:'01/17/2023',y:[34.38,34.41,34.36,34.36]},{ x:'01/30/2023',y:[33.96,34.01,33.86,33.91]},{ x:'01/31/2023',y:[33.68,33.68,33.31,33.41]},{ x:'02/01/2023',y:[33.67,33.71,33.65,33.71]},{ x:'02/02/2023',y:[33.80,33.80,33.63,33.63]},{ x:'02/03/2023',y:[33.81,33.99,33.81,33.93]},{ x:'02/06/2023',y:[33.66,33.66,33.46,33.50]},{ x:'02/07/2023',y:[33.47,33.47,33.34,33.36]},{ x:'02/08/2023',y:[33.01,33.09,33.01,33.08]},{ x:'02/09/2023',y:[33.27,33.29,33.18,33.18]},{ x:'02/10/2023',y:[32.82,32.85,32.82,32.85]},{ x:'02/13/2023',y:[32.62,32.62,32.50,32.51]},{ x:'02/14/2023',y:[32.68,32.71,32.67,32.70]},{ x:'02/15/2023',y:[32.82,32.89,32.81,32.87]},{ x:'02/16/2023',y:[32.64,32.64,32.59,32.63]},{ x:'02/17/2023',y:[32.20,32.20,32.08,32.15]},{ x:'02/20/2023',y:[32.30,32.36,32.30,32.34]},{ x:'02/21/2023',y:[32.33,32.33,32.33,32.33]},{ x:'02/22/2023',y:[32.00,32.04,31.92,32.04]},{ x:'02/23/2023',y:[32.14,32.14,32.00,32.00]},{ x:'02/24/2023',y:[32.30,32.51,32.30,32.50]},{ x:'03/01/2023',y:[32.40,32.40,32.22,32.24]},{ x:'03/02/2023',y:[32.00,32.00,31.96,32.00]},{ x:'03/03/2023',y:[31.98,32.13,31.98,32.13]},{ x:'03/06/2023',y:[32.64,32.76,32.64,32.75]},{ x:'03/07/2023',y:[32.69,32.75,32.69,32.75]},{ x:'03/08/2023',y:[32.77,32.77,32.66,32.69]},{ x:'03/09/2023',y:[32.64,32.64,32.64,32.64]},{ x:'03/10/2023',y:[32.82,33.04,32.82,33.04]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00723b 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());