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:'11/30/2022',y:[98.25,99.05,98.05,99.05]},{ x:'12/01/2022',y:[101.35,102.05,100.80,100.90]},{ x:'12/02/2022',y:[99.80,101.20,99.80,100.50]},{ x:'12/05/2022',y:[100.75,101.55,100.00,100.00]},{ x:'12/06/2022',y:[100.00,100.00,98.55,98.55]},{ x:'12/07/2022',y:[98.00,98.95,97.45,97.45]},{ x:'12/08/2022',y:[97.30,97.30,96.00,96.70]},{ x:'12/09/2022',y:[97.75,98.55,97.30,98.30]},{ x:'12/12/2022',y:[97.50,97.50,96.70,97.15]},{ x:'12/13/2022',y:[97.50,97.65,96.60,96.70]},{ x:'12/14/2022',y:[97.40,98.15,97.40,98.15]},{ x:'12/15/2022',y:[97.95,98.35,97.60,98.15]},{ x:'12/16/2022',y:[96.05,96.60,95.65,96.60]},{ x:'12/19/2022',y:[95.80,96.25,95.60,95.85]},{ x:'12/20/2022',y:[95.70,95.90,93.75,93.80]},{ x:'12/21/2022',y:[94.70,94.70,93.55,93.80]},{ x:'12/22/2022',y:[95.05,95.60,94.90,95.35]},{ x:'12/23/2022',y:[94.00,94.00,93.35,93.65]},{ x:'12/26/2022',y:[93.65,93.95,93.50,93.75]},{ x:'12/27/2022',y:[94.45,94.95,94.10,94.20]},{ x:'12/28/2022',y:[93.10,93.10,91.85,92.60]},{ x:'12/29/2022',y:[91.50,92.30,91.20,92.00]},{ x:'12/30/2022',y:[93.50,93.60,92.50,92.50]},{ x:'01/03/2023',y:[92.00,93.50,91.40,93.30]},{ x:'01/04/2023',y:[93.20,93.50,92.85,92.90]},{ x:'01/05/2023',y:[93.85,94.15,93.30,93.65]},{ x:'01/06/2023',y:[93.55,94.50,93.55,94.15]},{ x:'01/09/2023',y:[95.70,97.95,95.70,97.95]},{ x:'01/10/2023',y:[98.40,98.90,98.30,98.70]},{ x:'01/11/2023',y:[99.05,99.05,98.35,98.55]},{ x:'01/12/2023',y:[98.75,99.20,98.45,98.55]},{ x:'01/13/2023',y:[101.05,101.45,99.90,100.00]},{ x:'01/16/2023',y:[100.65,101.00,100.60,100.70]},{ x:'01/17/2023',y:[100.70,100.70,100.15,100.40]},{ x:'01/30/2023',y:[106.30,106.40,105.20,106.20]},{ x:'01/31/2023',y:[106.00,106.00,104.00,104.20]},{ x:'02/01/2023',y:[105.05,105.30,104.10,105.05]},{ x:'02/02/2023',y:[106.30,107.20,106.30,107.05]},{ x:'02/03/2023',y:[107.05,107.50,106.40,107.20]},{ x:'02/06/2023',y:[106.20,106.20,105.60,105.60]},{ x:'02/07/2023',y:[104.90,105.60,104.90,105.25]},{ x:'02/08/2023',y:[106.85,107.80,106.60,107.55]},{ x:'02/09/2023',y:[107.50,107.55,107.00,107.45]},{ x:'02/10/2023',y:[107.60,107.95,107.30,107.70]},{ x:'02/13/2023',y:[107.70,107.70,106.50,106.95]},{ x:'02/14/2023',y:[107.70,108.00,107.45,107.85]},{ x:'02/15/2023',y:[105.75,106.25,105.00,105.05]},{ x:'02/16/2023',y:[105.55,106.65,105.50,106.45]},{ x:'02/17/2023',y:[105.75,105.75,104.55,104.90]},{ x:'02/20/2023',y:[104.80,105.25,104.25,104.90]},{ x:'02/21/2023',y:[104.85,105.00,104.45,104.75]},{ x:'02/22/2023',y:[103.00,103.75,103.00,103.45]},{ x:'02/23/2023',y:[103.80,105.70,103.80,105.60]},{ x:'02/24/2023',y:[106.00,106.40,104.60,104.60]},{ x:'03/01/2023',y:[104.00,106.15,103.30,106.15]},{ x:'03/02/2023',y:[105.80,106.05,105.35,105.85]},{ x:'03/03/2023',y:[106.80,107.00,105.70,105.80]},{ x:'03/06/2023',y:[106.75,107.40,106.35,106.75]},{ x:'03/07/2023',y:[106.95,107.55,106.40,107.35]},{ x:'03/08/2023',y:[107.00,107.00,106.20,106.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0052 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());