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/30/2024',y:[23.15,23.30,22.50,22.70]},{ x:'05/02/2024',y:[22.70,23.10,22.65,22.65]},{ x:'05/03/2024',y:[23.15,23.15,22.20,22.35]},{ x:'05/06/2024',y:[22.90,22.90,22.40,22.55]},{ x:'05/07/2024',y:[22.65,22.90,22.50,22.75]},{ x:'05/08/2024',y:[22.90,24.20,22.55,22.65]},{ x:'05/09/2024',y:[22.80,23.15,22.65,22.75]},{ x:'05/10/2024',y:[23.05,25.00,22.95,25.00]},{ x:'05/13/2024',y:[27.50,27.50,26.55,27.50]},{ x:'05/14/2024',y:[28.00,30.25,27.40,30.25]},{ x:'05/15/2024',y:[30.30,31.95,29.20,30.90]},{ x:'05/16/2024',y:[30.90,31.90,29.70,30.00]},{ x:'05/17/2024',y:[30.00,30.60,28.50,28.95]},{ x:'05/20/2024',y:[29.05,29.45,28.00,28.10]},{ x:'05/21/2024',y:[27.50,28.00,27.50,27.55]},{ x:'05/22/2024',y:[28.20,30.30,28.10,30.30]},{ x:'05/23/2024',y:[31.30,33.30,31.30,33.30]},{ x:'05/24/2024',y:[33.30,33.90,30.75,31.65]},{ x:'06/11/2024',y:[48.45,49.70,43.15,47.00]},{ x:'06/12/2024',y:[46.90,47.20,43.60,43.80]},{ x:'06/13/2024',y:[45.70,46.70,44.20,44.35]},{ x:'06/14/2024',y:[44.95,48.00,44.60,46.80]},{ x:'06/17/2024',y:[47.50,47.85,45.00,45.05]},{ x:'06/18/2024',y:[45.25,45.90,44.00,44.50]},{ x:'06/19/2024',y:[44.55,46.50,43.60,44.00]},{ x:'06/20/2024',y:[44.10,44.85,43.50,43.50]},{ x:'06/21/2024',y:[44.20,46.40,43.45,44.80]},{ x:'06/24/2024',y:[45.00,45.20,43.00,43.30]},{ x:'06/25/2024',y:[43.60,44.30,42.95,43.95]},{ x:'06/26/2024',y:[43.70,44.10,42.55,42.75]},{ x:'06/27/2024',y:[42.75,43.15,41.55,41.65]},{ x:'06/28/2024',y:[41.45,42.80,40.80,41.80]},{ x:'07/01/2024',y:[41.85,42.10,40.60,40.85]},{ x:'07/02/2024',y:[40.90,41.20,40.00,40.15]},{ x:'07/03/2024',y:[40.60,42.70,40.50,41.55]},{ x:'07/04/2024',y:[41.15,41.25,40.45,40.50]},{ x:'07/05/2024',y:[40.50,40.50,39.40,39.80]},{ x:'07/12/2024',y:[38.30,38.30,37.30,37.35]},{ x:'07/15/2024',y:[36.85,37.25,36.25,36.75]},{ x:'07/16/2024',y:[37.00,37.75,36.10,36.15]},{ x:'07/17/2024',y:[36.10,36.40,35.90,35.90]},{ x:'07/18/2024',y:[35.90,36.35,35.55,35.55]},{ x:'07/19/2024',y:[35.85,35.85,34.40,34.40]},{ x:'07/22/2024',y:[34.10,34.35,33.45,34.05]},{ x:'07/23/2024',y:[34.55,34.65,33.90,33.95]},{ x:'07/26/2024',y:[32.65,33.95,32.55,33.95]},{ x:'07/29/2024',y:[34.00,34.00,32.95,33.00]},{ x:'07/30/2024',y:[33.30,34.00,33.00,33.80]},{ x:'07/31/2024',y:[33.85,35.00,33.20,33.95]},{ x:'08/01/2024',y:[34.70,35.15,33.55,34.95]},{ x:'08/02/2024',y:[34.50,35.80,33.55,34.35]},{ x:'08/05/2024',y:[33.90,34.00,31.20,32.65]},{ x:'08/06/2024',y:[32.65,35.35,31.95,31.95]},{ x:'08/07/2024',y:[32.45,34.00,31.65,33.95]},{ x:'08/08/2024',y:[33.55,33.90,32.90,33.20]},{ x:'08/09/2024',y:[33.70,34.25,32.95,33.10]},{ x:'08/12/2024',y:[33.60,34.50,33.40,34.05]},{ x:'08/13/2024',y:[34.50,34.55,33.35,33.60]},{ x:'08/14/2024',y:[33.95,34.55,33.45,33.60]},{ x:'08/15/2024',y:[33.70,33.95,33.05,33.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2613 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());