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:'07/12/2024',y:[76.60,78.10,76.20,78.00]},{ x:'07/15/2024',y:[78.40,80.20,77.60,79.50]},{ x:'07/16/2024',y:[80.60,81.40,79.00,79.50]},{ x:'07/17/2024',y:[79.90,80.60,78.80,79.70]},{ x:'07/18/2024',y:[79.50,79.50,78.30,79.50]},{ x:'07/19/2024',y:[79.40,79.40,78.20,78.20]},{ x:'07/22/2024',y:[78.10,78.20,75.50,76.50]},{ x:'07/23/2024',y:[76.70,77.60,76.70,77.40]},{ x:'07/26/2024',y:[76.20,76.50,75.20,76.50]},{ x:'07/29/2024',y:[76.50,77.10,75.00,75.00]},{ x:'07/30/2024',y:[75.00,76.00,74.00,75.70]},{ x:'07/31/2024',y:[75.60,76.80,75.40,76.00]},{ x:'08/01/2024',y:[77.00,77.80,76.40,77.30]},{ x:'08/02/2024',y:[76.30,80.50,76.20,79.10]},{ x:'08/05/2024',y:[78.20,78.50,71.20,71.70]},{ x:'08/06/2024',y:[73.20,73.60,68.30,70.80]},{ x:'08/07/2024',y:[71.30,76.00,71.30,75.50]},{ x:'08/08/2024',y:[74.00,76.50,74.00,75.00]},{ x:'08/09/2024',y:[76.10,78.30,76.00,77.60]},{ x:'08/12/2024',y:[78.50,83.00,78.50,82.50]},{ x:'08/13/2024',y:[83.40,84.40,82.10,82.50]},{ x:'08/14/2024',y:[83.30,83.60,81.30,81.70]},{ x:'08/15/2024',y:[82.00,84.50,82.00,84.10]},{ x:'08/16/2024',y:[85.50,86.00,83.80,85.00]},{ x:'08/19/2024',y:[84.70,86.40,84.70,85.10]},{ x:'08/20/2024',y:[86.00,86.20,84.10,84.20]},{ x:'08/21/2024',y:[84.90,86.30,84.40,84.60]},{ x:'08/22/2024',y:[85.50,85.50,83.10,83.60]},{ x:'08/23/2024',y:[83.60,84.20,82.80,84.00]},{ x:'08/26/2024',y:[84.40,88.00,84.40,85.80]},{ x:'08/27/2024',y:[85.70,86.30,85.10,86.00]},{ x:'08/28/2024',y:[86.00,87.80,85.30,86.50]},{ x:'08/29/2024',y:[86.20,90.90,85.40,90.40]},{ x:'08/30/2024',y:[91.00,92.00,89.40,89.40]},{ x:'09/02/2024',y:[92.00,97.50,92.00,92.90]},{ x:'09/03/2024',y:[93.00,96.30,92.70,93.90]},{ x:'09/04/2024',y:[90.00,92.90,86.90,91.20]},{ x:'09/05/2024',y:[92.20,95.60,91.80,93.10]},{ x:'09/06/2024',y:[94.70,98.80,93.60,96.40]},{ x:'09/09/2024',y:[96.40,97.90,94.30,97.90]},{ x:'09/10/2024',y:[99.50,102.50,94.00,95.40]},{ x:'09/11/2024',y:[95.00,96.20,92.40,94.10]},{ x:'09/12/2024',y:[96.00,98.00,95.40,97.40]},{ x:'09/13/2024',y:[97.40,97.70,95.30,96.50]},{ x:'09/16/2024',y:[96.50,101.00,96.50,98.60]},{ x:'09/18/2024',y:[98.90,99.70,96.00,96.50]},{ x:'09/19/2024',y:[96.30,97.10,94.00,95.40]},{ x:'09/20/2024',y:[96.30,99.60,94.50,98.30]},{ x:'09/23/2024',y:[99.00,100.50,95.40,96.10]},{ x:'09/24/2024',y:[96.50,97.70,94.60,95.60]},{ x:'09/25/2024',y:[97.40,99.60,94.70,95.00]},{ x:'09/26/2024',y:[96.60,96.60,89.90,91.20]},{ x:'09/27/2024',y:[92.00,92.90,90.00,90.00]},{ x:'09/30/2024',y:[90.00,90.00,87.80,88.00]},{ x:'10/01/2024',y:[87.20,88.70,86.50,87.00]},{ x:'10/04/2024',y:[87.00,87.00,83.40,84.30]},{ x:'10/07/2024',y:[85.50,85.50,83.90,84.00]},{ x:'10/08/2024',y:[84.00,84.10,82.40,83.90]},{ x:'10/09/2024',y:[84.20,84.50,81.80,81.80]},{ x:'10/11/2024',y:[82.30,82.50,80.80,81.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3003 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());