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:'03/22/2024',y:[67.90,69.10,65.50,65.50]},{ x:'03/25/2024',y:[65.50,66.50,62.00,62.80]},{ x:'03/26/2024',y:[63.50,63.80,58.00,58.00]},{ x:'03/27/2024',y:[58.80,60.00,57.20,58.80]},{ x:'03/28/2024',y:[58.80,63.30,58.30,61.30]},{ x:'03/29/2024',y:[61.60,63.20,60.20,61.30]},{ x:'04/01/2024',y:[62.00,62.40,60.70,60.70]},{ x:'04/02/2024',y:[60.70,61.50,59.50,59.80]},{ x:'04/03/2024',y:[59.90,62.10,58.40,60.60]},{ x:'04/08/2024',y:[60.60,65.00,60.60,63.60]},{ x:'04/09/2024',y:[64.60,64.90,61.60,61.60]},{ x:'04/10/2024',y:[62.20,62.50,60.00,60.00]},{ x:'04/11/2024',y:[60.10,61.40,60.00,60.10]},{ x:'04/12/2024',y:[60.70,61.20,60.10,60.20]},{ x:'04/15/2024',y:[60.40,61.40,59.10,59.10]},{ x:'04/16/2024',y:[59.10,59.10,53.30,54.90]},{ x:'04/17/2024',y:[55.10,57.00,54.00,56.30]},{ x:'04/18/2024',y:[55.60,56.50,55.00,55.70]},{ x:'04/19/2024',y:[55.70,55.70,50.30,53.50]},{ x:'04/22/2024',y:[53.90,55.10,51.30,51.50]},{ x:'04/23/2024',y:[53.30,53.90,51.80,52.60]},{ x:'04/24/2024',y:[54.90,56.10,54.40,54.70]},{ x:'04/25/2024',y:[54.80,56.50,54.00,55.10]},{ x:'04/26/2024',y:[56.00,56.90,54.20,54.20]},{ x:'04/29/2024',y:[54.30,56.20,54.30,55.40]},{ x:'04/30/2024',y:[56.00,58.30,56.00,56.50]},{ x:'05/02/2024',y:[62.10,62.10,62.10,62.10]},{ x:'05/03/2024',y:[68.30,68.30,68.30,68.30]},{ x:'05/06/2024',y:[69.00,74.20,66.70,69.60]},{ x:'05/07/2024',y:[69.60,72.00,66.80,68.10]},{ x:'05/08/2024',y:[68.90,73.50,67.20,69.50]},{ x:'05/09/2024',y:[70.00,76.40,69.00,76.40]},{ x:'05/10/2024',y:[77.80,79.70,69.90,70.00]},{ x:'05/13/2024',y:[69.80,69.80,65.10,66.50]},{ x:'05/14/2024',y:[65.30,68.90,65.30,67.40]},{ x:'05/15/2024',y:[68.20,74.00,67.40,72.00]},{ x:'05/16/2024',y:[73.50,79.20,72.60,79.20]},{ x:'05/17/2024',y:[82.20,85.00,76.80,84.40]},{ x:'05/20/2024',y:[86.80,88.50,82.50,83.50]},{ x:'05/21/2024',y:[84.40,89.50,83.50,85.60]},{ x:'05/22/2024',y:[86.40,87.60,83.10,83.10]},{ x:'05/23/2024',y:[83.50,89.10,81.10,87.20]},{ x:'05/24/2024',y:[86.90,95.90,85.00,95.90]},{ x:'06/11/2024',y:[114.00,116.50,103.00,113.50]},{ x:'06/12/2024',y:[113.00,115.00,108.50,115.00]},{ x:'06/13/2024',y:[115.50,118.00,110.50,110.50]},{ x:'06/14/2024',y:[108.00,114.00,108.00,109.50]},{ x:'06/17/2024',y:[108.00,112.00,106.50,108.00]},{ x:'06/18/2024',y:[108.50,111.00,105.50,106.00]},{ x:'06/19/2024',y:[107.50,109.00,100.50,101.50]},{ x:'06/20/2024',y:[100.50,105.00,100.50,104.50]},{ x:'06/21/2024',y:[104.50,104.50,98.50,100.50]},{ x:'06/24/2024',y:[98.60,100.50,96.20,96.80]},{ x:'06/25/2024',y:[95.70,96.80,93.20,93.40]},{ x:'06/26/2024',y:[93.50,102.00,93.50,99.20]},{ x:'06/27/2024',y:[99.60,108.00,99.50,102.50]},{ x:'06/28/2024',y:[103.00,108.50,103.00,105.00]},{ x:'07/01/2024',y:[105.50,107.00,99.90,102.50]},{ x:'07/02/2024',y:[104.00,105.00,99.60,99.60]},{ x:'07/03/2024',y:[102.50,105.00,100.50,101.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3564 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());