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:'11/30/2023',y:[14.42,14.45,14.42,14.44]},{ x:'12/01/2023',y:[14.46,14.46,14.40,14.42]},{ x:'12/04/2023',y:[14.40,14.40,14.21,14.21]},{ x:'12/05/2023',y:[14.20,14.20,13.94,13.94]},{ x:'12/06/2023',y:[13.88,14.02,13.83,14.02]},{ x:'12/07/2023',y:[13.81,13.82,13.78,13.81]},{ x:'12/08/2023',y:[13.81,13.85,13.70,13.80]},{ x:'12/11/2023',y:[13.70,13.70,13.51,13.55]},{ x:'12/12/2023',y:[13.80,13.86,13.80,13.83]},{ x:'12/18/2023',y:[14.00,14.02,13.91,13.94]},{ x:'12/19/2023',y:[13.94,13.94,13.79,13.88]},{ x:'01/10/2024',y:[13.30,13.32,13.27,13.27]},{ x:'01/11/2024',y:[13.45,13.55,13.45,13.55]},{ x:'01/12/2024',y:[13.44,13.51,13.44,13.50]},{ x:'01/15/2024',y:[13.38,13.53,13.36,13.43]},{ x:'01/16/2024',y:[13.38,13.43,13.15,13.15]},{ x:'01/17/2024',y:[13.05,13.05,12.83,12.83]},{ x:'01/18/2024',y:[12.94,12.94,12.78,12.82]},{ x:'01/19/2024',y:[12.81,12.87,12.70,12.70]},{ x:'01/22/2024',y:[12.87,12.87,12.38,12.41]},{ 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]} ] }], 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());