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/17/2024',y:[80.30,85.10,79.50,82.90]},{ x:'04/18/2024',y:[82.80,85.00,80.40,83.20]},{ x:'04/19/2024',y:[80.50,81.10,75.70,78.40]},{ x:'04/22/2024',y:[79.00,80.00,72.50,72.90]},{ x:'04/23/2024',y:[74.00,80.10,71.70,80.10]},{ x:'04/24/2024',y:[85.00,88.10,84.50,88.10]},{ x:'04/25/2024',y:[96.90,96.90,91.30,96.90]},{ x:'04/26/2024',y:[100.00,101.00,92.50,92.80]},{ x:'04/29/2024',y:[92.60,95.80,90.40,91.10]},{ x:'04/30/2024',y:[91.60,96.00,89.10,93.00]},{ x:'05/02/2024',y:[91.80,93.00,90.40,90.80]},{ x:'05/03/2024',y:[91.50,92.60,89.80,90.00]},{ x:'05/06/2024',y:[90.50,92.00,87.60,90.50]},{ x:'05/07/2024',y:[91.00,91.00,88.50,88.60]},{ x:'05/08/2024',y:[90.50,92.90,89.00,92.90]},{ x:'05/09/2024',y:[92.50,93.90,89.50,90.10]},{ x:'05/10/2024',y:[91.20,91.20,89.10,90.50]},{ x:'05/13/2024',y:[92.50,93.90,91.20,93.90]},{ x:'05/14/2024',y:[94.60,94.60,92.00,92.50]},{ x:'05/15/2024',y:[92.30,92.30,89.00,89.50]},{ x:'05/16/2024',y:[90.40,94.30,89.10,93.90]},{ x:'05/17/2024',y:[93.90,94.10,90.20,91.80]},{ x:'05/20/2024',y:[91.80,91.90,82.70,83.10]},{ x:'05/21/2024',y:[82.50,83.80,78.00,79.10]},{ x:'05/22/2024',y:[78.50,84.50,78.50,81.50]},{ x:'05/23/2024',y:[81.50,81.50,73.40,73.40]},{ x:'05/24/2024',y:[73.80,74.30,70.00,71.10]},{ x:'06/11/2024',y:[84.20,85.00,77.20,77.30]},{ x:'06/12/2024',y:[77.50,78.00,73.60,73.80]},{ x:'06/13/2024',y:[74.10,75.50,74.10,74.10]},{ x:'06/14/2024',y:[74.00,74.40,72.00,72.00]},{ x:'06/17/2024',y:[72.10,73.00,71.50,71.50]},{ x:'06/18/2024',y:[71.90,73.50,71.30,72.60]},{ x:'06/19/2024',y:[73.50,73.70,70.50,70.90]},{ x:'06/20/2024',y:[71.00,71.60,65.60,66.80]},{ x:'06/21/2024',y:[66.80,66.80,63.50,64.10]},{ x:'06/24/2024',y:[65.50,69.00,65.00,67.00]},{ x:'06/25/2024',y:[67.00,68.20,64.60,66.50]},{ x:'06/26/2024',y:[66.90,71.00,66.90,69.40]},{ x:'06/27/2024',y:[69.50,70.40,67.60,67.60]},{ x:'06/28/2024',y:[68.10,69.70,67.60,69.20]},{ x:'07/01/2024',y:[69.80,74.60,69.80,72.50]},{ x:'07/02/2024',y:[73.00,73.40,70.20,71.00]},{ x:'07/03/2024',y:[71.50,72.50,70.10,70.90]},{ x:'07/04/2024',y:[71.20,71.80,70.40,70.40]},{ x:'07/05/2024',y:[71.90,75.00,71.50,73.20]},{ x:'07/12/2024',y:[66.00,71.50,64.50,67.60]},{ x:'07/15/2024',y:[69.90,70.60,66.20,68.00]},{ x:'07/16/2024',y:[70.80,71.10,66.40,68.00]},{ x:'07/17/2024',y:[68.10,69.80,67.90,68.20]},{ x:'07/18/2024',y:[67.60,68.20,65.20,65.80]},{ x:'07/19/2024',y:[65.00,66.30,64.00,64.40]},{ x:'07/22/2024',y:[64.30,64.70,59.80,61.60]},{ x:'07/23/2024',y:[62.60,64.20,59.80,60.60]},{ x:'07/26/2024',y:[58.80,59.70,56.70,59.30]},{ x:'07/29/2024',y:[61.00,61.20,56.90,57.30]},{ x:'07/30/2024',y:[57.30,59.70,56.40,59.40]},{ x:'07/31/2024',y:[59.60,65.30,58.80,65.30]},{ x:'08/01/2024',y:[70.10,70.10,65.00,65.20]},{ x:'08/02/2024',y:[64.00,65.10,61.00,61.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6425 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());