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:[85.80,86.35,85.75,86.30]},{ x:'12/26/2022',y:[86.50,86.90,86.50,86.80]},{ x:'12/27/2022',y:[88.50,88.60,87.55,87.55]},{ x:'12/28/2022',y:[85.75,85.85,84.75,85.15]},{ x:'12/29/2022',y:[83.75,84.45,83.25,84.45]},{ x:'12/30/2022',y:[86.25,86.25,85.70,85.70]},{ x:'01/03/2023',y:[85.35,86.70,85.35,86.55]},{ x:'01/04/2023',y:[86.45,86.70,86.35,86.60]},{ x:'01/05/2023',y:[87.95,88.35,86.85,87.05]},{ x:'01/06/2023',y:[87.60,88.50,87.60,88.30]},{ x:'01/09/2023',y:[91.05,92.95,90.95,92.95]},{ x:'01/10/2023',y:[93.45,93.90,92.90,93.75]},{ x:'01/11/2023',y:[94.50,94.50,93.35,93.45]},{ x:'01/12/2023',y:[94.05,94.05,92.95,93.10]},{ x:'01/13/2023',y:[95.95,95.95,94.30,94.30]},{ x:'01/16/2023',y:[96.00,96.15,95.40,95.40]},{ x:'01/17/2023',y:[95.40,95.85,95.35,95.45]},{ x:'01/30/2023',y:[102.40,102.40,101.50,102.05]},{ x:'01/31/2023',y:[101.80,102.00,100.30,100.30]},{ x:'02/01/2023',y:[101.30,101.50,100.55,101.40]},{ x:'02/02/2023',y:[103.20,104.25,102.80,104.15]},{ x:'02/03/2023',y:[103.40,104.50,103.40,104.15]},{ x:'02/06/2023',y:[102.10,102.25,101.45,101.45]},{ x:'02/07/2023',y:[101.40,102.15,101.35,101.70]},{ x:'02/08/2023',y:[103.35,104.40,103.15,104.30]},{ x:'02/09/2023',y:[103.55,104.20,103.50,104.20]},{ x:'02/10/2023',y:[103.85,103.85,103.45,103.70]},{ x:'02/13/2023',y:[102.90,103.10,102.75,103.10]},{ x:'02/14/2023',y:[104.45,105.15,104.45,104.85]},{ x:'02/15/2023',y:[101.65,101.70,101.45,101.55]},{ x:'02/16/2023',y:[102.65,104.05,102.65,103.70]},{ x:'02/17/2023',y:[102.50,102.65,101.70,102.05]},{ x:'02/20/2023',y:[102.60,103.55,102.60,103.20]},{ x:'02/21/2023',y:[103.30,103.40,103.30,103.40]},{ x:'02/22/2023',y:[101.00,101.55,101.00,101.50]},{ x:'02/23/2023',y:[103.05,105.05,103.05,104.80]},{ x:'02/24/2023',y:[105.25,105.25,103.70,103.70]},{ x:'03/01/2023',y:[101.40,103.55,101.25,103.50]},{ x:'03/02/2023',y:[103.00,103.95,103.00,103.60]},{ x:'03/03/2023',y:[104.80,104.85,104.30,104.30]},{ x:'03/06/2023',y:[105.80,107.35,105.50,107.05]},{ x:'03/07/2023',y:[107.30,108.10,107.30,108.10]},{ x:'03/08/2023',y:[106.75,106.80,106.50,106.80]},{ x:'03/09/2023',y:[107.40,107.40,106.40,106.50]},{ x:'03/10/2023',y:[104.10,104.15,102.30,102.75]},{ x:'03/13/2023',y:[103.10,103.30,103.10,103.30]},{ x:'03/14/2023',y:[100.70,101.35,100.45,100.60]},{ x:'03/15/2023',y:[101.90,101.90,101.35,101.35]},{ x:'03/16/2023',y:[99.90,100.35,98.90,99.00]},{ x:'03/17/2023',y:[100.90,102.30,100.90,102.30]},{ x:'03/20/2023',y:[102.10,102.25,102.10,102.25]},{ x:'03/21/2023',y:[103.10,103.20,102.60,102.60]},{ x:'03/22/2023',y:[104.85,106.30,104.85,106.15]},{ x:'03/23/2023',y:[107.65,107.85,107.55,107.60]},{ x:'03/24/2023',y:[108.05,108.85,107.75,108.85]},{ x:'03/27/2023',y:[108.15,108.20,107.30,107.85]},{ x:'03/28/2023',y:[105.60,105.65,105.50,105.55]},{ x:'03/29/2023',y:[0.00,0.00,0.00,0.00]},{ x:'03/30/2023',y:[107.70,107.95,106.95,107.45]},{ x:'03/31/2023',y:[109.10,109.30,108.15,108.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00663l 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());