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/26/2022',y:[24.35,24.40,24.35,24.40]},{ x:'12/27/2022',y:[24.48,24.60,24.48,24.57]},{ x:'12/28/2022',y:[24.18,24.18,24.07,24.15]},{ x:'12/29/2022',y:[23.96,23.96,23.95,23.96]},{ x:'12/30/2022',y:[24.00,24.00,23.97,23.97]},{ x:'01/03/2023',y:[23.82,24.06,23.69,24.06]},{ x:'01/04/2023',y:[24.10,24.26,24.10,24.26]},{ x:'01/05/2023',y:[24.38,24.38,24.33,24.37]},{ x:'01/06/2023',y:[24.50,24.71,24.50,24.71]},{ x:'01/09/2023',y:[25.00,25.41,25.00,25.41]},{ x:'01/10/2023',y:[25.49,25.68,25.49,25.66]},{ x:'01/11/2023',y:[25.59,25.71,25.59,25.71]},{ x:'01/12/2023',y:[25.71,25.71,25.61,25.67]},{ x:'01/13/2023',y:[25.81,25.87,25.74,25.74]},{ x:'01/16/2023',y:[25.91,26.03,25.91,26.03]},{ x:'01/17/2023',y:[25.91,25.93,25.83,25.83]},{ x:'01/30/2023',y:[26.00,26.54,26.00,26.51]},{ x:'01/31/2023',y:[26.28,26.28,26.25,26.25]},{ x:'02/01/2023',y:[26.25,26.37,26.25,26.34]},{ x:'02/02/2023',y:[26.77,26.82,26.76,26.82]},{ x:'02/03/2023',y:[26.88,26.89,26.87,26.87]},{ x:'02/06/2023',y:[26.73,26.73,26.50,26.50]},{ x:'02/07/2023',y:[26.31,26.44,26.31,26.44]},{ x:'02/08/2023',y:[26.69,26.93,26.69,26.93]},{ x:'02/09/2023',y:[26.90,26.93,26.90,26.93]},{ x:'02/10/2023',y:[26.86,26.86,26.85,26.85]},{ x:'02/13/2023',y:[26.71,26.71,26.60,26.60]},{ x:'02/14/2023',y:[26.78,26.88,26.73,26.83]},{ x:'02/15/2023',y:[26.61,26.65,26.40,26.40]},{ x:'02/16/2023',y:[26.62,26.92,26.62,26.92]},{ x:'02/17/2023',y:[26.50,26.59,26.38,26.38]},{ x:'02/20/2023',y:[26.47,26.47,26.43,26.43]},{ x:'02/21/2023',y:[26.36,26.48,26.36,26.37]},{ x:'02/22/2023',y:[26.00,26.13,25.89,26.13]},{ x:'02/23/2023',y:[26.40,26.40,26.40,26.40]},{ x:'02/24/2023',y:[26.43,26.43,26.23,26.23]},{ x:'03/01/2023',y:[25.98,26.29,25.98,26.29]},{ x:'03/02/2023',y:[26.29,26.32,26.29,26.32]},{ x:'03/03/2023',y:[26.33,26.35,26.33,26.35]},{ x:'03/06/2023',y:[26.50,26.79,26.50,26.75]},{ x:'03/07/2023',y:[26.82,26.91,26.82,26.91]},{ x:'03/08/2023',y:[26.41,26.50,26.41,26.50]},{ x:'03/09/2023',y:[26.40,26.45,26.40,26.45]},{ x:'03/10/2023',y:[26.05,26.05,25.86,26.01]},{ x:'03/13/2023',y:[26.01,26.23,26.01,26.23]},{ x:'03/14/2023',y:[26.23,26.23,25.80,25.80]},{ x:'03/15/2023',y:[26.14,26.14,25.99,26.00]},{ x:'03/16/2023',y:[25.73,25.88,25.73,25.83]},{ x:'03/17/2023',y:[26.18,26.24,26.17,26.24]},{ x:'03/20/2023',y:[26.19,26.19,26.15,26.15]},{ x:'03/21/2023',y:[26.16,26.29,26.15,26.22]},{ x:'03/22/2023',y:[26.29,26.57,26.29,26.56]},{ x:'03/23/2023',y:[26.69,26.92,26.69,26.92]},{ x:'03/24/2023',y:[26.99,27.01,26.99,27.01]},{ x:'03/27/2023',y:[26.88,26.99,26.85,26.87]},{ x:'03/28/2023',y:[26.74,26.78,26.70,26.70]},{ x:'03/29/2023',y:[26.65,26.67,26.65,26.67]},{ x:'03/30/2023',y:[26.93,26.95,26.81,26.95]},{ x:'03/31/2023',y:[27.10,27.17,27.10,27.17]},{ x:'04/06/2023',y:[26.90,26.90,26.82,26.82]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00735 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());