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:'06/07/2023',y:[87.40,88.80,87.40,87.70]},{ x:'06/08/2023',y:[87.70,87.80,86.90,87.20]},{ x:'06/09/2023',y:[87.80,88.10,87.20,87.30]},{ x:'06/12/2023',y:[87.60,87.80,86.00,86.30]},{ x:'06/13/2023',y:[86.70,87.00,85.50,85.90]},{ x:'06/14/2023',y:[86.00,87.30,86.00,86.80]},{ x:'06/15/2023',y:[86.90,86.90,86.10,86.20]},{ x:'06/16/2023',y:[85.70,86.50,85.60,85.80]},{ x:'06/19/2023',y:[85.50,86.00,85.00,85.90]},{ x:'06/20/2023',y:[85.70,85.70,84.80,85.20]},{ x:'06/21/2023',y:[85.20,87.00,85.00,86.50]},{ x:'06/26/2023',y:[86.50,87.90,85.70,87.50]},{ x:'06/27/2023',y:[87.50,88.40,86.00,88.00]},{ x:'06/28/2023',y:[88.50,93.70,87.00,89.50]},{ x:'06/29/2023',y:[92.50,98.40,92.50,98.40]},{ x:'06/30/2023',y:[100.00,108.00,99.00,108.00]},{ x:'07/03/2023',y:[112.00,118.50,109.50,118.50]},{ x:'07/04/2023',y:[121.50,125.50,118.50,125.00]},{ x:'07/05/2023',y:[122.00,128.50,121.00,126.50]},{ x:'07/06/2023',y:[125.50,129.50,124.50,127.00]},{ x:'07/07/2023',y:[124.00,127.00,121.00,122.50]},{ x:'07/10/2023',y:[123.00,123.50,118.00,120.00]},{ x:'07/11/2023',y:[121.50,125.00,119.00,123.50]},{ x:'07/12/2023',y:[125.00,127.00,122.50,126.00]},{ x:'07/13/2023',y:[128.00,128.00,123.00,123.00]},{ x:'07/14/2023',y:[124.50,125.50,120.00,124.50]},{ x:'07/17/2023',y:[127.00,132.50,127.00,131.50]},{ x:'07/18/2023',y:[130.50,134.00,120.00,124.00]},{ x:'07/19/2023',y:[125.00,132.00,125.00,131.00]},{ x:'07/20/2023',y:[134.00,137.50,118.00,118.50]},{ x:'07/21/2023',y:[118.00,122.00,115.00,120.00]},{ x:'07/24/2023',y:[120.00,121.00,108.00,109.00]},{ x:'07/25/2023',y:[111.00,111.50,105.00,108.00]},{ x:'07/26/2023',y:[108.00,111.00,105.50,108.00]},{ x:'07/27/2023',y:[107.00,112.00,107.00,107.00]},{ x:'07/28/2023',y:[108.50,109.50,106.50,108.50]},{ x:'07/31/2023',y:[109.00,109.50,100.00,101.50]},{ x:'08/01/2023',y:[103.50,104.50,101.50,103.00]},{ x:'08/02/2023',y:[102.00,103.00,97.00,97.20]},{ x:'08/04/2023',y:[98.50,98.50,95.80,96.70]},{ x:'08/07/2023',y:[96.70,104.00,95.00,103.50]},{ x:'08/08/2023',y:[102.00,103.00,99.90,100.50]},{ x:'08/09/2023',y:[99.50,107.00,99.40,101.50]},{ x:'08/10/2023',y:[101.00,101.00,97.30,97.70]},{ x:'08/11/2023',y:[98.50,99.50,97.40,98.30]},{ x:'08/14/2023',y:[97.80,98.00,95.50,96.60]},{ x:'08/15/2023',y:[98.00,99.00,97.50,97.90]},{ x:'08/16/2023',y:[96.80,98.00,95.70,95.80]},{ x:'08/17/2023',y:[95.00,97.80,94.10,97.20]},{ x:'08/18/2023',y:[96.60,98.40,95.00,95.10]},{ x:'08/21/2023',y:[95.20,96.00,94.30,94.60]},{ x:'08/22/2023',y:[95.60,96.40,92.40,92.80]},{ x:'08/23/2023',y:[92.80,94.00,91.80,93.00]},{ x:'08/24/2023',y:[94.00,98.90,94.00,95.00]},{ x:'08/25/2023',y:[94.00,95.60,93.50,93.70]},{ x:'08/28/2023',y:[93.00,93.70,91.00,91.30]},{ x:'08/29/2023',y:[91.60,92.10,91.00,91.60]},{ x:'08/30/2023',y:[92.70,94.70,92.20,93.10]},{ x:'08/31/2023',y:[94.50,97.80,93.80,96.70]},{ x:'09/01/2023',y:[96.90,97.40,94.40,96.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6451 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());