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/22/2024',y:[4.44,4.44,4.28,4.31]},{ x:'01/23/2024',y:[4.40,4.45,4.26,4.41]},{ x:'01/24/2024',y:[4.31,4.40,4.31,4.33]},{ x:'01/25/2024',y:[4.34,4.36,4.31,4.36]},{ x:'01/26/2024',y:[4.34,4.36,4.32,4.32]},{ x:'01/29/2024',y:[4.39,4.75,4.39,4.75]},{ x:'01/30/2024',y:[5.18,5.18,4.76,4.99]},{ x:'01/31/2024',y:[4.95,4.96,4.80,4.93]},{ x:'02/01/2024',y:[4.90,4.90,4.57,4.86]},{ x:'02/02/2024',y:[4.60,4.90,4.60,4.85]},{ x:'02/05/2024',y:[4.60,4.88,4.60,4.87]},{ x:'02/15/2024',y:[4.85,4.90,4.72,4.84]},{ x:'02/16/2024',y:[4.80,4.82,4.73,4.73]},{ x:'02/19/2024',y:[4.75,4.75,4.65,4.70]},{ x:'02/20/2024',y:[4.55,4.95,4.55,4.95]},{ x:'02/21/2024',y:[5.00,5.00,4.65,4.70]},{ x:'02/22/2024',y:[4.70,4.79,4.65,4.70]},{ x:'02/23/2024',y:[4.70,4.70,4.57,4.70]},{ x:'02/26/2024',y:[4.62,4.75,4.56,4.66]},{ x:'02/27/2024',y:[4.66,4.71,4.56,4.69]},{ x:'02/29/2024',y:[4.86,5.15,4.60,4.92]},{ x:'03/01/2024',y:[4.93,5.17,4.90,5.08]},{ x:'03/04/2024',y:[5.08,5.08,4.90,5.03]},{ x:'03/05/2024',y:[4.92,5.03,4.90,4.90]},{ x:'03/06/2024',y:[4.88,4.99,4.88,4.98]},{ x:'03/07/2024',y:[4.92,4.93,4.86,4.86]},{ x:'03/08/2024',y:[4.87,4.98,4.87,4.89]},{ x:'03/11/2024',y:[4.99,4.99,4.80,4.85]},{ x:'03/12/2024',y:[4.86,5.00,4.86,4.99]},{ x:'03/13/2024',y:[4.99,4.99,4.75,4.87]},{ x:'03/14/2024',y:[4.80,4.88,4.80,4.82]},{ x:'03/15/2024',y:[4.90,4.98,4.83,4.84]},{ x:'03/18/2024',y:[4.70,4.86,4.68,4.74]},{ x:'03/19/2024',y:[4.71,4.78,4.69,4.70]},{ x:'03/20/2024',y:[4.78,4.90,4.70,4.82]},{ x:'03/21/2024',y:[4.70,4.79,4.60,4.62]},{ x:'03/22/2024',y:[4.41,4.73,4.41,4.68]},{ x:'03/25/2024',y:[4.42,4.59,4.37,4.58]},{ x:'03/26/2024',y:[4.45,4.56,4.44,4.53]},{ x:'03/27/2024',y:[4.68,4.68,4.40,4.42]},{ x:'03/28/2024',y:[4.43,4.43,4.20,4.41]},{ x:'03/29/2024',y:[4.24,4.42,4.14,4.25]},{ x:'04/01/2024',y:[4.25,4.67,4.25,4.67]},{ x:'04/02/2024',y:[4.95,4.99,4.78,4.80]},{ x:'04/03/2024',y:[4.46,4.80,4.32,4.62]},{ x:'04/08/2024',y:[4.45,4.55,4.45,4.45]},{ x:'04/09/2024',y:[4.41,4.42,4.41,4.41]},{ x:'04/10/2024',y:[4.14,4.42,4.14,4.32]},{ x:'04/11/2024',y:[4.25,4.25,4.20,4.21]},{ x:'04/12/2024',y:[4.21,4.21,4.20,4.21]},{ x:'04/15/2024',y:[4.34,4.34,4.20,4.20]},{ x:'04/16/2024',y:[4.18,4.18,4.00,4.00]},{ x:'04/17/2024',y:[4.00,4.09,3.98,4.09]},{ x:'04/18/2024',y:[4.02,4.05,4.02,4.05]},{ x:'04/19/2024',y:[4.05,4.15,4.05,4.06]},{ x:'04/22/2024',y:[4.22,4.22,4.02,4.05]},{ x:'04/23/2024',y:[4.01,4.02,4.01,4.02]},{ x:'04/24/2024',y:[4.00,4.01,4.00,4.00]},{ x:'04/25/2024',y:[4.02,4.02,4.00,4.00]},{ x:'04/26/2024',y:[4.05,4.05,4.00,4.02]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4804 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());