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:[5.80,6.09,5.80,5.99]},{ x:'01/23/2024',y:[5.96,6.10,5.78,6.09]},{ x:'01/24/2024',y:[6.00,6.13,5.95,6.02]},{ x:'01/25/2024',y:[6.01,6.20,5.99,6.08]},{ x:'01/26/2024',y:[6.00,6.05,5.90,5.91]},{ x:'01/29/2024',y:[5.91,6.20,5.91,6.04]},{ x:'01/30/2024',y:[6.17,6.20,5.91,5.95]},{ x:'01/31/2024',y:[6.09,6.09,5.95,6.02]},{ x:'02/01/2024',y:[6.00,6.10,5.99,6.02]},{ x:'02/02/2024',y:[6.00,6.09,5.94,6.00]},{ x:'02/05/2024',y:[5.93,5.98,5.84,5.89]},{ x:'02/15/2024',y:[5.88,6.00,5.80,5.98]},{ x:'02/16/2024',y:[5.84,6.10,5.84,5.98]},{ x:'02/19/2024',y:[6.05,6.57,6.05,6.57]},{ x:'02/20/2024',y:[6.58,7.10,6.57,7.02]},{ x:'02/21/2024',y:[7.00,7.13,6.83,7.05]},{ x:'02/22/2024',y:[7.07,7.07,6.68,6.70]},{ x:'02/23/2024',y:[6.70,7.00,6.50,6.65]},{ x:'02/26/2024',y:[6.73,6.95,6.70,6.70]},{ x:'02/27/2024',y:[6.60,6.70,6.50,6.65]},{ x:'02/29/2024',y:[6.69,6.72,6.52,6.54]},{ x:'03/01/2024',y:[6.54,6.68,6.54,6.59]},{ x:'03/04/2024',y:[6.60,6.65,6.40,6.65]},{ x:'03/05/2024',y:[6.65,6.65,6.46,6.46]},{ x:'03/06/2024',y:[6.45,6.58,6.31,6.47]},{ x:'03/07/2024',y:[6.47,6.60,6.25,6.25]},{ x:'03/08/2024',y:[6.31,6.40,6.25,6.29]},{ x:'03/11/2024',y:[6.29,6.38,6.25,6.30]},{ x:'03/12/2024',y:[6.72,6.72,6.30,6.42]},{ x:'03/13/2024',y:[6.31,6.39,6.25,6.25]},{ x:'03/14/2024',y:[6.25,6.26,6.08,6.15]},{ x:'03/15/2024',y:[6.00,6.08,5.66,5.80]},{ x:'03/18/2024',y:[5.63,5.66,5.35,5.41]},{ x:'03/19/2024',y:[5.50,5.52,5.35,5.50]},{ x:'03/20/2024',y:[5.38,5.84,5.38,5.63]},{ x:'03/21/2024',y:[6.00,6.00,5.48,5.52]},{ x:'03/22/2024',y:[5.55,5.61,5.40,5.50]},{ x:'03/25/2024',y:[5.53,5.53,5.37,5.39]},{ x:'03/26/2024',y:[5.30,5.48,5.19,5.29]},{ x:'03/27/2024',y:[5.40,5.40,5.01,5.40]},{ x:'03/28/2024',y:[5.39,5.48,5.39,5.47]},{ x:'03/29/2024',y:[5.64,5.64,5.33,5.45]},{ x:'04/01/2024',y:[5.49,5.50,5.36,5.46]},{ x:'04/02/2024',y:[5.49,5.49,5.37,5.39]},{ x:'04/03/2024',y:[5.49,5.49,5.30,5.35]},{ x:'04/08/2024',y:[5.34,5.34,5.15,5.19]},{ x:'04/09/2024',y:[5.43,5.43,5.10,5.12]},{ x:'04/10/2024',y:[5.12,5.23,5.10,5.12]},{ x:'04/11/2024',y:[5.22,5.30,5.14,5.20]},{ x:'04/12/2024',y:[5.34,5.42,5.21,5.35]},{ x:'04/15/2024',y:[5.48,5.50,5.19,5.22]},{ x:'04/16/2024',y:[5.21,5.30,4.85,5.15]},{ x:'04/17/2024',y:[5.36,5.36,5.18,5.25]},{ x:'04/18/2024',y:[4.93,5.20,4.93,5.12]},{ x:'04/19/2024',y:[5.11,5.14,5.08,5.08]},{ x:'04/22/2024',y:[5.08,5.18,5.00,5.00]},{ x:'04/23/2024',y:[5.00,5.34,5.00,5.19]},{ x:'04/24/2024',y:[5.13,5.25,5.12,5.18]},{ x:'04/25/2024',y:[5.18,5.30,5.17,5.19]},{ x:'04/26/2024',y:[5.19,5.19,5.15,5.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3494 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());