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:'03/01/2023',y:[83.80,83.80,82.10,82.70]},{ x:'03/02/2023',y:[82.70,83.10,81.30,82.40]},{ x:'03/03/2023',y:[82.00,84.10,81.60,83.60]},{ x:'03/06/2023',y:[83.20,85.70,83.20,85.40]},{ x:'03/07/2023',y:[85.60,87.00,83.50,83.50]},{ x:'03/08/2023',y:[83.00,85.60,82.70,85.50]},{ x:'03/09/2023',y:[85.90,85.90,83.70,83.70]},{ x:'03/10/2023',y:[83.00,83.00,81.50,81.50]},{ x:'03/13/2023',y:[80.50,81.90,79.80,81.90]},{ x:'03/14/2023',y:[80.60,83.50,80.50,82.10]},{ x:'03/15/2023',y:[83.20,85.40,83.20,83.80]},{ x:'03/16/2023',y:[83.80,84.80,82.20,83.10]},{ x:'03/17/2023',y:[84.40,91.30,84.20,90.50]},{ x:'03/20/2023',y:[90.00,92.30,89.10,91.90]},{ x:'03/21/2023',y:[91.80,91.90,88.50,90.20]},{ x:'03/22/2023',y:[90.30,91.00,89.00,89.80]},{ x:'03/23/2023',y:[89.90,90.80,88.60,89.60]},{ x:'03/24/2023',y:[89.30,93.00,88.40,90.10]},{ x:'03/27/2023',y:[90.30,92.90,90.30,90.90]},{ x:'03/28/2023',y:[92.70,94.50,89.00,93.10]},{ x:'03/29/2023',y:[95.20,99.50,91.30,91.30]},{ x:'03/30/2023',y:[93.00,93.40,90.40,90.40]},{ x:'03/31/2023',y:[91.00,92.60,90.20,92.30]},{ x:'04/06/2023',y:[92.20,94.80,91.00,94.50]},{ x:'04/07/2023',y:[95.50,96.50,94.10,94.50]},{ x:'04/10/2023',y:[95.60,102.00,95.10,99.90]},{ x:'04/11/2023',y:[101.00,103.50,99.90,100.00]},{ x:'04/12/2023',y:[100.00,100.50,97.40,98.00]},{ x:'04/13/2023',y:[97.50,98.00,94.30,94.70]},{ x:'04/14/2023',y:[92.80,95.90,92.80,94.40]},{ x:'04/17/2023',y:[94.00,95.60,93.90,95.60]},{ x:'04/18/2023',y:[95.60,96.40,94.30,95.30]},{ x:'04/19/2023',y:[95.90,99.70,95.60,99.10]},{ x:'04/20/2023',y:[99.50,101.50,98.00,100.00]},{ x:'04/21/2023',y:[101.00,103.00,97.10,97.10]},{ x:'04/24/2023',y:[97.60,97.70,94.80,94.80]},{ x:'04/25/2023',y:[95.30,95.80,89.10,89.70]},{ x:'04/26/2023',y:[88.40,90.70,87.80,88.70]},{ x:'04/27/2023',y:[88.20,88.60,86.30,88.20]},{ x:'04/28/2023',y:[89.00,96.50,88.80,96.50]},{ x:'05/02/2023',y:[97.00,100.00,96.30,96.30]},{ x:'05/03/2023',y:[96.50,97.10,92.90,94.10]},{ x:'05/04/2023',y:[93.70,97.90,93.70,97.00]},{ x:'05/05/2023',y:[96.20,99.00,96.10,98.80]},{ x:'05/08/2023',y:[99.50,100.00,98.00,98.80]},{ x:'05/09/2023',y:[99.00,99.50,96.20,98.20]},{ x:'05/10/2023',y:[99.00,99.00,96.20,96.40]},{ x:'05/11/2023',y:[96.60,97.00,93.60,95.60]},{ x:'05/12/2023',y:[95.20,97.70,94.70,97.70]},{ x:'05/15/2023',y:[96.50,96.50,91.20,93.40]},{ x:'05/16/2023',y:[93.80,95.30,93.80,94.20]},{ x:'05/17/2023',y:[94.20,95.00,93.50,94.60]},{ x:'05/18/2023',y:[95.00,96.50,94.50,96.10]},{ x:'05/19/2023',y:[96.10,97.00,94.20,94.50]},{ x:'05/22/2023',y:[94.50,97.40,94.30,96.80]},{ x:'05/23/2023',y:[96.50,96.80,94.80,95.90]},{ x:'05/24/2023',y:[96.80,96.80,95.20,95.80]},{ x:'05/25/2023',y:[96.10,97.80,95.20,95.40]},{ x:'05/26/2023',y:[96.00,101.50,94.70,100.00]},{ x:'05/29/2023',y:[101.00,105.00,99.40,100.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2455 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());