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:'01/22/2024',y:[72.50,72.90,72.50,72.70]},{ x:'01/23/2024',y:[72.80,73.05,72.80,72.80]},{ x:'01/24/2024',y:[73.30,73.35,72.95,73.00]},{ x:'01/25/2024',y:[73.20,73.75,73.20,73.75]},{ x:'01/26/2024',y:[73.40,73.55,73.20,73.55]},{ x:'01/29/2024',y:[73.40,73.90,73.40,73.70]},{ x:'01/30/2024',y:[74.10,74.10,73.65,73.85]},{ x:'01/31/2024',y:[73.05,73.10,73.05,73.10]},{ x:'02/01/2024',y:[72.40,72.55,72.15,72.55]},{ x:'02/02/2024',y:[73.35,73.40,73.30,73.35]},{ x:'02/05/2024',y:[73.50,74.25,73.50,74.25]},{ x:'02/15/2024',y:[77.10,77.55,77.10,77.55]},{ x:'02/16/2024',y:[77.50,77.50,77.00,77.00]},{ x:'02/19/2024',y:[76.70,76.70,76.55,76.60]},{ x:'02/20/2024',y:[77.25,77.25,77.15,77.15]},{ x:'02/21/2024',y:[76.55,77.15,76.55,76.95]},{ x:'02/22/2024',y:[77.50,78.05,77.50,77.80]},{ x:'02/23/2024',y:[78.60,78.65,78.30,78.65]},{ x:'02/26/2024',y:[78.30,78.65,78.20,78.65]},{ x:'02/27/2024',y:[78.65,78.65,78.25,78.30]},{ x:'02/29/2024',y:[78.20,78.20,77.90,78.20]},{ x:'03/01/2024',y:[78.55,78.85,78.20,78.35]},{ x:'03/04/2024',y:[79.65,80.65,79.65,80.65]},{ x:'03/05/2024',y:[81.10,81.35,80.95,81.20]},{ x:'03/06/2024',y:[80.90,82.10,80.90,82.10]},{ x:'03/07/2024',y:[82.45,83.60,82.45,83.25]},{ x:'03/08/2024',y:[86.90,86.90,83.40,83.70]},{ x:'03/11/2024',y:[83.70,83.70,82.90,82.90]},{ x:'03/12/2024',y:[82.95,84.00,82.95,84.00]},{ x:'03/13/2024',y:[84.05,84.90,84.05,84.40]},{ x:'03/14/2024',y:[83.30,84.05,83.30,83.55]},{ x:'03/15/2024',y:[83.25,83.50,83.05,83.35]},{ x:'03/18/2024',y:[82.95,83.75,82.95,83.70]},{ x:'03/19/2024',y:[83.65,83.90,83.65,83.90]},{ x:'03/20/2024',y:[84.50,85.05,83.45,83.45]},{ x:'03/21/2024',y:[85.10,85.75,84.90,85.55]},{ x:'03/22/2024',y:[85.80,86.10,85.10,85.90]},{ x:'03/25/2024',y:[85.80,86.00,85.55,86.00]},{ x:'03/26/2024',y:[86.00,86.20,85.20,85.30]},{ x:'03/27/2024',y:[85.60,85.70,85.45,85.65]},{ x:'03/28/2024',y:[85.35,85.45,84.90,85.30]},{ x:'03/29/2024',y:[85.30,85.85,85.25,85.85]},{ x:'04/01/2024',y:[85.95,85.95,85.30,85.30]},{ x:'04/02/2024',y:[86.80,87.00,86.80,86.90]},{ x:'04/03/2024',y:[85.70,86.65,85.70,86.65]},{ x:'04/08/2024',y:[86.95,87.00,86.80,86.80]},{ x:'04/09/2024',y:[87.85,88.65,87.75,88.65]},{ x:'04/10/2024',y:[88.50,88.55,88.10,88.55]},{ x:'04/11/2024',y:[88.10,88.30,87.70,88.00]},{ x:'04/12/2024',y:[88.00,88.75,87.90,88.10]},{ x:'04/15/2024',y:[87.15,87.30,86.70,86.80]},{ x:'04/16/2024',y:[85.90,85.90,83.90,83.90]},{ x:'04/17/2024',y:[85.15,85.60,85.00,85.60]},{ x:'04/18/2024',y:[85.00,86.05,84.85,86.05]},{ x:'04/19/2024',y:[84.50,84.50,81.00,82.10]},{ x:'04/22/2024',y:[80.80,81.50,80.45,80.95]},{ x:'04/23/2024',y:[81.35,81.75,81.25,81.70]},{ x:'04/24/2024',y:[82.80,85.00,82.80,85.00]},{ x:'04/25/2024',y:[84.45,84.45,83.75,83.85]},{ x:'04/26/2024',y:[84.85,85.55,84.85,84.85]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0053 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());