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:'05/09/2023',y:[73.80,74.30,72.50,73.50]},{ x:'05/10/2023',y:[73.50,73.60,72.70,73.10]},{ x:'05/11/2023',y:[73.20,73.30,70.40,70.60]},{ x:'05/12/2023',y:[70.40,73.00,70.20,72.80]},{ x:'05/15/2023',y:[72.20,72.60,71.40,72.20]},{ x:'05/16/2023',y:[73.90,74.40,72.40,72.40]},{ x:'05/17/2023',y:[72.40,75.20,72.40,74.70]},{ x:'05/18/2023',y:[76.00,77.80,75.40,77.40]},{ x:'05/19/2023',y:[79.00,79.10,76.30,76.50]},{ x:'05/22/2023',y:[77.50,78.30,76.30,76.60]},{ x:'05/23/2023',y:[76.70,76.80,75.30,76.80]},{ x:'05/24/2023',y:[76.90,77.90,76.40,76.70]},{ x:'05/25/2023',y:[77.00,77.40,75.70,76.70]},{ x:'05/26/2023',y:[77.10,77.70,76.30,77.00]},{ x:'05/29/2023',y:[77.70,80.50,77.60,79.90]},{ x:'05/30/2023',y:[80.00,82.00,79.20,81.20]},{ x:'05/31/2023',y:[81.90,89.30,81.80,89.30]},{ x:'06/01/2023',y:[89.10,89.20,84.70,85.60]},{ x:'06/02/2023',y:[85.70,86.50,85.10,85.60]},{ x:'06/05/2023',y:[86.10,86.20,84.20,84.20]},{ x:'06/06/2023',y:[84.20,84.20,80.90,81.80]},{ x:'06/07/2023',y:[82.30,85.10,82.20,84.00]},{ x:'06/08/2023',y:[84.30,85.20,83.40,84.30]},{ x:'06/09/2023',y:[85.00,85.70,82.50,84.00]},{ x:'06/12/2023',y:[85.50,87.20,84.50,85.50]},{ x:'06/13/2023',y:[87.70,88.30,85.50,86.00]},{ x:'06/14/2023',y:[86.90,89.60,86.20,89.40]},{ x:'06/15/2023',y:[90.00,91.50,87.50,87.80]},{ x:'06/16/2023',y:[88.80,94.50,88.00,92.10]},{ x:'06/19/2023',y:[92.00,94.30,89.80,92.50]},{ x:'06/20/2023',y:[93.00,93.50,89.80,90.40]},{ x:'06/21/2023',y:[90.50,91.10,89.10,90.60]},{ x:'06/26/2023',y:[89.50,90.00,86.60,86.90]},{ x:'06/27/2023',y:[84.90,88.30,83.50,86.40]},{ x:'06/28/2023',y:[87.40,92.50,87.40,88.20]},{ x:'06/29/2023',y:[90.60,92.70,89.70,92.30]},{ x:'06/30/2023',y:[90.40,90.70,88.30,89.00]},{ x:'07/03/2023',y:[89.00,90.00,87.60,89.70]},{ x:'07/04/2023',y:[91.00,92.90,90.50,92.90]},{ x:'07/05/2023',y:[94.70,95.60,90.20,90.40]},{ x:'07/06/2023',y:[89.50,90.70,87.40,87.40]},{ x:'07/07/2023',y:[86.80,86.90,82.40,83.30]},{ x:'07/10/2023',y:[83.10,83.70,81.40,81.80]},{ x:'07/11/2023',y:[82.20,83.70,81.60,82.20]},{ x:'07/12/2023',y:[82.50,82.80,81.20,81.60]},{ x:'07/13/2023',y:[82.00,84.50,82.00,83.30]},{ x:'07/14/2023',y:[84.30,85.90,83.30,85.70]},{ x:'07/17/2023',y:[85.50,85.80,83.80,84.80]},{ x:'07/18/2023',y:[85.20,85.40,81.70,81.90]},{ x:'07/19/2023',y:[82.10,84.50,82.00,82.50]},{ x:'07/20/2023',y:[82.40,82.50,80.20,81.00]},{ x:'07/21/2023',y:[79.00,80.30,78.20,79.80]},{ x:'07/24/2023',y:[80.10,80.10,77.50,78.60]},{ x:'07/25/2023',y:[79.00,79.40,77.30,78.10]},{ x:'07/26/2023',y:[78.00,78.10,76.00,76.80]},{ x:'07/27/2023',y:[79.30,82.40,78.30,81.30]},{ x:'07/28/2023',y:[82.90,83.80,81.70,83.70]},{ x:'07/31/2023',y:[84.90,85.20,81.60,81.90]},{ x:'08/01/2023',y:[82.70,84.50,82.60,82.60]},{ x:'08/02/2023',y:[82.60,82.90,79.60,80.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3260 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());