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:[10.90,10.96,10.79,10.86]},{ x:'01/24/2024',y:[10.75,10.98,10.72,10.93]},{ x:'01/25/2024',y:[10.70,10.72,10.58,10.59]},{ x:'01/26/2024',y:[10.61,10.65,10.54,10.63]},{ x:'01/29/2024',y:[10.53,10.59,10.49,10.59]},{ x:'01/30/2024',y:[10.62,10.74,10.60,10.73]},{ x:'01/31/2024',y:[10.75,10.83,10.73,10.75]},{ x:'02/01/2024',y:[10.75,10.84,10.70,10.76]},{ x:'02/02/2024',y:[10.74,10.85,10.70,10.83]},{ x:'02/05/2024',y:[10.90,10.99,10.63,10.68]},{ x:'02/15/2024',y:[10.68,10.68,10.33,10.37]},{ x:'02/16/2024',y:[10.30,10.33,10.16,10.17]},{ x:'02/19/2024',y:[10.20,10.28,10.11,10.27]},{ x:'02/20/2024',y:[10.26,10.27,10.20,10.27]},{ x:'02/21/2024',y:[10.23,10.24,9.90,9.91]},{ x:'02/22/2024',y:[9.92,10.01,9.92,9.95]},{ x:'02/23/2024',y:[9.90,9.97,9.87,9.94]},{ x:'02/26/2024',y:[9.96,10.08,9.96,10.02]},{ x:'02/27/2024',y:[10.08,10.10,10.03,10.05]},{ x:'02/29/2024',y:[10.12,10.12,9.98,10.02]},{ x:'03/01/2024',y:[10.04,10.06,9.96,10.00]},{ x:'03/04/2024',y:[9.99,10.01,9.97,9.99]},{ x:'03/05/2024',y:[10.01,10.04,9.90,9.93]},{ x:'03/06/2024',y:[9.96,9.96,9.84,9.88]},{ x:'03/07/2024',y:[9.91,9.95,9.87,9.93]},{ x:'03/08/2024',y:[9.94,10.00,9.91,9.96]},{ x:'03/11/2024',y:[9.98,9.98,9.78,9.83]},{ x:'03/12/2024',y:[9.75,9.80,9.65,9.65]},{ x:'03/13/2024',y:[9.70,9.78,9.69,9.74]},{ x:'03/14/2024',y:[9.77,9.79,9.70,9.78]},{ x:'03/15/2024',y:[9.82,9.86,9.77,9.86]},{ x:'03/18/2024',y:[9.78,9.78,9.73,9.77]},{ x:'03/19/2024',y:[9.78,9.80,9.72,9.73]},{ x:'03/20/2024',y:[9.76,9.81,9.72,9.73]},{ x:'03/21/2024',y:[9.71,9.73,9.68,9.72]},{ x:'03/22/2024',y:[9.73,9.90,9.73,9.82]},{ x:'03/25/2024',y:[9.85,9.85,9.78,9.78]},{ x:'03/26/2024',y:[9.78,9.83,9.76,9.79]},{ x:'03/27/2024',y:[9.76,9.79,9.75,9.79]},{ x:'03/28/2024',y:[9.83,9.89,9.73,9.76]},{ x:'03/29/2024',y:[9.79,9.81,9.76,9.80]},{ x:'04/01/2024',y:[9.77,9.77,9.59,9.62]},{ x:'04/02/2024',y:[9.68,9.71,9.62,9.68]},{ x:'04/03/2024',y:[9.70,9.75,9.68,9.68]},{ x:'04/08/2024',y:[9.73,9.84,9.72,9.77]},{ x:'04/09/2024',y:[9.79,9.87,9.77,9.83]},{ x:'04/10/2024',y:[9.82,9.88,9.81,9.83]},{ x:'04/11/2024',y:[9.92,9.96,9.89,9.89]},{ x:'04/12/2024',y:[9.93,9.96,9.87,9.95]},{ x:'04/15/2024',y:[10.04,10.06,9.77,9.77]},{ x:'04/16/2024',y:[9.81,9.90,9.79,9.80]},{ x:'04/17/2024',y:[9.83,9.90,9.82,9.83]},{ x:'04/18/2024',y:[9.77,9.77,9.62,9.68]},{ x:'04/19/2024',y:[9.73,9.83,9.71,9.78]},{ x:'04/22/2024',y:[9.77,9.79,9.70,9.79]},{ x:'04/23/2024',y:[9.79,9.86,9.79,9.80]},{ x:'04/24/2024',y:[9.77,9.80,9.71,9.79]},{ x:'04/25/2024',y:[9.80,9.81,9.73,9.75]},{ x:'04/26/2024',y:[9.70,9.70,9.60,9.60]},{ x:'04/29/2024',y:[9.59,9.63,9.43,9.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00638r 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());