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/15/2024',y:[4.28,4.31,4.26,4.29]},{ x:'01/16/2024',y:[4.29,4.31,4.28,4.30]},{ x:'01/17/2024',y:[4.23,4.29,4.23,4.24]},{ x:'01/18/2024',y:[4.25,4.25,4.19,4.20]},{ x:'01/19/2024',y:[4.20,4.23,4.17,4.17]},{ x:'01/22/2024',y:[4.19,4.20,4.14,4.16]},{ x:'01/23/2024',y:[4.20,4.20,4.17,4.19]},{ x:'01/24/2024',y:[4.20,4.24,4.18,4.18]},{ x:'01/25/2024',y:[4.28,4.45,4.25,4.38]},{ x:'01/26/2024',y:[4.37,4.42,4.26,4.26]},{ x:'01/29/2024',y:[4.34,4.34,4.20,4.32]},{ x:'01/30/2024',y:[4.33,4.36,4.31,4.36]},{ x:'01/31/2024',y:[4.31,4.31,4.10,4.22]},{ x:'02/01/2024',y:[4.20,4.20,4.14,4.17]},{ x:'02/02/2024',y:[4.16,4.45,4.16,4.27]},{ x:'02/05/2024',y:[4.27,4.30,4.10,4.18]},{ x:'02/15/2024',y:[4.34,4.59,4.28,4.59]},{ x:'02/16/2024',y:[4.77,4.98,4.61,4.70]},{ x:'02/19/2024',y:[4.63,4.84,4.53,4.79]},{ x:'02/20/2024',y:[4.78,4.95,4.73,4.95]},{ x:'02/21/2024',y:[5.05,5.22,4.93,4.99]},{ x:'02/22/2024',y:[5.09,5.09,4.92,5.00]},{ x:'02/23/2024',y:[5.00,5.04,4.98,5.00]},{ x:'02/26/2024',y:[5.00,5.26,4.99,5.19]},{ x:'02/27/2024',y:[5.17,5.40,5.10,5.33]},{ x:'02/29/2024',y:[5.33,5.45,5.33,5.41]},{ x:'03/01/2024',y:[5.37,5.37,5.15,5.35]},{ x:'03/04/2024',y:[5.40,5.62,5.40,5.48]},{ x:'03/05/2024',y:[5.39,5.48,5.30,5.46]},{ x:'03/06/2024',y:[5.48,5.51,5.45,5.46]},{ x:'03/07/2024',y:[5.45,5.45,5.36,5.40]},{ x:'03/08/2024',y:[5.40,5.40,5.21,5.22]},{ x:'03/11/2024',y:[5.34,5.35,5.22,5.33]},{ x:'03/12/2024',y:[5.39,5.40,5.35,5.40]},{ x:'03/13/2024',y:[5.40,5.54,5.39,5.48]},{ x:'03/14/2024',y:[5.48,5.68,5.48,5.56]},{ x:'03/15/2024',y:[5.57,5.63,5.56,5.56]},{ x:'03/18/2024',y:[5.56,5.75,5.56,5.65]},{ x:'03/19/2024',y:[5.60,5.88,5.52,5.76]},{ x:'03/20/2024',y:[5.80,5.83,5.69,5.70]},{ x:'03/21/2024',y:[5.69,5.77,5.69,5.77]},{ x:'03/22/2024',y:[5.81,5.81,5.77,5.77]},{ x:'03/25/2024',y:[5.80,5.85,5.79,5.85]},{ x:'03/26/2024',y:[5.83,5.90,5.83,5.89]},{ x:'03/27/2024',y:[5.90,5.95,5.88,5.95]},{ x:'03/28/2024',y:[5.87,5.98,5.87,5.98]},{ x:'03/29/2024',y:[5.98,5.99,5.95,5.95]},{ x:'04/11/2024',y:[6.49,6.53,6.46,6.52]},{ x:'04/12/2024',y:[6.63,6.75,6.56,6.74]},{ x:'04/15/2024',y:[6.80,6.92,6.50,6.51]},{ x:'04/16/2024',y:[6.35,6.63,6.13,6.60]},{ x:'04/17/2024',y:[6.61,6.69,6.58,6.60]},{ x:'04/18/2024',y:[6.63,6.78,6.63,6.77]},{ x:'04/19/2024',y:[6.79,6.88,6.79,6.88]},{ x:'04/22/2024',y:[6.67,6.74,6.64,6.74]},{ x:'04/23/2024',y:[6.66,6.74,6.66,6.72]},{ x:'04/24/2024',y:[6.80,6.80,6.70,6.75]},{ x:'04/25/2024',y:[6.75,6.82,6.75,6.81]},{ x:'04/26/2024',y:[6.80,6.80,6.15,6.20]},{ x:'04/29/2024',y:[6.19,6.20,5.74,5.89]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "910861 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());