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:[40.60,42.60,40.00,40.00]},{ x:'01/23/2024',y:[40.00,44.00,39.85,44.00]},{ x:'01/24/2024',y:[45.50,48.40,45.20,48.40]},{ x:'01/25/2024',y:[48.75,51.40,45.70,45.70]},{ x:'01/26/2024',y:[45.65,47.80,44.80,47.30]},{ x:'01/29/2024',y:[47.90,48.25,46.30,47.90]},{ x:'01/30/2024',y:[47.00,47.30,45.50,45.50]},{ x:'01/31/2024',y:[45.20,46.45,45.05,45.75]},{ x:'02/01/2024',y:[45.75,48.20,45.55,45.75]},{ x:'02/02/2024',y:[45.90,46.20,43.50,43.55]},{ x:'02/05/2024',y:[43.55,44.85,42.20,43.00]},{ x:'02/15/2024',y:[46.90,47.30,45.45,47.30]},{ x:'02/16/2024',y:[49.70,52.00,49.00,52.00]},{ x:'02/19/2024',y:[53.00,55.00,51.70,53.00]},{ x:'02/20/2024',y:[53.50,54.10,50.20,50.50]},{ x:'02/21/2024',y:[50.90,55.50,50.70,55.50]},{ x:'02/22/2024',y:[56.60,58.50,54.60,56.00]},{ x:'02/23/2024',y:[57.30,57.40,53.80,54.60]},{ x:'02/26/2024',y:[56.00,60.00,55.00,60.00]},{ x:'02/27/2024',y:[61.00,62.80,56.80,59.80]},{ x:'02/29/2024',y:[65.00,65.70,62.00,65.70]},{ x:'03/01/2024',y:[67.20,71.30,66.50,68.90]},{ x:'03/04/2024',y:[70.00,70.50,66.40,68.50]},{ x:'03/05/2024',y:[69.50,71.20,67.40,68.50]},{ x:'03/06/2024',y:[69.70,71.50,68.10,68.60]},{ x:'03/07/2024',y:[68.60,69.50,65.00,67.10]},{ x:'03/08/2024',y:[67.50,69.90,65.30,66.20]},{ x:'03/11/2024',y:[72.80,72.80,72.80,72.80]},{ x:'03/12/2024',y:[78.00,80.00,77.80,80.00]},{ x:'03/13/2024',y:[82.20,83.40,77.90,81.00]},{ x:'03/14/2024',y:[79.60,80.90,72.90,75.60]},{ x:'03/15/2024',y:[74.40,78.30,73.10,77.80]},{ x:'03/18/2024',y:[79.00,84.00,79.00,84.00]},{ x:'03/19/2024',y:[84.00,85.50,81.60,81.60]},{ x:'03/20/2024',y:[81.50,81.50,79.10,79.50]},{ x:'03/21/2024',y:[81.00,83.50,80.00,82.60]},{ x:'03/22/2024',y:[82.50,82.60,81.10,82.00]},{ x:'03/25/2024',y:[82.00,88.40,82.00,88.40]},{ x:'03/26/2024',y:[86.60,87.90,81.50,84.90]},{ x:'03/27/2024',y:[89.40,91.00,86.50,88.50]},{ x:'03/28/2024',y:[86.00,87.00,80.00,82.90]},{ x:'03/29/2024',y:[82.90,90.90,82.40,87.90]},{ x:'04/01/2024',y:[89.90,96.60,89.50,96.60]},{ x:'04/02/2024',y:[99.30,101.00,95.40,95.80]},{ x:'04/03/2024',y:[95.80,100.50,93.00,96.60]},{ x:'04/08/2024',y:[96.10,99.20,96.00,98.10]},{ x:'04/09/2024',y:[96.80,98.60,96.70,98.30]},{ x:'04/10/2024',y:[101.50,102.50,94.00,95.30]},{ x:'04/11/2024',y:[96.80,96.80,95.70,96.70]},{ x:'04/12/2024',y:[98.40,100.00,97.50,97.90]},{ x:'04/15/2024',y:[99.00,99.00,97.00,98.60]},{ x:'04/16/2024',y:[98.40,98.40,92.30,93.50]},{ x:'04/17/2024',y:[94.00,97.00,94.00,97.00]},{ x:'04/18/2024',y:[96.90,100.00,96.90,100.00]},{ x:'04/19/2024',y:[99.10,100.00,94.00,97.50]},{ x:'04/22/2024',y:[97.60,97.90,87.80,87.80]},{ x:'04/23/2024',y:[87.40,92.40,79.30,79.30]},{ x:'04/24/2024',y:[81.50,86.00,81.20,81.50]},{ x:'04/25/2024',y:[79.20,80.90,75.10,78.00]},{ x:'04/26/2024',y:[80.40,85.80,80.40,85.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4909 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());