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/09/2024',y:[25.30,25.50,24.00,24.40]},{ x:'04/10/2024',y:[24.80,25.55,24.70,25.00]},{ x:'04/11/2024',y:[24.50,25.00,24.20,24.35]},{ x:'04/12/2024',y:[24.15,24.50,23.45,23.65]},{ x:'04/15/2024',y:[23.65,23.65,22.70,23.00]},{ x:'04/16/2024',y:[23.40,23.80,22.50,22.85]},{ x:'04/17/2024',y:[23.70,24.90,23.15,23.40]},{ x:'04/18/2024',y:[23.40,24.85,22.80,24.70]},{ x:'04/19/2024',y:[24.75,25.90,24.30,24.65]},{ x:'04/22/2024',y:[24.30,25.80,24.05,24.35]},{ x:'04/23/2024',y:[24.65,25.80,24.65,25.60]},{ x:'04/24/2024',y:[25.70,26.20,25.30,25.45]},{ x:'04/25/2024',y:[25.45,26.25,25.45,26.00]},{ x:'04/26/2024',y:[25.95,27.20,25.85,26.90]},{ x:'04/29/2024',y:[27.50,29.35,26.75,29.00]},{ x:'04/30/2024',y:[29.70,30.00,27.55,29.70]},{ x:'05/02/2024',y:[30.70,32.65,30.05,32.65]},{ x:'05/03/2024',y:[34.20,35.00,32.05,33.40]},{ x:'05/06/2024',y:[34.00,36.30,32.50,35.80]},{ x:'05/07/2024',y:[36.00,36.65,33.10,34.00]},{ x:'05/08/2024',y:[34.00,34.60,32.75,33.95]},{ x:'05/09/2024',y:[34.35,35.50,33.50,33.50]},{ x:'05/10/2024',y:[33.90,34.40,32.50,33.00]},{ x:'05/13/2024',y:[32.60,32.65,31.05,31.80]},{ x:'05/14/2024',y:[31.80,31.90,30.10,30.15]},{ x:'05/15/2024',y:[30.60,30.75,29.90,30.20]},{ x:'05/16/2024',y:[30.25,32.65,30.25,31.25]},{ x:'05/17/2024',y:[31.10,31.85,30.60,30.85]},{ x:'05/20/2024',y:[31.10,31.45,30.45,30.75]},{ x:'05/21/2024',y:[30.95,32.70,30.95,31.65]},{ x:'05/22/2024',y:[31.20,31.90,31.05,31.15]},{ x:'05/23/2024',y:[31.05,31.05,29.45,29.45]},{ x:'05/24/2024',y:[29.00,30.50,28.55,30.10]},{ x:'06/11/2024',y:[33.80,34.05,32.80,33.00]},{ x:'06/12/2024',y:[33.20,33.35,32.00,32.40]},{ x:'06/13/2024',y:[32.45,33.00,32.15,32.45]},{ x:'06/14/2024',y:[32.45,34.40,32.45,33.95]},{ x:'06/17/2024',y:[34.50,34.65,33.10,33.25]},{ x:'06/18/2024',y:[33.25,33.65,33.10,33.20]},{ x:'06/19/2024',y:[33.25,33.70,32.65,32.65]},{ x:'06/20/2024',y:[32.75,33.30,32.40,32.55]},{ x:'06/21/2024',y:[32.55,32.75,31.80,31.80]},{ x:'06/24/2024',y:[31.80,32.35,31.50,32.10]},{ x:'06/25/2024',y:[32.45,32.55,31.50,31.80]},{ x:'06/26/2024',y:[31.85,32.20,31.15,31.20]},{ x:'06/27/2024',y:[31.20,31.45,30.60,31.45]},{ x:'06/28/2024',y:[31.50,31.70,30.85,30.95]},{ x:'07/01/2024',y:[30.80,34.00,30.80,33.55]},{ x:'07/02/2024',y:[33.30,33.35,32.30,32.35]},{ x:'07/03/2024',y:[32.30,32.80,32.10,32.55]},{ x:'07/04/2024',y:[32.55,32.95,32.15,32.75]},{ x:'07/05/2024',y:[33.05,34.00,32.75,33.80]},{ x:'07/12/2024',y:[38.50,39.40,37.90,39.20]},{ x:'07/15/2024',y:[42.55,42.55,40.10,40.60]},{ x:'07/16/2024',y:[40.90,43.25,40.75,42.40]},{ x:'07/17/2024',y:[42.70,43.95,41.50,41.70]},{ x:'07/18/2024',y:[41.70,42.20,40.60,41.85]},{ x:'07/19/2024',y:[41.95,42.55,39.25,41.40]},{ x:'07/22/2024',y:[41.90,41.90,39.70,41.55]},{ x:'07/23/2024',y:[42.50,45.70,42.45,45.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3188 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());