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/06/2023',y:[79.50,79.80,77.40,79.60]},{ x:'04/07/2023',y:[80.40,81.90,80.00,80.00]},{ x:'04/10/2023',y:[80.00,80.50,77.70,78.10]},{ x:'04/11/2023',y:[82.40,83.00,80.70,81.30]},{ x:'04/12/2023',y:[82.40,83.00,81.00,82.40]},{ x:'04/13/2023',y:[81.20,81.80,79.50,79.60]},{ x:'04/14/2023',y:[80.20,80.30,79.00,79.10]},{ x:'04/17/2023',y:[78.30,78.50,77.50,78.30]},{ x:'04/18/2023',y:[78.40,78.80,75.50,76.20]},{ x:'04/19/2023',y:[76.90,76.90,73.80,74.30]},{ x:'04/20/2023',y:[74.30,74.60,73.00,73.10]},{ x:'04/21/2023',y:[73.90,74.10,72.10,72.70]},{ x:'04/24/2023',y:[72.80,74.00,72.80,73.60]},{ x:'04/25/2023',y:[73.60,74.20,70.80,71.00]},{ x:'04/26/2023',y:[70.40,71.70,70.40,71.20]},{ x:'04/27/2023',y:[72.60,75.30,72.30,75.00]},{ x:'04/28/2023',y:[76.20,76.40,74.60,75.00]},{ x:'05/02/2023',y:[75.10,76.00,74.40,75.80]},{ x:'05/03/2023',y:[75.70,75.70,74.20,75.20]},{ x:'05/04/2023',y:[75.10,75.60,74.30,74.70]},{ x:'05/05/2023',y:[73.90,74.20,72.50,73.70]},{ x:'05/08/2023',y:[74.30,74.60,73.00,73.50]},{ 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]} ] }], 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());