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:'12/23/2022',y:[56.90,58.80,56.90,58.20]},{ x:'12/26/2022',y:[59.30,60.30,58.30,59.40]},{ x:'12/27/2022',y:[60.50,63.70,58.00,59.00]},{ x:'12/28/2022',y:[59.60,64.90,59.50,64.90]},{ x:'12/29/2022',y:[64.90,64.90,59.00,59.90]},{ x:'12/30/2022',y:[59.00,60.40,58.50,59.90]},{ x:'01/03/2023',y:[58.60,59.50,56.50,57.10]},{ x:'01/04/2023',y:[57.60,60.40,56.80,59.90]},{ x:'01/05/2023',y:[60.90,65.80,60.40,64.40]},{ x:'01/06/2023',y:[64.40,64.70,60.70,64.00]},{ x:'01/09/2023',y:[63.00,64.60,62.20,64.60]},{ x:'01/10/2023',y:[64.60,65.00,63.30,64.90]},{ x:'01/11/2023',y:[64.50,65.20,62.80,62.90]},{ x:'01/12/2023',y:[63.00,63.50,61.90,62.20]},{ x:'01/13/2023',y:[63.00,63.40,61.60,62.20]},{ x:'01/16/2023',y:[62.50,63.90,60.70,63.10]},{ x:'01/17/2023',y:[63.80,66.50,62.80,65.00]},{ x:'01/30/2023',y:[65.80,65.80,61.60,61.60]},{ x:'01/31/2023',y:[61.50,63.90,61.50,63.10]},{ x:'02/01/2023',y:[63.30,65.90,62.80,64.40]},{ x:'02/02/2023',y:[64.40,65.30,63.70,65.20]},{ x:'02/03/2023',y:[65.00,69.10,64.90,67.30]},{ x:'02/06/2023',y:[68.50,74.00,66.80,74.00]},{ x:'02/07/2023',y:[74.60,75.30,71.90,74.80]},{ x:'02/08/2023',y:[73.60,76.80,73.50,76.70]},{ x:'02/09/2023',y:[76.80,79.10,75.10,79.10]},{ x:'02/10/2023',y:[77.50,78.70,75.40,75.80]},{ x:'02/13/2023',y:[74.30,75.00,72.90,73.30]},{ x:'02/14/2023',y:[74.40,80.50,74.30,80.50]},{ x:'02/15/2023',y:[79.50,85.30,77.60,82.90]},{ x:'02/16/2023',y:[82.80,86.00,82.40,85.00]},{ x:'02/17/2023',y:[84.50,93.50,84.50,93.50]},{ x:'02/20/2023',y:[98.20,102.50,93.00,96.00]},{ x:'02/21/2023',y:[97.20,97.70,92.30,94.00]},{ x:'02/22/2023',y:[93.10,103.00,93.10,103.00]},{ x:'02/23/2023',y:[108.00,110.50,100.50,105.50]},{ x:'02/24/2023',y:[104.00,104.50,98.20,98.20]},{ x:'03/01/2023',y:[97.40,99.20,94.10,95.20]},{ x:'03/02/2023',y:[95.70,104.50,95.70,96.30]},{ x:'03/03/2023',y:[96.40,97.80,94.10,94.40]},{ x:'03/06/2023',y:[95.00,95.60,93.60,95.20]},{ x:'03/07/2023',y:[95.20,98.20,94.60,95.00]},{ x:'03/08/2023',y:[95.80,97.40,93.80,94.20]},{ x:'03/09/2023',y:[95.00,95.50,92.20,93.90]},{ x:'03/10/2023',y:[95.00,96.50,85.50,87.60]},{ x:'03/13/2023',y:[86.50,87.40,83.10,84.10]},{ x:'03/14/2023',y:[84.10,87.00,81.60,81.60]},{ x:'03/15/2023',y:[82.70,83.20,81.10,81.80]},{ x:'03/16/2023',y:[81.80,81.80,78.40,79.40]},{ x:'03/17/2023',y:[81.90,85.00,80.00,84.10]},{ x:'03/20/2023',y:[84.00,90.90,82.80,88.80]},{ x:'03/21/2023',y:[90.00,91.80,87.90,89.10]},{ x:'03/22/2023',y:[88.50,89.90,88.10,88.10]},{ x:'03/23/2023',y:[89.20,89.70,87.20,87.60]},{ x:'03/24/2023',y:[88.60,88.60,85.50,87.40]},{ x:'03/27/2023',y:[88.00,88.00,86.00,86.70]},{ x:'03/28/2023',y:[87.00,88.70,85.90,86.70]},{ x:'03/29/2023',y:[89.10,92.00,88.50,90.50]},{ x:'03/30/2023',y:[91.80,94.50,89.90,89.90]},{ x:'03/31/2023',y:[90.80,92.00,89.10,91.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2748 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());