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/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]},{ x:'07/29/2024',y:[80.95,81.15,80.80,81.15]},{ x:'07/30/2024',y:[80.60,80.65,80.15,80.60]},{ x:'07/31/2024',y:[80.25,80.55,80.10,80.20]},{ x:'08/01/2024',y:[82.60,82.60,82.00,82.35]},{ x:'08/02/2024',y:[79.40,79.50,78.65,78.80]},{ x:'08/05/2024',y:[76.20,76.30,74.40,74.60]},{ x:'08/06/2024',y:[76.20,77.00,76.20,76.55]},{ x:'08/07/2024',y:[76.20,77.20,76.00,77.05]},{ x:'08/08/2024',y:[75.10,75.50,74.95,75.10]},{ x:'08/09/2024',y:[77.20,77.25,76.50,76.75]},{ x:'08/12/2024',y:[77.25,77.60,77.20,77.50]},{ x:'08/13/2024',y:[77.70,77.80,77.50,77.60]},{ x:'08/14/2024',y:[79.50,79.50,78.95,79.05]},{ x:'08/15/2024',y:[79.40,79.65,79.15,79.45]} ] }], 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());