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/26/2024',y:[43.75,47.30,43.75,45.40]},{ x:'04/29/2024',y:[46.20,48.40,43.60,43.95]},{ x:'04/30/2024',y:[44.95,46.80,42.70,46.25]},{ x:'05/02/2024',y:[46.25,47.35,45.10,46.50]},{ x:'05/03/2024',y:[47.25,47.80,45.65,46.40]},{ x:'05/06/2024',y:[46.50,50.50,46.00,48.80]},{ x:'05/07/2024',y:[49.00,49.75,47.50,48.90]},{ x:'05/08/2024',y:[48.75,49.90,46.60,46.90]},{ x:'05/09/2024',y:[47.85,49.30,47.20,47.20]},{ x:'05/10/2024',y:[47.20,48.00,45.50,46.30]},{ x:'05/13/2024',y:[47.30,47.60,45.80,45.95]},{ x:'05/14/2024',y:[45.85,46.50,45.75,45.85]},{ x:'05/15/2024',y:[46.10,48.20,45.85,47.30]},{ x:'05/16/2024',y:[48.00,49.20,46.00,46.50]},{ x:'05/17/2024',y:[48.50,51.10,47.50,48.00]},{ x:'05/20/2024',y:[47.80,48.70,47.40,47.50]},{ x:'05/21/2024',y:[47.10,48.20,46.70,48.05]},{ x:'05/22/2024',y:[48.05,52.60,47.90,49.20]},{ x:'05/23/2024',y:[51.00,51.80,48.75,49.00]},{ x:'05/24/2024',y:[48.25,51.50,47.65,50.10]},{ x:'06/11/2024',y:[67.70,69.00,67.50,68.90]},{ x:'06/12/2024',y:[69.00,69.00,67.00,68.50]},{ x:'06/13/2024',y:[69.30,70.70,68.10,70.60]},{ x:'06/14/2024',y:[71.20,71.20,69.50,70.60]},{ x:'06/17/2024',y:[71.00,75.20,71.00,73.50]},{ x:'06/18/2024',y:[74.90,77.80,74.20,77.80]},{ x:'06/19/2024',y:[79.00,79.40,72.00,73.10]},{ x:'06/20/2024',y:[72.90,75.00,72.10,73.70]},{ x:'06/21/2024',y:[71.20,73.30,68.40,71.10]},{ x:'06/24/2024',y:[70.90,72.70,67.00,68.30]},{ x:'06/25/2024',y:[68.00,70.80,65.80,68.60]},{ x:'06/26/2024',y:[69.00,75.40,69.00,75.40]},{ x:'06/27/2024',y:[76.40,82.90,76.20,82.90]},{ x:'06/28/2024',y:[87.30,91.10,85.00,87.00]},{ x:'07/01/2024',y:[87.40,92.90,87.20,88.10]},{ x:'07/02/2024',y:[87.90,91.90,86.60,88.70]},{ x:'07/03/2024',y:[89.60,91.50,86.70,91.50]},{ x:'07/04/2024',y:[91.00,100.50,89.30,92.20]},{ x:'07/05/2024',y:[93.40,95.80,92.50,93.10]},{ x:'07/12/2024',y:[104.50,105.50,99.90,100.00]},{ x:'07/15/2024',y:[99.90,103.00,96.60,96.60]},{ x:'07/16/2024',y:[96.00,97.70,92.30,93.50]},{ x:'07/17/2024',y:[94.00,101.50,93.40,96.90]},{ x:'07/18/2024',y:[93.80,95.40,91.00,92.60]},{ x:'07/19/2024',y:[94.40,97.60,91.50,92.40]},{ x:'07/22/2024',y:[93.00,94.30,90.50,91.80]},{ x:'07/23/2024',y:[94.60,96.40,92.00,92.00]},{ x:'07/26/2024',y:[88.20,92.80,87.00,90.20]},{ x:'07/29/2024',y:[92.60,93.60,82.90,83.60]},{ x:'07/30/2024',y:[83.60,87.60,82.50,86.80]},{ x:'07/31/2024',y:[86.00,87.40,82.10,82.40]},{ x:'08/01/2024',y:[85.70,86.40,82.20,82.20]},{ x:'08/02/2024',y:[79.30,81.20,78.00,78.30]},{ x:'08/05/2024',y:[75.10,75.40,70.50,70.50]},{ x:'08/06/2024',y:[73.00,74.30,63.70,69.60]},{ x:'08/07/2024',y:[72.00,76.50,71.50,76.50]},{ x:'08/08/2024',y:[75.60,77.30,73.30,74.00]},{ x:'08/09/2024',y:[76.50,79.80,76.50,77.20]},{ x:'08/12/2024',y:[79.00,79.80,76.80,77.80]},{ x:'08/13/2024',y:[78.60,79.20,76.60,78.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3312 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());