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:[83.40,87.10,81.20,85.70]},{ x:'01/23/2024',y:[85.10,90.50,84.50,87.50]},{ x:'01/24/2024',y:[88.50,89.20,86.60,88.60]},{ x:'01/25/2024',y:[88.00,88.50,84.60,84.70]},{ x:'01/26/2024',y:[83.90,86.50,83.20,84.60]},{ x:'01/29/2024',y:[84.00,88.20,82.50,86.50]},{ x:'01/30/2024',y:[87.00,88.80,84.60,85.50]},{ x:'01/31/2024',y:[85.50,91.80,85.10,87.80]},{ x:'02/01/2024',y:[88.20,96.40,88.10,91.50]},{ x:'02/02/2024',y:[93.80,99.30,93.70,95.00]},{ x:'02/05/2024',y:[98.00,99.40,85.50,85.50]},{ x:'02/15/2024',y:[86.00,87.70,84.50,85.70]},{ x:'02/16/2024',y:[87.90,92.00,87.40,90.60]},{ x:'02/19/2024',y:[90.80,91.50,85.50,85.70]},{ x:'02/20/2024',y:[85.20,88.00,81.50,86.10]},{ x:'02/21/2024',y:[85.60,86.30,83.40,83.90]},{ x:'02/22/2024',y:[85.10,85.70,82.60,84.10]},{ x:'02/23/2024',y:[85.00,85.80,81.70,81.70]},{ x:'02/26/2024',y:[82.00,86.90,81.30,84.80]},{ x:'02/27/2024',y:[84.60,88.50,82.60,82.90]},{ x:'02/29/2024',y:[83.50,85.30,82.50,83.50]},{ x:'03/01/2024',y:[84.00,84.60,81.80,81.90]},{ x:'03/04/2024',y:[82.40,83.00,79.70,79.70]},{ x:'03/05/2024',y:[79.30,80.40,76.70,78.70]},{ x:'03/06/2024',y:[78.00,79.90,75.90,76.10]},{ x:'03/07/2024',y:[76.30,76.80,71.70,72.90]},{ x:'03/08/2024',y:[73.70,73.80,70.50,71.30]},{ x:'03/11/2024',y:[71.00,72.80,70.20,70.60]},{ x:'03/12/2024',y:[71.10,71.90,70.50,71.10]},{ x:'03/13/2024',y:[71.80,71.80,67.00,67.80]},{ x:'03/14/2024',y:[67.60,69.00,66.30,66.60]},{ x:'03/15/2024',y:[66.70,67.50,65.30,65.40]},{ x:'03/18/2024',y:[65.60,67.70,65.20,66.50]},{ x:'03/19/2024',y:[66.90,67.50,65.30,65.80]},{ x:'03/20/2024',y:[66.30,67.50,65.40,65.70]},{ x:'03/21/2024',y:[66.60,67.10,64.60,65.30]},{ x:'03/22/2024',y:[65.70,65.70,64.00,64.50]},{ x:'03/25/2024',y:[64.60,65.70,64.60,64.80]},{ x:'03/26/2024',y:[65.20,65.50,63.00,63.30]},{ x:'03/27/2024',y:[63.70,63.70,61.80,61.80]},{ x:'03/28/2024',y:[62.00,62.80,60.80,61.80]},{ x:'03/29/2024',y:[63.00,64.70,62.20,63.70]},{ x:'04/01/2024',y:[63.80,68.80,63.80,67.40]},{ x:'04/02/2024',y:[66.70,69.60,66.00,67.50]},{ x:'04/03/2024',y:[67.00,70.20,66.70,68.70]},{ x:'04/08/2024',y:[68.10,68.90,66.40,68.00]},{ x:'04/09/2024',y:[67.70,69.00,65.40,65.40]},{ x:'04/10/2024',y:[65.80,66.10,64.20,64.20]},{ x:'04/11/2024',y:[64.20,64.20,62.40,62.70]},{ x:'04/12/2024',y:[62.70,62.90,60.70,61.10]},{ x:'04/15/2024',y:[60.30,60.50,58.10,58.10]},{ x:'04/16/2024',y:[58.80,59.70,56.50,57.20]},{ x:'04/17/2024',y:[57.70,60.90,57.70,59.90]},{ x:'04/18/2024',y:[59.10,61.00,58.60,59.00]},{ x:'04/19/2024',y:[58.50,58.70,55.50,56.90]},{ x:'04/22/2024',y:[57.00,57.60,54.60,54.60]},{ x:'04/23/2024',y:[55.50,56.20,54.60,54.60]},{ x:'04/24/2024',y:[55.40,56.50,55.20,55.30]},{ x:'04/25/2024',y:[54.30,54.80,53.20,53.40]},{ x:'04/26/2024',y:[53.70,55.60,53.70,54.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6695 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());