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:'04/03/2024',y:[60.30,66.20,59.60,63.90]},{ x:'04/08/2024',y:[64.90,70.20,64.90,70.20]},{ x:'04/09/2024',y:[74.10,75.00,67.00,67.00]},{ x:'04/10/2024',y:[69.80,73.70,67.80,73.70]},{ x:'04/11/2024',y:[74.60,80.10,72.20,72.30]},{ x:'04/12/2024',y:[73.10,78.60,73.10,74.30]},{ x:'04/15/2024',y:[75.00,77.20,72.00,72.00]},{ x:'04/16/2024',y:[70.60,71.70,67.00,69.60]},{ x:'04/17/2024',y:[71.50,74.00,70.20,72.40]},{ x:'04/18/2024',y:[71.00,78.50,70.60,75.40]},{ x:'04/19/2024',y:[74.00,76.70,70.00,74.00]},{ x:'04/22/2024',y:[72.70,73.40,67.60,67.80]},{ x:'04/23/2024',y:[70.30,72.30,66.80,68.60]},{ x:'04/24/2024',y:[71.50,75.40,71.20,75.40]},{ x:'04/25/2024',y:[77.30,77.50,73.10,73.40]},{ x:'04/26/2024',y:[75.60,77.20,72.10,72.20]},{ x:'04/29/2024',y:[73.20,74.50,71.20,71.70]},{ x:'04/30/2024',y:[71.40,75.20,71.30,73.60]},{ x:'05/02/2024',y:[73.40,76.60,72.00,75.10]},{ x:'05/03/2024',y:[76.40,76.50,73.00,74.10]},{ x:'05/06/2024',y:[75.30,81.50,75.30,81.50]},{ x:'05/07/2024',y:[82.60,83.40,74.50,75.10]},{ x:'05/08/2024',y:[76.00,76.50,74.00,74.80]},{ x:'05/09/2024',y:[80.90,82.20,77.60,81.00]},{ x:'05/10/2024',y:[82.30,86.50,80.30,80.80]},{ x:'05/13/2024',y:[80.30,80.30,77.50,78.00]},{ x:'05/14/2024',y:[77.90,80.20,77.60,79.10]},{ x:'05/15/2024',y:[79.10,81.70,78.00,78.40]},{ x:'05/16/2024',y:[79.80,81.50,78.60,79.40]},{ x:'05/17/2024',y:[79.70,81.50,78.80,81.30]},{ x:'05/20/2024',y:[81.70,85.80,80.80,82.30]},{ x:'05/21/2024',y:[82.50,90.50,82.50,90.50]},{ x:'05/22/2024',y:[91.00,95.00,87.90,89.10]},{ x:'05/23/2024',y:[89.10,91.50,87.20,88.70]},{ x:'05/24/2024',y:[87.90,91.00,87.60,90.30]},{ x:'06/11/2024',y:[91.80,92.50,89.00,92.00]},{ x:'06/12/2024',y:[93.00,93.90,91.50,93.00]},{ x:'06/13/2024',y:[94.00,94.90,92.10,92.70]},{ x:'06/14/2024',y:[92.70,97.20,91.20,95.10]},{ x:'06/17/2024',y:[96.20,96.90,93.60,94.50]},{ x:'06/18/2024',y:[95.30,96.50,91.80,91.80]},{ x:'06/19/2024',y:[92.00,92.40,88.00,88.00]},{ x:'06/20/2024',y:[88.00,90.50,87.50,90.50]},{ x:'06/21/2024',y:[89.40,89.80,88.20,88.30]},{ x:'06/24/2024',y:[88.30,89.30,85.70,85.80]},{ x:'06/25/2024',y:[85.80,87.00,84.40,87.00]},{ x:'06/26/2024',y:[87.90,90.60,87.70,89.70]},{ x:'06/27/2024',y:[90.00,90.50,88.00,88.10]},{ x:'06/28/2024',y:[88.90,91.50,88.30,91.00]},{ x:'07/01/2024',y:[90.90,91.80,89.60,89.70]},{ x:'07/02/2024',y:[90.90,91.20,88.00,88.50]},{ x:'07/03/2024',y:[89.20,92.40,89.20,90.60]},{ x:'07/04/2024',y:[91.60,92.30,89.00,89.00]},{ x:'07/05/2024',y:[89.10,90.00,88.00,90.00]},{ x:'07/12/2024',y:[101.00,101.50,96.40,100.50]},{ x:'07/15/2024',y:[104.00,110.50,103.00,110.50]},{ x:'07/16/2024',y:[113.50,121.50,113.00,121.50]},{ x:'07/17/2024',y:[127.00,133.50,126.00,133.50]},{ x:'07/18/2024',y:[132.00,136.00,125.00,126.00]},{ x:'07/19/2024',y:[128.00,130.00,118.00,120.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3013 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());