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/22/2024',y:[22.50,22.50,22.05,22.40]},{ x:'04/23/2024',y:[22.50,22.50,21.55,22.00]},{ x:'04/24/2024',y:[22.35,22.35,21.50,21.95]},{ x:'04/25/2024',y:[21.85,21.85,21.15,21.15]},{ x:'04/26/2024',y:[21.10,21.10,20.60,20.80]},{ x:'04/29/2024',y:[20.65,20.65,19.60,20.10]},{ x:'04/30/2024',y:[20.20,22.10,20.20,22.10]},{ x:'05/02/2024',y:[24.30,24.30,24.25,24.30]},{ x:'05/03/2024',y:[25.00,26.70,25.00,26.70]},{ x:'05/06/2024',y:[28.45,29.35,26.90,29.10]},{ x:'05/07/2024',y:[28.50,28.50,26.50,27.40]},{ x:'05/08/2024',y:[26.50,27.50,25.05,27.00]},{ x:'05/09/2024',y:[27.70,28.75,26.50,27.55]},{ x:'05/10/2024',y:[26.20,27.30,25.90,26.95]},{ x:'05/13/2024',y:[26.95,26.95,24.80,25.50]},{ x:'05/14/2024',y:[25.20,26.25,24.75,24.80]},{ x:'05/15/2024',y:[24.80,25.80,23.20,24.75]},{ x:'05/16/2024',y:[24.50,24.50,23.65,24.30]},{ x:'05/17/2024',y:[23.70,25.10,23.60,24.85]},{ x:'05/20/2024',y:[24.75,24.75,24.55,24.55]},{ x:'05/21/2024',y:[24.30,24.75,24.30,24.50]},{ x:'05/22/2024',y:[23.75,25.40,23.75,23.85]},{ x:'05/23/2024',y:[23.90,24.05,23.60,23.65]},{ x:'05/24/2024',y:[23.65,24.10,23.20,23.90]},{ x:'06/11/2024',y:[26.00,26.65,25.75,25.85]},{ x:'06/12/2024',y:[25.80,26.40,25.25,25.85]},{ x:'06/13/2024',y:[25.80,25.80,24.85,25.25]},{ x:'06/14/2024',y:[25.10,26.90,24.90,26.00]},{ x:'06/17/2024',y:[26.00,26.00,25.45,26.00]},{ x:'06/18/2024',y:[25.65,27.15,25.55,25.80]},{ x:'06/19/2024',y:[25.80,26.70,25.55,25.80]},{ x:'06/20/2024',y:[25.80,25.90,25.30,25.85]},{ x:'06/21/2024',y:[25.25,25.45,25.25,25.40]},{ x:'06/24/2024',y:[26.05,26.20,25.60,26.15]},{ x:'06/25/2024',y:[26.95,28.75,26.95,28.75]},{ x:'06/26/2024',y:[28.75,31.00,27.80,29.80]},{ x:'06/27/2024',y:[28.80,29.50,28.10,29.25]},{ x:'06/28/2024',y:[29.80,29.80,29.00,29.25]},{ x:'07/01/2024',y:[31.90,32.15,30.70,32.15]},{ x:'07/02/2024',y:[34.65,35.35,33.75,35.35]},{ x:'07/03/2024',y:[35.35,38.00,34.05,35.10]},{ x:'07/04/2024',y:[35.10,35.10,34.00,34.30]},{ x:'07/05/2024',y:[33.10,34.75,33.10,34.40]},{ x:'07/12/2024',y:[35.60,35.60,34.60,34.85]},{ x:'07/15/2024',y:[34.70,37.50,34.70,35.65]},{ x:'07/16/2024',y:[35.70,37.30,35.70,37.20]},{ x:'07/17/2024',y:[37.00,37.30,36.75,37.15]},{ x:'07/18/2024',y:[36.80,36.80,36.00,36.45]},{ x:'07/19/2024',y:[36.55,36.60,34.65,34.80]},{ x:'07/22/2024',y:[33.00,33.40,31.35,31.50]},{ x:'07/23/2024',y:[31.80,34.65,31.80,34.65]},{ x:'07/26/2024',y:[32.00,36.00,32.00,36.00]},{ x:'07/29/2024',y:[36.00,37.00,35.00,36.35]},{ x:'07/30/2024',y:[36.50,36.50,35.10,35.65]},{ x:'07/31/2024',y:[35.75,35.75,34.60,35.40]},{ x:'08/01/2024',y:[35.25,36.40,35.25,35.80]},{ x:'08/02/2024',y:[35.70,35.70,34.90,34.90]},{ x:'08/05/2024',y:[32.35,33.95,31.45,31.45]},{ x:'08/06/2024',y:[31.45,31.80,30.00,31.50]},{ x:'08/07/2024',y:[33.90,34.50,32.35,33.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6130 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());