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/15/2024',y:[72.80,73.00,69.70,69.70]},{ x:'04/16/2024',y:[69.70,69.80,64.00,64.70]},{ x:'04/17/2024',y:[66.90,66.90,65.20,65.20]},{ x:'04/18/2024',y:[64.60,66.20,64.10,64.50]},{ x:'04/19/2024',y:[64.00,64.10,58.70,60.90]},{ x:'04/22/2024',y:[61.20,61.50,58.30,58.30]},{ x:'04/23/2024',y:[60.00,60.30,58.60,59.50]},{ x:'04/24/2024',y:[60.40,61.50,60.10,60.80]},{ x:'04/25/2024',y:[60.00,62.60,59.60,60.90]},{ x:'04/26/2024',y:[61.80,64.00,61.10,61.90]},{ x:'04/29/2024',y:[62.50,64.40,62.20,63.30]},{ x:'04/30/2024',y:[64.00,64.70,62.90,63.30]},{ x:'05/02/2024',y:[63.00,64.20,62.30,63.20]},{ x:'05/03/2024',y:[64.00,64.70,63.00,63.30]},{ x:'05/06/2024',y:[64.00,64.50,63.40,63.60]},{ x:'05/07/2024',y:[64.60,64.90,62.50,63.60]},{ x:'05/08/2024',y:[66.00,67.30,64.80,66.10]},{ x:'05/09/2024',y:[65.50,67.80,64.70,65.00]},{ x:'05/10/2024',y:[66.90,67.50,64.90,65.80]},{ x:'05/13/2024',y:[65.80,67.40,64.60,66.70]},{ x:'05/14/2024',y:[66.70,68.00,66.60,67.10]},{ x:'05/15/2024',y:[68.40,70.30,67.60,68.40]},{ x:'05/16/2024',y:[69.50,74.70,69.30,72.90]},{ x:'05/17/2024',y:[74.40,77.50,73.50,76.00]},{ x:'05/20/2024',y:[76.80,79.40,75.60,79.00]},{ x:'05/21/2024',y:[78.50,79.60,77.40,79.10]},{ x:'05/22/2024',y:[79.60,81.00,77.20,79.80]},{ x:'05/23/2024',y:[82.20,82.50,76.60,79.60]},{ x:'05/24/2024',y:[78.70,87.50,78.50,87.50]},{ x:'06/11/2024',y:[87.50,89.00,85.30,88.00]},{ x:'06/12/2024',y:[88.00,93.60,87.10,89.00]},{ x:'06/13/2024',y:[91.00,97.50,89.40,95.40]},{ x:'06/14/2024',y:[96.40,97.10,93.60,94.40]},{ x:'06/17/2024',y:[94.00,99.00,93.80,94.80]},{ x:'06/18/2024',y:[96.00,104.00,95.80,104.00]},{ x:'06/19/2024',y:[108.00,111.00,104.50,109.00]},{ x:'06/20/2024',y:[108.00,119.50,107.00,119.50]},{ x:'06/21/2024',y:[121.50,125.00,116.00,122.00]},{ x:'06/24/2024',y:[125.00,127.00,111.00,114.00]},{ x:'06/25/2024',y:[112.00,116.00,108.50,115.00]},{ x:'06/26/2024',y:[119.00,126.50,118.50,126.50]},{ x:'06/27/2024',y:[129.50,130.00,122.50,123.50]},{ x:'06/28/2024',y:[124.50,129.50,123.00,123.50]},{ x:'07/01/2024',y:[123.50,135.00,121.00,130.00]},{ x:'07/02/2024',y:[128.50,131.50,123.00,125.00]},{ x:'07/03/2024',y:[126.50,137.50,126.50,137.50]},{ x:'07/04/2024',y:[139.50,150.50,137.50,141.00]},{ x:'07/05/2024',y:[142.00,149.00,137.50,143.50]},{ x:'07/12/2024',y:[139.50,142.50,134.00,138.00]},{ x:'07/15/2024',y:[139.00,148.50,136.00,140.50]},{ x:'07/16/2024',y:[141.50,144.00,138.00,140.50]},{ x:'07/17/2024',y:[142.00,151.50,141.50,145.00]},{ x:'07/18/2024',y:[140.50,148.00,139.50,148.00]},{ x:'07/19/2024',y:[147.00,148.00,136.50,137.00]},{ x:'07/22/2024',y:[138.00,139.00,127.00,127.00]},{ x:'07/23/2024',y:[132.50,133.00,125.00,126.00]},{ x:'07/26/2024',y:[117.00,125.50,116.50,125.00]},{ x:'07/29/2024',y:[127.00,132.00,122.50,125.00]},{ x:'07/30/2024',y:[123.50,131.50,120.50,128.50]},{ x:'07/31/2024',y:[128.50,132.00,126.50,126.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3450 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());