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/23/2022',y:[32.65,32.68,32.64,32.68]},{ x:'12/26/2022',y:[32.95,32.95,32.60,32.82]},{ x:'12/27/2022',y:[32.75,32.79,32.70,32.70]},{ x:'12/28/2022',y:[32.50,32.57,32.43,32.47]},{ x:'12/29/2022',y:[32.52,32.52,32.30,32.30]},{ x:'12/30/2022',y:[32.31,32.38,32.31,32.36]},{ x:'01/03/2023',y:[32.58,32.58,32.34,32.36]},{ x:'01/04/2023',y:[32.37,32.57,32.37,32.50]},{ x:'01/05/2023',y:[32.72,32.72,32.41,32.47]},{ x:'01/06/2023',y:[32.40,32.46,32.35,32.42]},{ x:'01/09/2023',y:[32.48,32.70,32.45,32.68]},{ x:'01/10/2023',y:[32.78,32.78,32.65,32.65]},{ x:'01/11/2023',y:[32.47,32.69,32.40,32.44]},{ x:'01/12/2023',y:[32.61,32.71,32.47,32.66]},{ x:'01/13/2023',y:[32.86,33.10,32.86,33.10]},{ x:'01/16/2023',y:[33.10,33.14,33.04,33.05]},{ x:'01/17/2023',y:[33.00,33.01,32.91,33.00]},{ x:'01/30/2023',y:[33.44,33.44,33.10,33.38]},{ x:'01/31/2023',y:[33.23,33.59,32.99,33.02]},{ x:'02/01/2023',y:[33.07,33.07,32.86,32.99]},{ x:'02/02/2023',y:[33.05,33.15,33.04,33.08]},{ x:'02/03/2023',y:[33.68,33.68,33.48,33.66]},{ x:'02/06/2023',y:[33.60,33.82,33.35,33.79]},{ x:'02/07/2023',y:[33.45,33.72,33.22,33.25]},{ x:'02/08/2023',y:[33.10,33.19,33.03,33.07]},{ x:'02/09/2023',y:[33.05,33.05,33.00,33.02]},{ x:'02/10/2023',y:[32.93,32.93,32.88,32.90]},{ x:'02/13/2023',y:[32.89,32.89,32.64,32.67]},{ x:'02/14/2023',y:[32.43,32.45,32.40,32.40]},{ x:'02/15/2023',y:[32.69,32.69,32.55,32.60]},{ x:'02/16/2023',y:[32.20,32.20,31.89,31.93]},{ x:'02/17/2023',y:[31.84,31.84,31.56,31.60]},{ x:'02/20/2023',y:[31.71,31.71,31.43,31.46]},{ x:'02/21/2023',y:[31.45,31.45,31.36,31.38]},{ x:'02/22/2023',y:[31.34,31.35,31.31,31.32]},{ x:'02/23/2023',y:[31.29,31.30,31.12,31.17]},{ x:'02/24/2023',y:[31.60,31.78,31.60,31.78]},{ x:'03/01/2023',y:[31.79,31.86,31.75,31.81]},{ x:'03/02/2023',y:[31.70,31.70,31.62,31.67]},{ x:'03/03/2023',y:[31.56,31.56,31.44,31.54]},{ x:'03/06/2023',y:[31.82,31.85,31.74,31.82]},{ x:'03/07/2023',y:[32.00,32.08,31.99,32.06]},{ x:'03/08/2023',y:[32.06,32.32,31.97,31.97]},{ x:'03/09/2023',y:[31.99,31.99,31.85,31.89]},{ x:'03/10/2023',y:[31.88,32.22,31.88,32.22]},{ x:'03/13/2023',y:[32.30,32.31,32.00,32.02]},{ x:'03/14/2023',y:[32.24,32.24,32.14,32.21]},{ x:'03/15/2023',y:[32.15,32.18,32.10,32.14]},{ x:'03/16/2023',y:[32.20,32.43,32.20,32.34]},{ x:'03/17/2023',y:[32.23,32.36,32.23,32.33]},{ x:'03/20/2023',y:[32.08,32.30,32.05,32.30]},{ x:'03/21/2023',y:[32.28,32.38,32.26,32.38]},{ x:'03/22/2023',y:[32.40,32.40,32.27,32.27]},{ x:'03/23/2023',y:[32.38,32.38,32.29,32.32]},{ x:'03/24/2023',y:[32.36,32.37,32.33,32.36]},{ x:'03/27/2023',y:[32.36,32.48,32.36,32.44]},{ x:'03/28/2023',y:[32.26,32.35,32.26,32.35]},{ x:'03/29/2023',y:[32.22,32.35,32.19,32.35]},{ x:'03/30/2023',y:[32.36,32.37,32.34,32.37]},{ x:'03/31/2023',y:[32.32,32.44,32.32,32.44]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00756b 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());