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/29/2024',y:[39.35,40.95,39.20,40.95]},{ x:'04/30/2024',y:[40.95,42.35,40.50,40.50]},{ x:'05/02/2024',y:[41.00,44.55,41.00,44.55]},{ x:'05/03/2024',y:[44.55,48.80,44.55,48.80]},{ x:'05/06/2024',y:[49.70,53.60,49.70,53.60]},{ x:'05/07/2024',y:[55.50,56.50,50.00,52.40]},{ x:'05/08/2024',y:[54.20,54.90,51.70,51.70]},{ x:'05/09/2024',y:[50.10,53.40,49.70,52.30]},{ x:'05/10/2024',y:[54.10,55.00,54.10,54.80]},{ x:'05/13/2024',y:[54.20,54.20,54.20,54.20]},{ x:'05/14/2024',y:[54.20,57.30,52.20,56.20]},{ x:'05/15/2024',y:[58.10,59.40,56.50,58.10]},{ x:'05/16/2024',y:[61.70,63.30,61.00,62.50]},{ x:'05/17/2024',y:[68.70,68.70,68.00,68.70]},{ x:'05/20/2024',y:[75.00,75.50,73.00,75.50]},{ x:'05/21/2024',y:[75.50,83.00,75.00,83.00]},{ x:'05/22/2024',y:[91.30,91.30,91.30,91.30]},{ x:'05/23/2024',y:[100.00,100.00,100.00,100.00]},{ x:'05/24/2024',y:[91.30,109.00,91.30,108.50]},{ x:'06/11/2024',y:[90.10,90.10,88.90,88.90]},{ x:'06/12/2024',y:[86.00,86.00,80.10,84.00]},{ x:'06/13/2024',y:[81.10,84.40,80.00,84.10]},{ x:'06/14/2024',y:[81.20,87.00,80.70,87.00]},{ x:'06/17/2024',y:[87.00,88.50,83.80,87.30]},{ x:'06/18/2024',y:[87.50,89.60,87.50,88.70]},{ x:'06/19/2024',y:[88.10,89.00,86.10,89.00]},{ x:'06/20/2024',y:[89.00,90.00,89.00,90.00]},{ x:'06/21/2024',y:[93.10,99.00,92.30,99.00]},{ x:'06/24/2024',y:[101.00,108.50,101.00,108.50]},{ x:'06/25/2024',y:[110.50,119.00,110.50,118.00]},{ x:'06/26/2024',y:[109.00,109.00,106.50,106.50]},{ x:'06/27/2024',y:[106.50,109.00,98.00,106.50]},{ x:'06/28/2024',y:[104.50,108.50,100.00,106.00]},{ x:'07/01/2024',y:[105.00,105.00,100.50,104.00]},{ x:'07/02/2024',y:[100.00,104.50,100.00,102.50]},{ x:'07/03/2024',y:[103.50,103.50,99.40,99.80]},{ x:'07/04/2024',y:[100.00,100.00,96.00,99.00]},{ x:'07/05/2024',y:[96.60,98.90,92.80,93.50]},{ x:'07/12/2024',y:[97.00,105.50,97.00,103.00]},{ x:'07/15/2024',y:[103.00,105.50,100.00,102.00]},{ x:'07/16/2024',y:[102.00,103.50,98.50,99.20]},{ x:'07/17/2024',y:[98.00,99.90,98.00,99.80]},{ x:'07/18/2024',y:[101.50,101.50,92.20,97.90]},{ x:'07/19/2024',y:[97.90,97.90,88.20,95.10]},{ x:'07/22/2024',y:[93.50,93.50,86.10,90.90]},{ x:'07/23/2024',y:[86.10,95.80,86.10,95.80]},{ x:'07/26/2024',y:[90.30,94.30,90.30,93.80]},{ x:'07/29/2024',y:[87.10,93.50,87.10,92.50]},{ x:'07/30/2024',y:[90.00,90.90,89.00,90.50]},{ x:'07/31/2024',y:[87.20,90.00,87.20,90.00]},{ x:'08/01/2024',y:[91.20,92.90,88.20,92.90]},{ x:'08/02/2024',y:[93.90,93.90,90.60,93.30]},{ x:'08/05/2024',y:[86.10,89.90,86.00,89.00]},{ x:'08/06/2024',y:[85.00,93.00,82.00,93.00]},{ x:'08/07/2024',y:[93.70,93.70,93.00,93.60]},{ x:'08/08/2024',y:[93.70,93.70,93.60,93.60]},{ x:'08/09/2024',y:[91.70,91.70,88.30,91.70]},{ x:'08/12/2024',y:[86.20,89.50,86.20,86.70]},{ x:'08/13/2024',y:[88.00,88.10,86.70,88.10]},{ x:'08/14/2024',y:[86.20,86.20,85.00,85.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3064 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());