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/12/2023',y:[32.45,32.80,32.45,32.77]},{ x:'01/13/2023',y:[33.02,33.05,32.94,33.05]},{ x:'01/16/2023',y:[33.05,33.06,32.89,32.91]},{ x:'01/17/2023',y:[32.96,32.96,32.63,32.65]},{ x:'01/30/2023',y:[32.91,32.91,32.70,32.85]},{ x:'01/31/2023',y:[32.83,32.83,32.52,32.53]},{ x:'02/01/2023',y:[32.64,32.69,32.58,32.65]},{ x:'02/02/2023',y:[32.83,32.85,32.67,32.67]},{ x:'02/03/2023',y:[32.72,32.98,32.72,32.93]},{ x:'02/06/2023',y:[32.70,32.70,32.53,32.58]},{ x:'02/07/2023',y:[32.55,32.59,32.45,32.46]},{ x:'02/08/2023',y:[32.37,32.37,32.27,32.32]},{ x:'02/09/2023',y:[32.37,32.39,32.26,32.29]},{ x:'02/10/2023',y:[32.23,32.24,32.10,32.18]},{ x:'02/13/2023',y:[31.93,31.95,31.84,31.90]},{ x:'02/14/2023',y:[32.07,32.15,32.07,32.15]},{ x:'02/15/2023',y:[32.15,32.24,32.15,32.23]},{ x:'02/16/2023',y:[31.78,31.78,31.53,31.61]},{ x:'02/17/2023',y:[31.19,31.21,31.02,31.07]},{ x:'02/20/2023',y:[31.32,31.34,31.29,31.33]},{ x:'02/21/2023',y:[31.31,31.32,31.22,31.24]},{ x:'02/22/2023',y:[31.08,31.10,31.03,31.05]},{ x:'02/23/2023',y:[31.19,31.20,31.04,31.06]},{ x:'02/24/2023',y:[31.34,31.49,31.30,31.47]},{ x:'03/01/2023',y:[31.33,31.33,31.24,31.28]},{ x:'03/02/2023',y:[31.16,31.16,31.01,31.06]},{ x:'03/03/2023',y:[31.00,31.07,30.84,30.97]},{ x:'03/06/2023',y:[31.36,31.56,31.36,31.51]},{ x:'03/07/2023',y:[31.42,31.49,31.40,31.46]},{ x:'03/08/2023',y:[31.50,31.60,31.50,31.55]},{ x:'03/09/2023',y:[31.61,31.76,31.58,31.58]},{ x:'03/10/2023',y:[31.91,32.32,31.91,32.29]},{ x:'03/13/2023',y:[32.48,32.50,32.24,32.28]},{ x:'03/14/2023',y:[32.67,32.75,32.61,32.66]},{ x:'03/15/2023',y:[32.21,32.34,32.18,32.27]},{ x:'03/16/2023',y:[32.90,33.00,32.80,32.93]},{ x:'03/17/2023',y:[32.66,32.71,32.50,32.71]},{ x:'03/20/2023',y:[32.71,33.07,32.62,33.06]},{ x:'03/21/2023',y:[32.93,32.93,32.86,32.92]},{ x:'03/22/2023',y:[32.62,32.62,32.40,32.43]},{ x:'03/23/2023',y:[32.70,32.70,32.44,32.54]},{ x:'03/24/2023',y:[32.58,32.63,32.52,32.61]},{ x:'03/27/2023',y:[32.79,32.90,32.78,32.79]},{ x:'03/28/2023',y:[32.30,32.30,32.10,32.20]},{ x:'03/29/2023',y:[32.11,32.18,32.04,32.17]},{ x:'03/30/2023',y:[32.18,32.19,32.14,32.14]},{ x:'03/31/2023',y:[32.25,32.26,32.20,32.26]},{ x:'04/06/2023',y:[33.17,33.44,33.15,33.41]},{ x:'04/07/2023',y:[33.45,33.56,33.41,33.43]},{ x:'04/10/2023',y:[33.33,33.33,33.21,33.26]},{ x:'04/11/2023',y:[33.16,33.16,33.02,33.12]},{ x:'04/12/2023',y:[33.11,33.11,33.06,33.07]},{ x:'04/13/2023',y:[33.09,33.10,33.00,33.03]},{ x:'04/14/2023',y:[32.93,32.93,32.73,32.76]},{ x:'04/17/2023',y:[32.54,32.58,32.53,32.54]},{ x:'04/18/2023',y:[32.29,32.30,32.16,32.20]},{ x:'04/19/2023',y:[32.29,32.31,32.21,32.29]},{ x:'04/20/2023',y:[32.30,32.42,32.27,32.40]},{ x:'04/21/2023',y:[32.54,32.65,32.54,32.64]},{ x:'04/24/2023',y:[32.48,32.48,32.44,32.48]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00795b 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());