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/18/2023',y:[75.90,75.90,72.00,72.20]},{ x:'04/19/2023',y:[73.00,73.90,72.20,73.00]},{ x:'04/20/2023',y:[73.40,74.30,71.10,71.40]},{ x:'04/21/2023',y:[71.80,72.20,67.30,68.20]},{ x:'04/24/2023',y:[67.50,70.70,67.50,70.70]},{ x:'04/25/2023',y:[71.70,71.70,68.50,69.50]},{ x:'04/26/2023',y:[68.70,69.50,68.20,69.30]},{ x:'04/27/2023',y:[69.50,70.50,69.00,69.80]},{ x:'04/28/2023',y:[70.50,71.10,69.60,70.00]},{ x:'05/02/2023',y:[70.60,72.10,70.30,72.00]},{ x:'05/03/2023',y:[71.60,72.30,70.70,71.00]},{ x:'05/04/2023',y:[70.80,71.00,70.00,70.50]},{ x:'05/05/2023',y:[70.60,76.30,70.60,74.70]},{ x:'05/08/2023',y:[74.80,75.80,74.10,74.10]},{ x:'05/09/2023',y:[75.10,79.50,74.50,75.00]},{ x:'05/10/2023',y:[74.00,78.20,73.50,77.00]},{ x:'05/11/2023',y:[77.30,78.10,75.40,75.90]},{ x:'05/12/2023',y:[77.10,80.30,76.50,80.00]},{ x:'05/15/2023',y:[79.20,79.50,75.80,75.80]},{ x:'05/16/2023',y:[76.20,78.30,75.90,77.80]},{ x:'05/17/2023',y:[80.20,84.00,80.10,81.80]},{ x:'05/18/2023',y:[81.50,84.10,80.80,84.00]},{ x:'05/19/2023',y:[83.80,84.00,79.80,80.40]},{ x:'05/22/2023',y:[80.50,86.50,80.50,82.60]},{ x:'05/23/2023',y:[82.70,83.70,80.80,81.50]},{ x:'05/24/2023',y:[81.50,82.80,80.30,81.50]},{ x:'05/25/2023',y:[82.30,83.40,80.70,81.80]},{ x:'05/26/2023',y:[82.60,82.60,80.60,80.60]},{ x:'05/29/2023',y:[81.50,87.10,81.00,86.00]},{ x:'05/30/2023',y:[88.00,90.70,86.50,87.10]},{ x:'05/31/2023',y:[86.90,89.50,86.90,88.90]},{ x:'06/01/2023',y:[89.50,89.50,87.00,88.20]},{ x:'06/02/2023',y:[88.40,90.30,87.40,88.30]},{ x:'06/05/2023',y:[90.00,90.80,89.20,89.90]},{ x:'06/06/2023',y:[90.80,92.80,88.60,90.30]},{ x:'06/07/2023',y:[90.80,94.90,90.70,94.40]},{ x:'06/08/2023',y:[99.00,99.70,92.50,92.70]},{ x:'06/09/2023',y:[95.00,98.90,94.40,96.70]},{ x:'06/12/2023',y:[96.90,98.50,91.30,91.50]},{ x:'06/13/2023',y:[92.50,93.00,91.00,91.70]},{ x:'06/14/2023',y:[92.50,93.20,91.60,92.00]},{ x:'06/15/2023',y:[92.60,94.50,91.50,93.80]},{ x:'06/16/2023',y:[95.50,98.50,95.10,95.60]},{ x:'06/19/2023',y:[95.60,101.50,95.20,101.00]},{ x:'06/20/2023',y:[104.50,105.00,97.70,102.00]},{ x:'06/21/2023',y:[106.00,112.00,106.00,112.00]},{ x:'06/26/2023',y:[110.00,111.00,103.50,103.50]},{ x:'06/27/2023',y:[104.50,106.50,101.00,101.00]},{ x:'06/28/2023',y:[104.00,105.00,100.50,102.00]},{ x:'06/29/2023',y:[101.00,103.00,100.50,102.50]},{ x:'06/30/2023',y:[103.00,104.50,100.50,104.00]},{ x:'07/03/2023',y:[105.00,108.00,104.00,108.00]},{ x:'07/04/2023',y:[107.00,108.00,103.50,105.00]},{ x:'07/05/2023',y:[107.00,109.50,105.00,105.50]},{ x:'07/06/2023',y:[105.50,109.00,105.50,108.00]},{ x:'07/07/2023',y:[109.50,110.50,102.00,104.00]},{ x:'07/10/2023',y:[97.00,97.00,93.60,93.60]},{ x:'07/11/2023',y:[93.30,93.30,90.70,91.60]},{ x:'07/12/2023',y:[92.60,94.50,91.80,92.00]},{ x:'07/13/2023',y:[93.50,94.40,91.50,92.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6203 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());