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/07/2024',y:[55.50,56.00,49.85,50.10]},{ x:'03/08/2024',y:[51.00,51.70,48.50,49.50]},{ x:'03/11/2024',y:[49.90,52.30,49.75,51.40]},{ x:'03/12/2024',y:[51.40,54.70,51.00,53.30]},{ x:'03/13/2024',y:[53.70,55.60,52.20,53.90]},{ x:'03/14/2024',y:[54.30,55.60,52.20,54.80]},{ x:'03/15/2024',y:[54.00,56.50,53.20,54.40]},{ x:'03/18/2024',y:[56.00,59.80,54.30,54.50]},{ x:'03/19/2024',y:[54.80,57.80,54.30,54.70]},{ x:'03/20/2024',y:[55.20,56.00,53.50,55.60]},{ x:'03/21/2024',y:[57.50,60.90,56.20,59.40]},{ x:'03/22/2024',y:[59.00,61.70,58.70,59.30]},{ x:'03/25/2024',y:[61.00,65.20,60.90,64.20]},{ x:'03/26/2024',y:[63.90,65.10,59.40,60.10]},{ x:'03/27/2024',y:[61.60,62.40,58.90,59.00]},{ x:'03/28/2024',y:[58.70,60.00,58.30,58.60]},{ x:'03/29/2024',y:[58.80,61.70,58.30,60.00]},{ x:'04/01/2024',y:[62.50,66.00,62.50,66.00]},{ x:'04/02/2024',y:[68.00,72.60,68.00,72.60]},{ x:'04/03/2024',y:[73.00,77.80,70.00,70.90]},{ x:'04/08/2024',y:[71.50,75.00,68.90,75.00]},{ x:'04/09/2024',y:[74.00,77.00,72.40,74.00]},{ x:'04/10/2024',y:[73.30,74.60,70.50,70.60]},{ x:'04/11/2024',y:[70.00,72.10,69.90,71.40]},{ x:'04/12/2024',y:[71.40,74.40,71.30,73.60]},{ x:'04/15/2024',y:[72.40,73.60,71.00,71.80]},{ x:'04/16/2024',y:[71.20,71.50,67.80,69.90]},{ x:'04/17/2024',y:[70.90,71.70,69.40,70.10]},{ x:'04/18/2024',y:[69.00,71.70,68.90,69.40]},{ x:'04/19/2024',y:[68.90,69.50,65.70,67.80]},{ x:'04/22/2024',y:[68.40,69.30,65.10,65.10]},{ x:'04/23/2024',y:[66.80,67.50,64.80,66.00]},{ x:'04/24/2024',y:[67.70,70.70,67.70,69.40]},{ x:'04/25/2024',y:[68.50,73.10,68.20,72.30]},{ x:'04/26/2024',y:[73.10,75.90,71.40,72.60]},{ x:'04/29/2024',y:[74.10,77.10,71.80,72.70]},{ x:'04/30/2024',y:[73.30,75.40,71.80,73.50]},{ x:'05/02/2024',y:[72.70,74.60,71.50,71.50]},{ x:'05/03/2024',y:[72.50,75.00,70.10,74.60]},{ x:'05/06/2024',y:[77.90,82.00,77.60,82.00]},{ x:'05/07/2024',y:[84.00,90.00,82.00,82.40]},{ x:'05/08/2024',y:[83.20,85.50,80.80,84.20]},{ x:'05/09/2024',y:[84.20,87.90,82.50,84.90]},{ x:'05/10/2024',y:[85.90,86.80,82.00,84.00]},{ x:'05/13/2024',y:[84.80,85.40,80.20,80.80]},{ x:'05/14/2024',y:[81.40,82.60,80.80,82.50]},{ x:'05/15/2024',y:[84.10,85.00,77.80,79.00]},{ x:'05/16/2024',y:[79.30,80.10,78.20,78.50]},{ x:'05/17/2024',y:[79.10,82.90,78.50,81.20]},{ x:'05/20/2024',y:[81.30,83.70,80.70,82.80]},{ x:'05/21/2024',y:[84.10,86.70,83.30,86.00]},{ x:'05/22/2024',y:[86.40,87.20,82.80,83.20]},{ x:'05/23/2024',y:[85.00,91.50,84.50,91.50]},{ x:'05/24/2024',y:[92.50,95.60,89.50,91.00]},{ x:'06/11/2024',y:[109.50,113.50,104.00,113.50]},{ x:'06/12/2024',y:[120.50,120.50,110.00,112.00]},{ x:'06/13/2024',y:[114.00,123.00,113.00,123.00]},{ x:'06/14/2024',y:[125.50,126.00,119.00,122.00]},{ x:'06/17/2024',y:[122.00,129.50,120.50,125.00]},{ x:'06/18/2024',y:[125.50,126.50,115.00,119.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2486 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());