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/10/2024',y:[74.75,74.90,74.60,74.80]},{ x:'04/11/2024',y:[74.40,74.55,74.20,74.55]},{ x:'04/12/2024',y:[75.60,76.00,75.60,75.95]},{ x:'04/15/2024',y:[75.15,75.15,74.85,75.00]},{ x:'04/16/2024',y:[73.85,73.95,73.60,73.95]},{ x:'04/17/2024',y:[73.95,74.20,73.95,74.00]},{ x:'04/18/2024',y:[73.30,73.30,72.90,73.00]},{ x:'04/19/2024',y:[72.40,72.40,71.30,71.90]},{ x:'04/22/2024',y:[71.40,71.75,71.25,71.75]},{ x:'04/23/2024',y:[72.15,72.15,71.95,72.05]},{ x:'04/24/2024',y:[73.55,73.60,73.35,73.50]},{ x:'04/25/2024',y:[72.80,72.80,72.35,72.45]},{ x:'04/26/2024',y:[73.40,73.85,73.40,73.85]},{ x:'04/29/2024',y:[74.20,74.50,74.20,74.45]},{ x:'04/30/2024',y:[74.50,74.50,74.20,74.25]},{ x:'05/02/2024',y:[73.10,73.10,72.90,72.95]},{ x:'05/03/2024',y:[73.75,73.75,73.50,73.60]},{ x:'05/06/2024',y:[74.45,74.45,74.35,74.40]},{ x:'05/07/2024',y:[75.00,75.35,75.00,75.25]},{ x:'05/08/2024',y:[75.30,75.45,75.25,75.25]},{ x:'05/09/2024',y:[75.25,75.45,75.15,75.30]},{ x:'05/10/2024',y:[75.60,75.65,75.45,75.45]},{ x:'05/13/2024',y:[75.60,76.00,75.60,76.00]},{ x:'05/14/2024',y:[75.90,75.90,75.60,75.60]},{ x:'05/15/2024',y:[76.00,76.30,75.95,76.00]},{ x:'05/16/2024',y:[76.95,77.05,76.80,76.90]},{ x:'05/17/2024',y:[76.90,77.10,76.70,77.00]},{ x:'05/20/2024',y:[77.05,77.15,76.90,77.10]},{ x:'05/21/2024',y:[77.70,77.70,77.45,77.60]},{ x:'05/22/2024',y:[77.85,77.90,77.75,77.80]},{ x:'05/23/2024',y:[78.20,78.40,78.05,78.30]},{ x:'05/24/2024',y:[77.70,77.70,77.25,77.35]},{ x:'06/11/2024',y:[79.30,79.55,79.30,79.35]},{ x:'06/12/2024',y:[80.00,80.30,79.90,80.20]},{ x:'06/13/2024',y:[81.45,81.55,81.20,81.40]},{ x:'06/14/2024',y:[81.40,81.85,81.40,81.75]},{ x:'06/17/2024',y:[82.00,82.15,81.85,82.00]},{ x:'06/18/2024',y:[83.05,83.15,82.90,83.15]},{ x:'06/19/2024',y:[83.25,83.30,83.10,83.25]},{ x:'06/20/2024',y:[83.30,83.60,83.30,83.60]},{ x:'06/21/2024',y:[82.55,82.60,81.95,82.15]},{ x:'06/24/2024',y:[82.25,82.25,81.60,81.75]},{ x:'06/25/2024',y:[81.05,81.30,80.90,81.30]},{ x:'06/26/2024',y:[82.10,82.45,82.10,82.45]},{ x:'06/27/2024',y:[82.40,82.40,82.10,82.30]},{ x:'06/28/2024',y:[82.85,83.20,82.85,82.95]},{ x:'07/01/2024',y:[82.50,82.70,82.30,82.70]},{ x:'07/02/2024',y:[82.90,83.00,82.75,83.00]},{ x:'07/03/2024',y:[83.85,84.45,83.85,84.45]},{ x:'07/04/2024',y:[85.00,85.10,84.55,84.65]},{ x:'07/05/2024',y:[84.45,84.55,84.25,84.40]},{ x:'07/12/2024',y:[84.65,84.70,84.35,84.50]},{ x:'07/15/2024',y:[85.30,85.80,85.25,85.80]},{ x:'07/16/2024',y:[85.90,86.05,85.80,85.95]},{ x:'07/17/2024',y:[85.70,85.70,85.15,85.15]},{ x:'07/18/2024',y:[83.55,83.55,83.10,83.10]},{ x:'07/19/2024',y:[83.00,83.30,83.00,83.25]},{ x:'07/22/2024',y:[82.80,82.90,82.30,82.80]},{ x:'07/23/2024',y:[83.20,83.55,83.20,83.45]},{ x:'07/26/2024',y:[79.85,80.20,79.70,80.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00662 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());