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:'04/26/2024',y:[45.60,45.95,45.45,45.50]},{ x:'04/29/2024',y:[46.10,46.90,46.00,46.60]},{ x:'04/30/2024',y:[46.85,47.10,46.55,46.60]},{ x:'05/02/2024',y:[46.65,46.95,46.15,46.70]},{ x:'05/03/2024',y:[47.10,49.00,47.00,48.75]},{ x:'05/06/2024',y:[49.35,49.75,48.50,49.50]},{ x:'05/07/2024',y:[50.50,51.00,49.00,49.45]},{ x:'05/08/2024',y:[49.60,50.30,48.65,49.35]},{ x:'05/09/2024',y:[49.50,50.20,48.60,48.80]},{ x:'05/10/2024',y:[49.05,49.20,48.05,48.75]},{ x:'05/13/2024',y:[49.20,52.40,49.00,51.60]},{ x:'05/14/2024',y:[51.90,52.10,50.80,51.50]},{ x:'05/15/2024',y:[51.80,53.50,51.40,51.60]},{ x:'05/16/2024',y:[52.50,52.70,51.70,52.00]},{ x:'05/17/2024',y:[52.30,54.30,52.10,53.70]},{ x:'05/20/2024',y:[54.50,59.00,53.80,58.50]},{ x:'05/21/2024',y:[58.00,61.00,56.50,60.70]},{ x:'05/22/2024',y:[61.80,66.70,61.70,66.70]},{ x:'05/23/2024',y:[71.00,73.30,67.80,73.30]},{ x:'05/24/2024',y:[73.20,74.50,71.60,72.20]},{ x:'06/11/2024',y:[71.70,72.50,69.20,69.20]},{ x:'06/12/2024',y:[69.00,69.20,65.70,69.00]},{ x:'06/13/2024',y:[69.50,75.90,69.00,75.90]},{ x:'06/14/2024',y:[77.60,83.20,76.60,79.70]},{ x:'06/17/2024',y:[79.00,80.50,77.10,78.70]},{ x:'06/18/2024',y:[79.20,82.70,77.00,77.40]},{ x:'06/19/2024',y:[77.70,78.50,73.70,74.60]},{ x:'06/20/2024',y:[75.00,78.30,74.90,77.80]},{ x:'06/21/2024',y:[78.30,81.20,77.10,77.70]},{ x:'06/24/2024',y:[77.60,77.70,74.80,75.30]},{ x:'06/25/2024',y:[75.30,76.60,73.30,76.30]},{ x:'06/26/2024',y:[77.50,79.60,76.90,77.50]},{ x:'06/27/2024',y:[77.90,79.60,77.10,77.70]},{ x:'06/28/2024',y:[78.60,80.40,78.10,79.00]},{ x:'07/01/2024',y:[79.20,79.70,77.80,77.80]},{ x:'07/02/2024',y:[77.50,77.50,75.30,76.90]},{ x:'07/03/2024',y:[77.50,79.10,76.50,76.50]},{ x:'07/04/2024',y:[76.70,77.90,76.70,76.90]},{ x:'07/05/2024',y:[77.80,81.50,77.10,79.00]},{ x:'07/12/2024',y:[87.50,91.80,86.80,89.50]},{ x:'07/15/2024',y:[91.00,91.30,86.10,86.10]},{ x:'07/16/2024',y:[86.40,87.30,84.20,84.40]},{ x:'07/17/2024',y:[84.50,86.50,83.40,83.60]},{ x:'07/18/2024',y:[81.60,82.90,79.30,79.80]},{ x:'07/19/2024',y:[79.50,80.90,76.80,76.80]},{ x:'07/22/2024',y:[77.50,78.40,74.30,74.50]},{ x:'07/23/2024',y:[75.90,76.30,74.00,74.00]},{ x:'07/26/2024',y:[71.20,72.50,70.30,71.30]},{ x:'07/29/2024',y:[73.00,73.20,68.50,68.80]},{ x:'07/30/2024',y:[69.00,70.00,67.20,69.80]},{ x:'07/31/2024',y:[68.90,71.90,68.90,70.30]},{ x:'08/01/2024',y:[72.30,74.00,71.50,74.00]},{ x:'08/02/2024',y:[71.60,72.40,69.20,69.60]},{ x:'08/05/2024',y:[64.60,64.80,62.70,62.70]},{ x:'08/06/2024',y:[62.50,63.70,56.50,60.70]},{ x:'08/07/2024',y:[61.40,66.00,61.40,66.00]},{ x:'08/08/2024',y:[63.90,65.40,63.20,63.70]},{ x:'08/09/2024',y:[66.00,68.30,65.70,66.90]},{ x:'08/12/2024',y:[67.00,68.50,66.20,66.80]},{ x:'08/13/2024',y:[66.90,67.40,65.50,67.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2392 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());