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/08/2022',y:[75.30,77.10,75.30,76.40]},{ x:'12/09/2022',y:[77.80,77.80,75.60,75.60]},{ x:'12/12/2022',y:[75.60,76.00,74.80,75.10]},{ x:'12/13/2022',y:[75.40,76.00,73.80,74.00]},{ x:'12/14/2022',y:[74.20,75.00,74.00,74.20]},{ x:'12/15/2022',y:[74.30,74.70,73.50,73.80]},{ x:'12/16/2022',y:[73.00,74.20,71.80,73.90]},{ x:'12/19/2022',y:[73.10,73.10,71.50,71.50]},{ x:'12/20/2022',y:[71.60,72.30,68.50,68.70]},{ x:'12/21/2022',y:[69.10,72.00,69.10,70.60]},{ x:'12/22/2022',y:[72.80,73.10,71.40,71.40]},{ x:'12/23/2022',y:[69.60,72.00,69.60,70.90]},{ x:'12/26/2022',y:[72.00,72.00,69.60,70.90]},{ x:'12/27/2022',y:[71.00,72.80,70.80,71.80]},{ x:'12/28/2022',y:[72.50,72.50,69.20,69.50]},{ x:'12/29/2022',y:[69.40,69.40,67.30,67.40]},{ x:'12/30/2022',y:[68.50,68.70,67.00,67.00]},{ x:'01/03/2023',y:[67.10,68.80,66.50,68.70]},{ x:'01/04/2023',y:[68.60,69.10,67.70,67.70]},{ x:'01/05/2023',y:[68.50,69.00,66.40,66.40]},{ x:'01/06/2023',y:[66.50,67.90,65.50,67.10]},{ x:'01/09/2023',y:[67.50,69.70,67.50,69.10]},{ x:'01/10/2023',y:[69.70,70.40,68.70,69.10]},{ x:'01/11/2023',y:[69.70,69.70,68.50,68.70]},{ x:'01/12/2023',y:[68.70,69.40,67.50,67.50]},{ x:'01/13/2023',y:[67.70,68.30,66.60,67.00]},{ x:'01/16/2023',y:[67.00,71.40,67.00,70.00]},{ x:'01/17/2023',y:[70.20,72.90,70.20,72.70]},{ x:'01/30/2023',y:[75.00,76.90,73.80,75.20]},{ x:'01/31/2023',y:[75.50,79.00,74.80,79.00]},{ x:'02/01/2023',y:[80.10,82.00,79.50,81.80]},{ x:'02/02/2023',y:[83.60,86.30,83.20,85.40]},{ x:'02/03/2023',y:[85.10,87.00,84.80,86.20]},{ x:'02/06/2023',y:[86.20,86.50,84.00,86.00]},{ x:'02/07/2023',y:[88.80,89.60,84.50,85.30]},{ x:'02/08/2023',y:[86.00,86.50,84.20,85.80]},{ x:'02/09/2023',y:[85.50,86.00,84.80,85.10]},{ x:'02/10/2023',y:[85.40,87.60,84.30,84.60]},{ x:'02/13/2023',y:[84.70,85.50,82.20,82.50]},{ x:'02/14/2023',y:[83.00,84.00,82.10,82.10]},{ x:'02/15/2023',y:[82.00,85.00,81.60,83.10]},{ x:'02/16/2023',y:[83.10,83.90,82.50,83.90]},{ x:'02/17/2023',y:[82.70,86.00,82.70,85.50]},{ x:'02/20/2023',y:[87.40,94.00,87.10,93.60]},{ x:'02/21/2023',y:[94.00,98.60,92.30,98.60]},{ x:'02/22/2023',y:[96.90,98.90,92.70,96.00]},{ x:'02/23/2023',y:[96.30,97.30,93.80,95.50]},{ x:'02/24/2023',y:[95.10,96.60,90.50,91.00]},{ x:'03/01/2023',y:[90.80,90.80,88.00,89.60]},{ x:'03/02/2023',y:[89.50,91.10,88.40,90.90]},{ x:'03/03/2023',y:[91.20,93.90,90.30,92.10]},{ x:'03/06/2023',y:[93.50,93.70,90.80,91.50]},{ x:'03/07/2023',y:[90.30,91.20,89.10,89.10]},{ x:'03/08/2023',y:[89.00,93.30,88.60,92.80]},{ x:'03/09/2023',y:[93.00,95.90,91.00,91.20]},{ x:'03/10/2023',y:[89.40,90.60,84.70,85.30]},{ x:'03/13/2023',y:[86.00,86.00,83.50,83.80]},{ x:'03/14/2023',y:[83.50,84.30,82.20,82.20]},{ x:'03/15/2023',y:[83.80,84.50,83.30,83.30]},{ x:'03/16/2023',y:[82.90,83.30,80.40,81.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6205 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());