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:[105.35,105.60,105.25,105.40]},{ x:'01/23/2024',y:[104.55,104.65,104.25,104.45]},{ x:'01/24/2024',y:[105.75,106.00,105.70,106.00]},{ x:'01/25/2024',y:[106.20,106.40,105.85,106.15]},{ x:'01/26/2024',y:[105.00,105.25,104.55,104.85]},{ x:'01/29/2024',y:[104.70,105.30,104.70,105.15]},{ x:'01/30/2024',y:[107.40,107.55,107.20,107.40]},{ x:'01/31/2024',y:[104.05,104.20,103.85,104.20]},{ x:'02/01/2024',y:[102.45,102.80,102.25,102.65]},{ x:'02/02/2024',y:[105.85,106.30,105.85,106.10]},{ x:'02/05/2024',y:[106.90,107.15,106.75,107.15]},{ x:'02/15/2024',y:[109.15,109.50,108.75,109.50]},{ x:'02/16/2024',y:[109.85,110.15,109.75,110.10]},{ x:'02/19/2024',y:[108.15,108.35,107.70,108.15]},{ x:'02/20/2024',y:[107.50,107.70,106.80,106.95]},{ x:'02/21/2024',y:[105.30,105.50,105.20,105.40]},{ x:'02/22/2024',y:[107.90,108.40,107.90,108.40]},{ x:'02/23/2024',y:[111.00,111.35,110.95,111.35]},{ x:'02/26/2024',y:[109.85,110.15,109.65,110.10]},{ x:'02/27/2024',y:[110.10,110.10,109.80,109.80]},{ x:'02/29/2024',y:[109.30,109.65,109.20,109.55]},{ x:'03/01/2024',y:[111.60,112.15,111.35,112.00]},{ x:'03/04/2024',y:[114.80,114.90,114.70,114.85]},{ x:'03/05/2024',y:[113.25,113.25,112.80,112.90]},{ x:'03/06/2024',y:[109.80,110.45,109.80,110.35]},{ x:'03/07/2024',y:[110.40,110.45,109.70,110.25]},{ x:'03/08/2024',y:[113.65,114.15,113.60,113.80]},{ x:'03/11/2024',y:[110.50,111.10,110.00,110.15]},{ x:'03/12/2024',y:[110.75,111.50,110.75,111.50]},{ x:'03/13/2024',y:[113.05,113.10,112.75,113.10]},{ x:'03/14/2024',y:[111.65,111.95,111.65,111.90]},{ x:'03/15/2024',y:[110.50,110.55,109.90,109.95]},{ x:'03/18/2024',y:[108.35,109.10,108.20,109.10]},{ x:'03/19/2024',y:[109.20,109.60,109.05,109.35]},{ x:'03/20/2024',y:[110.15,110.30,110.00,110.00]},{ x:'03/21/2024',y:[113.95,114.60,113.85,114.55]},{ x:'03/22/2024',y:[114.35,114.40,113.60,114.10]},{ x:'03/25/2024',y:[114.15,114.35,113.80,113.80]},{ x:'03/26/2024',y:[113.80,113.90,113.45,113.70]},{ x:'03/27/2024',y:[113.20,113.45,113.05,113.45]},{ x:'03/28/2024',y:[113.25,113.40,113.05,113.30]},{ x:'03/29/2024',y:[113.00,113.00,112.70,112.80]},{ x:'04/01/2024',y:[114.45,114.45,113.95,114.20]},{ x:'04/02/2024',y:[112.75,113.10,112.70,112.85]},{ x:'04/03/2024',y:[110.95,110.95,110.65,110.75]},{ x:'04/08/2024',y:[110.85,111.15,110.45,110.65]},{ x:'04/09/2024',y:[110.70,111.10,110.55,111.00]},{ x:'04/10/2024',y:[111.60,111.70,111.55,111.65]},{ x:'04/11/2024',y:[109.20,109.70,109.00,109.65]},{ x:'04/12/2024',y:[112.95,113.05,112.85,112.90]},{ x:'04/15/2024',y:[109.75,110.25,109.45,110.20]},{ x:'04/16/2024',y:[105.70,105.70,104.50,105.40]},{ x:'04/17/2024',y:[105.80,106.25,105.80,106.05]},{ x:'04/18/2024',y:[103.30,103.90,103.30,103.80]},{ x:'04/19/2024',y:[100.55,100.55,98.20,99.90]},{ x:'04/22/2024',y:[98.15,98.65,98.00,98.55]},{ x:'04/23/2024',y:[99.35,99.45,98.80,99.30]},{ x:'04/24/2024',y:[103.50,103.95,103.50,103.95]},{ x:'04/25/2024',y:[101.05,101.05,100.15,100.20]},{ x:'04/26/2024',y:[103.95,104.45,103.90,104.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00670l 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());