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:'02/20/2023',y:[58.50,61.50,57.50,58.70]},{ x:'02/21/2023',y:[59.10,64.50,59.10,64.50]},{ x:'02/22/2023',y:[65.00,66.70,63.00,64.80]},{ x:'02/23/2023',y:[64.50,64.70,63.30,64.30]},{ x:'02/24/2023',y:[64.70,65.60,62.20,63.00]},{ x:'03/01/2023',y:[62.60,64.20,61.50,63.50]},{ x:'03/02/2023',y:[63.50,64.50,62.70,63.00]},{ x:'03/03/2023',y:[64.20,65.00,62.40,63.00]},{ x:'03/06/2023',y:[63.60,66.50,63.40,65.60]},{ x:'03/07/2023',y:[66.50,71.80,66.50,68.90]},{ x:'03/08/2023',y:[68.80,74.70,68.40,72.70]},{ x:'03/09/2023',y:[73.10,75.90,71.30,75.50]},{ x:'03/10/2023',y:[74.20,74.50,69.00,70.00]},{ x:'03/13/2023',y:[68.60,69.20,66.10,67.00]},{ x:'03/14/2023',y:[67.30,68.60,66.50,66.80]},{ x:'03/15/2023',y:[68.10,69.00,66.90,67.40]},{ x:'03/16/2023',y:[68.00,68.70,65.50,66.20]},{ x:'03/17/2023',y:[67.10,67.40,65.60,66.70]},{ x:'03/20/2023',y:[67.60,72.00,67.00,72.00]},{ x:'03/21/2023',y:[71.90,73.50,71.00,71.20]},{ x:'03/22/2023',y:[72.60,72.90,70.10,70.30]},{ x:'03/23/2023',y:[70.00,71.60,69.20,71.10]},{ x:'03/24/2023',y:[71.50,71.90,70.40,71.60]},{ x:'03/27/2023',y:[71.60,72.50,69.00,69.20]},{ x:'03/28/2023',y:[69.30,69.70,67.60,69.00]},{ x:'03/29/2023',y:[69.80,69.90,68.80,69.50]},{ x:'03/30/2023',y:[70.30,70.50,69.00,70.10]},{ x:'03/31/2023',y:[70.10,70.20,68.70,69.30]},{ x:'04/06/2023',y:[69.60,74.70,68.20,73.40]},{ x:'04/07/2023',y:[74.50,80.60,74.50,78.90]},{ x:'04/10/2023',y:[81.00,83.30,79.90,80.00]},{ x:'04/11/2023',y:[83.00,88.00,82.80,88.00]},{ x:'04/12/2023',y:[95.00,96.80,94.50,96.80]},{ x:'04/13/2023',y:[97.10,102.00,94.00,95.00]},{ x:'04/14/2023',y:[97.70,100.00,93.10,94.70]},{ x:'04/17/2023',y:[94.90,100.50,94.80,97.10]},{ x:'04/18/2023',y:[97.20,103.50,97.20,97.90]},{ x:'04/19/2023',y:[99.10,101.50,96.80,99.00]},{ x:'04/20/2023',y:[99.50,101.50,97.00,97.10]},{ x:'04/21/2023',y:[97.70,99.00,93.40,95.40]},{ x:'04/24/2023',y:[96.10,100.50,95.00,98.80]},{ x:'04/25/2023',y:[99.00,99.50,90.40,93.70]},{ x:'04/26/2023',y:[93.80,94.40,90.90,92.30]},{ x:'04/27/2023',y:[92.30,92.80,88.80,92.60]},{ x:'04/28/2023',y:[94.80,95.80,93.50,94.90]},{ x:'05/02/2023',y:[95.80,104.00,95.70,103.50]},{ x:'05/03/2023',y:[100.50,101.50,97.30,97.40]},{ x:'05/04/2023',y:[97.50,99.60,96.80,99.30]},{ x:'05/05/2023',y:[99.30,100.50,96.50,99.10]},{ x:'05/08/2023',y:[100.50,109.00,100.50,109.00]},{ x:'05/09/2023',y:[110.00,113.50,102.00,103.00]},{ x:'05/10/2023',y:[102.50,103.50,98.10,98.90]},{ x:'05/11/2023',y:[100.00,100.50,94.70,95.40]},{ x:'05/12/2023',y:[96.10,104.00,95.80,101.50]},{ x:'05/15/2023',y:[100.00,108.50,99.90,105.00]},{ x:'05/16/2023',y:[107.00,109.50,102.50,109.50]},{ x:'05/17/2023',y:[109.50,110.50,107.00,107.00]},{ x:'05/18/2023',y:[111.00,117.50,109.00,117.50]},{ x:'05/19/2023',y:[120.00,127.50,117.50,123.50]},{ x:'05/22/2023',y:[123.00,132.00,121.50,128.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1519 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());