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/23/2024',y:[12.52,12.75,12.47,12.68]},{ x:'01/24/2024',y:[13.00,13.18,12.74,12.74]},{ x:'01/25/2024',y:[13.19,13.33,13.07,13.33]},{ x:'01/26/2024',y:[13.50,13.50,13.24,13.24]},{ x:'01/29/2024',y:[13.20,13.23,12.93,13.14]},{ x:'01/30/2024',y:[12.99,12.99,12.77,12.77]},{ x:'01/31/2024',y:[12.76,12.76,12.54,12.63]},{ x:'02/01/2024',y:[12.63,12.85,12.55,12.70]},{ x:'02/02/2024',y:[12.58,12.87,12.58,12.65]},{ x:'02/05/2024',y:[12.52,12.65,12.52,12.65]},{ x:'02/15/2024',y:[12.95,12.99,12.65,12.88]},{ x:'02/16/2024',y:[13.00,13.41,13.00,13.41]},{ x:'02/19/2024',y:[13.48,13.50,13.21,13.26]},{ x:'02/20/2024',y:[13.36,13.36,13.25,13.27]},{ x:'02/21/2024',y:[13.34,13.90,13.34,13.90]},{ x:'02/22/2024',y:[13.90,13.95,13.68,13.78]},{ x:'02/23/2024',y:[13.78,14.01,13.78,13.90]},{ x:'02/26/2024',y:[13.89,13.89,13.81,13.85]},{ x:'02/27/2024',y:[13.85,13.85,13.71,13.83]},{ x:'02/29/2024',y:[13.75,13.80,13.66,13.73]},{ x:'03/01/2024',y:[13.63,13.77,13.37,13.77]},{ x:'03/04/2024',y:[13.63,13.77,13.63,13.70]},{ x:'03/05/2024',y:[13.58,13.58,13.40,13.46]},{ x:'03/06/2024',y:[13.38,13.63,13.38,13.61]},{ x:'03/07/2024',y:[13.51,13.55,13.47,13.47]},{ x:'03/08/2024',y:[13.46,13.54,13.41,13.50]},{ x:'03/11/2024',y:[13.55,13.61,13.40,13.61]},{ x:'03/12/2024',y:[13.66,13.85,13.66,13.84]},{ x:'03/13/2024',y:[13.97,14.14,13.97,14.09]},{ x:'03/14/2024',y:[13.94,14.20,13.94,14.05]},{ x:'03/15/2024',y:[14.04,14.04,13.80,13.81]},{ x:'03/18/2024',y:[13.99,14.00,13.97,13.99]},{ x:'03/19/2024',y:[14.00,14.02,13.92,13.92]},{ x:'03/20/2024',y:[13.92,13.97,13.87,13.95]},{ x:'03/21/2024',y:[13.95,14.22,13.95,14.12]},{ x:'03/22/2024',y:[14.09,14.09,13.80,13.81]},{ x:'03/25/2024',y:[13.90,13.94,13.90,13.94]},{ x:'03/26/2024',y:[13.94,13.94,13.85,13.89]},{ x:'03/27/2024',y:[13.92,13.92,13.82,13.88]},{ x:'03/28/2024',y:[13.89,14.12,13.89,14.08]},{ x:'03/29/2024',y:[13.90,14.05,13.90,14.05]},{ x:'04/01/2024',y:[14.05,14.18,14.05,14.17]},{ x:'04/02/2024',y:[14.29,14.30,14.27,14.27]},{ x:'04/03/2024',y:[14.23,14.23,14.14,14.14]},{ x:'04/08/2024',y:[14.10,14.25,14.10,14.13]},{ x:'04/09/2024',y:[14.25,14.25,14.08,14.11]},{ x:'04/10/2024',y:[14.17,14.38,14.17,14.38]},{ x:'04/11/2024',y:[14.28,14.31,14.24,14.31]},{ x:'04/12/2024',y:[14.37,14.37,14.21,14.21]},{ x:'04/15/2024',y:[14.17,14.17,14.04,14.14]},{ x:'04/16/2024',y:[14.00,14.10,13.96,13.99]},{ x:'04/17/2024',y:[13.90,13.90,13.90,13.90]},{ x:'04/18/2024',y:[14.08,14.08,13.99,14.00]},{ x:'04/19/2024',y:[13.94,13.94,13.81,13.88]},{ x:'04/22/2024',y:[14.19,14.23,14.09,14.11]},{ x:'04/23/2024',y:[14.38,14.42,14.37,14.42]},{ x:'04/24/2024',y:[14.53,14.70,14.53,14.70]},{ x:'04/25/2024',y:[14.79,14.93,14.79,14.85]},{ x:'04/26/2024',y:[14.85,15.18,14.85,15.18]},{ x:'04/29/2024',y:[15.18,15.44,15.18,15.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00703 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());