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/19/2023',y:[15.30,15.55,15.20,15.25]},{ x:'04/20/2023',y:[15.40,15.65,14.80,14.95]},{ x:'04/21/2023',y:[15.00,15.05,14.30,14.30]},{ x:'04/24/2023',y:[14.40,15.00,14.40,15.00]},{ x:'04/25/2023',y:[15.10,15.45,14.45,14.65]},{ x:'04/26/2023',y:[14.65,14.80,14.35,14.65]},{ x:'04/27/2023',y:[14.70,14.70,14.40,14.60]},{ x:'04/28/2023',y:[14.80,15.15,14.75,15.05]},{ x:'05/02/2023',y:[15.25,15.45,15.20,15.30]},{ x:'05/03/2023',y:[15.30,15.30,15.00,15.05]},{ x:'05/04/2023',y:[15.00,15.45,14.90,15.25]},{ x:'05/05/2023',y:[15.25,15.35,15.00,15.00]},{ x:'05/08/2023',y:[15.20,15.50,15.05,15.30]},{ x:'05/09/2023',y:[15.50,15.50,14.80,14.80]},{ x:'05/10/2023',y:[14.80,14.90,14.60,14.85]},{ x:'05/11/2023',y:[14.80,14.85,14.05,14.10]},{ x:'05/12/2023',y:[14.00,14.25,13.75,14.15]},{ x:'05/15/2023',y:[15.30,15.55,15.05,15.55]},{ x:'05/16/2023',y:[15.95,17.10,15.70,17.10]},{ x:'05/17/2023',y:[17.75,18.80,17.50,18.80]},{ x:'05/18/2023',y:[20.35,20.65,19.70,20.65]},{ x:'05/19/2023',y:[22.20,22.70,22.05,22.70]},{ x:'05/22/2023',y:[23.85,24.50,22.15,24.50]},{ x:'05/23/2023',y:[24.65,24.85,23.80,24.00]},{ x:'05/24/2023',y:[24.20,24.30,23.10,23.80]},{ x:'05/25/2023',y:[24.05,24.50,23.50,24.50]},{ x:'05/26/2023',y:[25.00,25.50,24.00,24.35]},{ x:'05/29/2023',y:[24.90,25.35,24.50,24.80]},{ x:'05/30/2023',y:[25.00,25.00,24.30,24.80]},{ x:'05/31/2023',y:[24.80,25.50,24.65,25.20]},{ x:'06/01/2023',y:[25.40,27.70,25.20,27.70]},{ x:'06/02/2023',y:[28.50,29.90,28.50,29.50]},{ x:'06/05/2023',y:[30.20,31.00,29.00,29.00]},{ x:'06/06/2023',y:[29.00,30.95,26.10,26.10]},{ x:'06/07/2023',y:[26.00,27.75,25.70,26.55]},{ x:'06/08/2023',y:[26.70,26.80,24.75,25.30]},{ x:'06/09/2023',y:[25.30,26.35,25.25,25.80]},{ x:'06/12/2023',y:[25.80,25.85,24.15,24.60]},{ x:'06/13/2023',y:[25.30,26.10,24.80,24.80]},{ x:'06/14/2023',y:[24.75,24.75,23.10,23.50]},{ x:'06/15/2023',y:[23.90,24.70,23.50,24.00]},{ x:'06/16/2023',y:[23.90,24.50,23.25,24.10]},{ x:'06/19/2023',y:[24.40,26.50,24.30,26.50]},{ x:'06/20/2023',y:[26.50,27.25,25.00,25.00]},{ x:'06/21/2023',y:[25.00,27.50,24.80,27.00]},{ x:'06/26/2023',y:[27.55,29.70,26.70,29.70]},{ x:'06/27/2023',y:[30.95,31.15,26.75,26.75]},{ x:'06/28/2023',y:[27.00,27.75,26.25,26.50]},{ x:'06/29/2023',y:[26.55,27.30,26.05,26.35]},{ x:'06/30/2023',y:[27.55,28.00,26.80,27.45]},{ x:'07/03/2023',y:[27.90,30.15,27.55,29.50]},{ x:'07/04/2023',y:[30.00,32.45,29.20,32.45]},{ x:'07/05/2023',y:[32.45,34.45,30.80,31.65]},{ x:'07/06/2023',y:[31.50,32.20,30.45,30.50]},{ x:'07/07/2023',y:[30.40,32.45,30.25,31.75]},{ x:'07/10/2023',y:[31.50,32.30,30.85,31.25]},{ x:'07/11/2023',y:[30.40,30.75,29.30,29.35]},{ x:'07/12/2023',y:[29.95,30.20,29.00,29.20]},{ x:'07/13/2023',y:[29.40,30.20,29.15,29.15]},{ x:'07/14/2023',y:[29.60,29.65,28.60,29.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2427 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());