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/23/2024',y:[42.00,42.40,40.50,41.00]},{ x:'04/24/2024',y:[41.90,43.35,41.90,43.35]},{ x:'04/25/2024',y:[42.50,44.00,41.25,41.25]},{ x:'04/26/2024',y:[39.85,42.40,37.20,39.30]},{ x:'04/29/2024',y:[38.00,39.60,37.75,38.60]},{ x:'04/30/2024',y:[39.20,42.45,39.20,42.45]},{ x:'05/02/2024',y:[43.00,46.65,41.85,46.65]},{ x:'05/03/2024',y:[46.20,51.30,46.10,50.30]},{ x:'05/06/2024',y:[52.50,55.30,50.60,55.30]},{ x:'05/07/2024',y:[55.60,59.50,54.10,59.40]},{ x:'05/08/2024',y:[58.60,59.90,57.10,57.10]},{ x:'05/09/2024',y:[58.90,59.30,57.10,59.30]},{ x:'05/10/2024',y:[57.60,57.90,55.40,57.90]},{ x:'05/13/2024',y:[58.30,58.30,56.00,56.00]},{ x:'05/14/2024',y:[54.70,57.00,54.70,55.80]},{ x:'05/15/2024',y:[56.90,61.30,56.90,61.30]},{ x:'05/16/2024',y:[61.30,62.50,59.00,61.00]},{ x:'05/17/2024',y:[62.00,62.50,60.00,61.00]},{ x:'05/20/2024',y:[61.00,61.50,60.10,60.40]},{ x:'05/21/2024',y:[60.20,62.50,60.20,60.70]},{ x:'05/22/2024',y:[60.70,63.00,60.70,62.20]},{ x:'05/23/2024',y:[68.30,68.40,66.00,68.40]},{ x:'05/24/2024',y:[70.70,75.20,70.50,75.20]},{ x:'06/11/2024',y:[83.00,83.40,80.00,80.10]},{ x:'06/12/2024',y:[80.00,86.90,80.00,86.90]},{ x:'06/13/2024',y:[87.00,95.50,85.60,94.50]},{ x:'06/14/2024',y:[93.60,103.50,88.00,100.50]},{ x:'06/17/2024',y:[101.00,102.00,92.50,94.20]},{ x:'06/18/2024',y:[92.50,102.00,85.00,88.80]},{ x:'06/19/2024',y:[89.80,92.00,84.20,87.80]},{ x:'06/20/2024',y:[88.20,92.80,87.10,90.00]},{ x:'06/21/2024',y:[89.70,93.70,87.10,87.10]},{ x:'06/24/2024',y:[87.10,89.30,86.40,87.20]},{ x:'06/25/2024',y:[87.20,88.00,83.00,87.20]},{ x:'06/26/2024',y:[87.50,89.70,84.60,84.70]},{ x:'06/27/2024',y:[83.50,85.40,80.10,80.20]},{ x:'06/28/2024',y:[80.50,84.20,80.50,81.00]},{ x:'07/01/2024',y:[81.00,84.00,80.60,81.50]},{ x:'07/02/2024',y:[81.10,89.50,81.10,87.80]},{ x:'07/03/2024',y:[88.30,90.60,87.70,88.30]},{ x:'07/04/2024',y:[88.40,90.50,88.20,88.20]},{ x:'07/05/2024',y:[88.60,91.50,86.70,87.10]},{ x:'07/12/2024',y:[86.30,87.00,85.00,85.40]},{ x:'07/15/2024',y:[86.20,87.70,85.30,85.60]},{ x:'07/16/2024',y:[87.00,87.00,85.00,86.90]},{ x:'07/17/2024',y:[86.30,87.70,86.20,86.40]},{ x:'07/18/2024',y:[85.50,86.00,81.60,82.60]},{ x:'07/19/2024',y:[82.60,82.80,80.50,80.70]},{ x:'07/22/2024',y:[80.70,82.00,79.40,80.50]},{ x:'07/23/2024',y:[81.40,84.40,81.40,82.70]},{ x:'07/26/2024',y:[80.20,81.70,79.20,80.30]},{ x:'07/29/2024',y:[80.50,81.40,73.20,73.20]},{ x:'07/30/2024',y:[72.30,79.70,72.30,78.90]},{ x:'07/31/2024',y:[78.90,80.20,76.90,77.10]},{ x:'08/01/2024',y:[78.50,81.80,78.50,80.40]},{ x:'08/02/2024',y:[78.40,79.80,77.70,78.80]},{ x:'08/05/2024',y:[75.00,75.00,71.00,71.00]},{ x:'08/06/2024',y:[72.10,73.90,63.90,68.30]},{ x:'08/07/2024',y:[68.30,74.90,68.30,74.00]},{ x:'08/08/2024',y:[72.20,73.00,69.80,70.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3466 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());