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/10/2023',y:[29.88,29.88,29.60,29.62]},{ x:'01/11/2023',y:[29.70,29.70,29.42,29.60]},{ x:'01/12/2023',y:[29.60,29.66,29.45,29.45]},{ x:'01/13/2023',y:[29.66,29.66,29.42,29.47]},{ x:'01/16/2023',y:[29.50,29.91,29.50,29.90]},{ x:'01/17/2023',y:[29.77,29.77,29.41,29.69]},{ x:'01/30/2023',y:[29.40,29.69,29.10,29.50]},{ x:'01/31/2023',y:[29.50,29.50,28.83,28.93]},{ x:'02/01/2023',y:[28.93,29.15,28.93,29.04]},{ x:'02/02/2023',y:[28.98,28.98,28.47,28.57]},{ x:'02/03/2023',y:[28.56,28.56,28.28,28.42]},{ x:'02/06/2023',y:[28.42,28.80,28.42,28.69]},{ x:'02/07/2023',y:[28.72,28.86,28.72,28.77]},{ x:'02/08/2023',y:[28.77,28.89,28.63,28.85]},{ x:'02/09/2023',y:[28.90,28.93,28.78,28.90]},{ x:'02/10/2023',y:[28.95,28.95,28.81,28.88]},{ x:'02/13/2023',y:[28.91,28.96,28.75,28.84]},{ x:'02/14/2023',y:[28.86,28.94,28.84,28.91]},{ x:'02/15/2023',y:[28.91,29.09,28.91,29.09]},{ x:'02/16/2023',y:[29.15,29.38,29.15,29.38]},{ x:'02/17/2023',y:[29.35,29.35,29.16,29.24]},{ x:'02/20/2023',y:[29.22,29.27,29.18,29.25]},{ x:'02/21/2023',y:[29.20,29.20,29.02,29.12]},{ x:'02/22/2023',y:[29.06,29.06,28.79,28.79]},{ x:'02/23/2023',y:[28.79,28.85,28.51,28.71]},{ x:'02/24/2023',y:[28.70,28.70,28.54,28.57]},{ x:'03/01/2023',y:[28.47,28.62,28.33,28.62]},{ x:'03/02/2023',y:[28.71,28.71,28.56,28.60]},{ x:'03/03/2023',y:[28.58,28.86,28.58,28.86]},{ x:'03/06/2023',y:[28.98,29.34,28.98,29.34]},{ x:'03/07/2023',y:[29.33,29.40,29.25,29.37]},{ x:'03/08/2023',y:[29.37,29.37,29.04,29.23]},{ x:'03/09/2023',y:[29.39,29.41,29.28,29.30]},{ x:'03/10/2023',y:[29.07,29.07,28.76,28.91]},{ x:'03/13/2023',y:[28.91,28.98,28.71,28.84]},{ x:'03/14/2023',y:[28.57,28.57,28.09,28.14]},{ x:'03/15/2023',y:[28.16,28.22,28.14,28.17]},{ x:'03/16/2023',y:[28.00,28.00,27.74,27.96]},{ x:'03/17/2023',y:[27.98,28.12,27.98,28.01]},{ x:'03/20/2023',y:[28.02,28.03,27.72,27.80]},{ x:'03/21/2023',y:[28.00,28.01,27.91,27.99]},{ x:'03/22/2023',y:[28.03,28.12,28.00,28.05]},{ x:'03/23/2023',y:[28.04,28.05,27.85,28.01]},{ x:'03/24/2023',y:[27.92,27.92,27.79,27.83]},{ x:'03/27/2023',y:[27.83,27.95,27.76,27.86]},{ x:'03/28/2023',y:[27.93,27.93,27.76,27.76]},{ x:'03/29/2023',y:[27.76,27.88,27.76,27.84]},{ x:'03/30/2023',y:[28.01,28.04,27.97,28.04]},{ x:'03/31/2023',y:[28.20,28.32,28.14,28.27]},{ x:'04/06/2023',y:[28.63,28.85,28.63,28.85]},{ x:'04/07/2023',y:[28.96,28.99,28.95,28.96]},{ x:'04/10/2023',y:[28.96,28.98,28.90,28.91]},{ x:'04/11/2023',y:[28.91,29.06,28.91,29.02]},{ x:'04/12/2023',y:[29.02,29.06,29.00,29.05]},{ x:'04/13/2023',y:[29.05,29.13,29.03,29.05]},{ x:'04/14/2023',y:[29.11,29.20,29.09,29.15]},{ x:'04/17/2023',y:[29.15,29.15,28.83,28.95]},{ x:'04/18/2023',y:[28.95,29.00,28.85,28.90]},{ x:'04/19/2023',y:[28.90,28.90,28.81,28.81]},{ x:'04/20/2023',y:[28.81,29.00,28.81,28.92]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00652 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());