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:[19.05,19.10,19.00,19.10]},{ x:'05/02/2024',y:[19.10,19.70,19.10,19.35]},{ x:'05/03/2024',y:[19.45,19.50,19.20,19.30]},{ x:'05/06/2024',y:[19.20,19.75,19.20,19.30]},{ x:'05/07/2024',y:[19.10,19.40,19.05,19.35]},{ x:'05/08/2024',y:[19.25,19.25,19.00,19.10]},{ x:'05/09/2024',y:[19.30,19.30,19.10,19.10]},{ x:'05/10/2024',y:[19.10,19.20,19.00,19.20]},{ x:'05/13/2024',y:[19.10,19.20,19.10,19.15]},{ x:'05/14/2024',y:[19.15,19.20,19.00,19.15]},{ x:'05/15/2024',y:[19.15,19.35,19.15,19.35]},{ x:'05/16/2024',y:[19.50,21.25,19.50,21.15]},{ x:'05/17/2024',y:[21.15,21.80,19.75,19.90]},{ x:'05/20/2024',y:[20.15,20.60,19.95,20.00]},{ x:'05/21/2024',y:[20.10,20.45,20.10,20.30]},{ x:'05/22/2024',y:[20.10,20.55,20.00,20.20]},{ x:'05/23/2024',y:[20.20,20.35,20.05,20.05]},{ x:'05/24/2024',y:[20.00,20.20,19.90,20.00]},{ x:'06/11/2024',y:[20.40,20.55,20.20,20.25]},{ x:'06/12/2024',y:[20.20,20.35,20.20,20.30]},{ x:'06/13/2024',y:[20.50,21.00,20.50,20.95]},{ x:'06/14/2024',y:[21.10,22.55,20.95,22.30]},{ x:'06/17/2024',y:[22.50,24.50,22.50,24.50]},{ x:'06/18/2024',y:[26.55,26.95,23.80,26.70]},{ x:'06/19/2024',y:[25.60,25.95,24.05,25.00]},{ x:'06/20/2024',y:[24.50,27.40,23.80,27.00]},{ x:'06/21/2024',y:[26.50,27.00,25.80,25.80]},{ x:'06/24/2024',y:[26.60,27.80,26.00,27.00]},{ x:'06/25/2024',y:[26.55,27.40,25.35,26.65]},{ x:'06/26/2024',y:[27.90,29.30,26.75,29.30]},{ x:'06/27/2024',y:[32.15,32.20,31.20,32.20]},{ x:'06/28/2024',y:[35.20,35.40,32.40,35.40]},{ x:'07/01/2024',y:[36.20,38.90,36.15,38.90]},{ x:'07/02/2024',y:[41.50,42.75,40.50,42.75]},{ x:'07/03/2024',y:[46.60,47.00,39.15,45.50]},{ x:'07/04/2024',y:[45.50,45.50,41.40,41.40]},{ x:'07/05/2024',y:[40.80,40.80,39.00,39.85]},{ x:'07/12/2024',y:[35.50,37.20,35.30,36.10]},{ x:'07/15/2024',y:[34.00,37.20,34.00,36.90]},{ x:'07/16/2024',y:[36.15,37.80,36.15,36.50]},{ x:'07/17/2024',y:[36.25,37.00,35.30,37.00]},{ x:'07/18/2024',y:[36.10,38.45,36.10,37.10]},{ x:'07/19/2024',y:[37.15,37.15,34.40,34.80]},{ x:'07/22/2024',y:[33.50,35.85,32.90,33.00]},{ x:'07/23/2024',y:[33.00,34.50,32.70,32.70]},{ x:'07/26/2024',y:[32.00,32.00,30.20,31.20]},{ x:'07/29/2024',y:[31.20,32.75,30.50,30.90]},{ x:'07/30/2024',y:[31.45,33.95,31.45,33.95]},{ x:'07/31/2024',y:[35.00,37.30,35.00,37.30]},{ x:'08/01/2024',y:[38.20,39.90,38.05,38.80]},{ x:'08/02/2024',y:[37.00,37.00,35.00,35.90]},{ x:'08/05/2024',y:[34.60,35.00,32.35,32.35]},{ x:'08/06/2024',y:[32.35,34.00,29.90,33.60]},{ x:'08/07/2024',y:[30.25,30.25,30.25,30.25]},{ x:'08/08/2024',y:[27.25,27.25,27.25,27.25]},{ x:'08/09/2024',y:[24.55,24.55,24.55,24.55]},{ x:'08/12/2024',y:[23.10,27.00,23.00,27.00]},{ x:'08/13/2024',y:[26.95,28.50,26.05,27.25]},{ x:'08/14/2024',y:[27.50,29.20,27.20,29.20]},{ x:'08/15/2024',y:[29.40,30.80,28.80,29.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2429 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());