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:[62.40,62.70,61.30,61.40]},{ x:'04/07/2023',y:[61.50,62.50,61.40,62.30]},{ x:'04/10/2023',y:[63.10,64.00,62.70,62.90]},{ x:'04/11/2023',y:[65.70,66.40,64.20,65.00]},{ x:'04/12/2023',y:[65.70,66.40,64.50,66.10]},{ x:'04/13/2023',y:[66.50,68.30,65.80,67.10]},{ x:'04/14/2023',y:[67.30,68.30,67.00,67.50]},{ x:'04/17/2023',y:[67.80,68.70,67.10,68.00]},{ x:'04/18/2023',y:[68.50,68.50,66.10,66.10]},{ x:'04/19/2023',y:[66.90,68.20,66.90,67.00]},{ x:'04/20/2023',y:[67.60,67.90,66.10,67.00]},{ x:'04/21/2023',y:[68.70,68.70,64.70,65.00]},{ x:'04/24/2023',y:[64.90,67.00,64.20,66.40]},{ x:'04/25/2023',y:[67.00,67.20,64.00,64.40]},{ x:'04/26/2023',y:[64.30,64.80,63.80,64.80]},{ x:'04/27/2023',y:[65.50,67.00,64.40,66.40]},{ x:'04/28/2023',y:[67.30,73.00,67.30,73.00]},{ x:'05/02/2023',y:[75.00,79.90,75.00,76.20]},{ x:'05/03/2023',y:[76.20,83.80,76.20,83.80]},{ x:'05/04/2023',y:[84.80,91.90,84.80,87.90]},{ x:'05/05/2023',y:[86.50,95.90,86.50,93.40]},{ x:'05/08/2023',y:[95.30,95.80,91.30,93.90]},{ x:'05/09/2023',y:[93.90,93.90,90.60,92.50]},{ x:'05/10/2023',y:[89.40,89.80,85.90,87.20]},{ x:'05/11/2023',y:[88.80,88.80,85.40,85.50]},{ x:'05/12/2023',y:[86.20,89.00,84.80,88.10]},{ x:'05/15/2023',y:[86.20,87.40,84.00,84.00]},{ x:'05/16/2023',y:[84.60,86.10,84.10,84.10]},{ x:'05/17/2023',y:[86.00,88.30,85.60,87.60]},{ x:'05/18/2023',y:[88.50,88.50,86.60,86.80]},{ x:'05/19/2023',y:[87.20,88.60,85.30,85.30]},{ x:'05/22/2023',y:[85.50,90.80,85.50,90.80]},{ x:'05/23/2023',y:[90.40,91.00,88.60,90.00]},{ x:'05/24/2023',y:[88.50,88.80,86.30,87.40]},{ x:'05/25/2023',y:[87.00,87.00,81.80,82.00]},{ x:'05/26/2023',y:[81.50,83.60,79.00,79.70]},{ x:'05/29/2023',y:[79.70,81.00,77.40,80.00]},{ x:'05/30/2023',y:[81.30,81.80,78.70,78.80]},{ x:'05/31/2023',y:[78.90,83.70,78.90,81.60]},{ x:'06/01/2023',y:[81.20,89.20,81.20,86.80]},{ x:'06/02/2023',y:[87.80,90.00,86.00,88.50]},{ x:'06/05/2023',y:[90.40,93.50,89.00,91.60]},{ x:'06/06/2023',y:[92.30,93.40,87.20,88.00]},{ x:'06/07/2023',y:[88.20,90.00,88.20,88.90]},{ x:'06/08/2023',y:[90.00,92.30,86.70,87.70]},{ x:'06/09/2023',y:[89.10,89.10,86.00,86.60]},{ x:'06/12/2023',y:[89.30,91.40,87.30,87.70]},{ x:'06/13/2023',y:[88.50,89.60,87.50,87.90]},{ x:'06/14/2023',y:[88.00,89.20,86.90,87.00]},{ x:'06/15/2023',y:[87.00,88.00,86.40,87.40]},{ x:'06/16/2023',y:[87.50,88.30,86.60,86.70]},{ x:'06/19/2023',y:[86.90,90.80,84.50,90.00]},{ x:'06/20/2023',y:[89.40,97.60,88.30,93.00]},{ x:'06/21/2023',y:[93.00,96.70,91.20,93.50]},{ x:'06/26/2023',y:[93.50,102.50,93.50,102.50]},{ x:'06/27/2023',y:[108.50,112.50,107.00,112.50]},{ x:'06/28/2023',y:[112.00,112.00,101.50,101.50]},{ x:'06/29/2023',y:[102.00,103.00,97.50,98.60]},{ x:'06/30/2023',y:[99.70,105.50,99.30,100.50]},{ x:'07/03/2023',y:[101.00,103.50,99.90,102.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6111 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());