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:[21.60,22.05,21.40,21.55]},{ x:'05/02/2024',y:[21.55,21.75,21.35,21.65]},{ x:'05/03/2024',y:[21.75,21.90,21.50,21.50]},{ x:'05/06/2024',y:[21.75,22.70,21.75,22.35]},{ x:'05/07/2024',y:[22.50,22.75,21.85,22.20]},{ x:'05/08/2024',y:[22.20,22.20,21.90,22.00]},{ x:'05/09/2024',y:[22.10,22.50,21.95,21.95]},{ x:'05/10/2024',y:[22.20,22.20,21.75,21.95]},{ x:'05/13/2024',y:[22.55,23.00,22.25,22.95]},{ x:'05/14/2024',y:[23.00,23.55,22.80,23.10]},{ x:'05/15/2024',y:[23.20,23.25,22.80,22.85]},{ x:'05/16/2024',y:[23.15,23.50,23.00,23.15]},{ x:'05/17/2024',y:[23.40,23.55,23.20,23.25]},{ x:'05/20/2024',y:[23.40,23.55,23.05,23.30]},{ x:'05/21/2024',y:[23.45,23.55,23.20,23.50]},{ x:'05/22/2024',y:[23.50,24.40,23.20,23.25]},{ x:'05/23/2024',y:[23.40,23.45,22.75,22.85]},{ x:'05/24/2024',y:[23.30,24.90,23.15,23.90]},{ x:'06/11/2024',y:[24.70,24.90,24.20,24.40]},{ x:'06/12/2024',y:[24.50,24.65,24.00,24.35]},{ x:'06/13/2024',y:[24.55,24.65,24.25,24.45]},{ x:'06/14/2024',y:[24.80,26.50,24.70,25.75]},{ x:'06/17/2024',y:[26.00,27.50,25.55,26.50]},{ x:'06/18/2024',y:[27.00,29.15,26.60,29.15]},{ x:'06/19/2024',y:[30.15,31.20,28.10,28.20]},{ x:'06/20/2024',y:[28.25,31.00,27.70,31.00]},{ x:'06/21/2024',y:[31.40,34.10,30.85,34.10]},{ x:'06/24/2024',y:[35.50,37.05,33.90,34.45]},{ x:'06/25/2024',y:[34.30,34.30,32.10,34.00]},{ x:'06/26/2024',y:[34.60,35.30,33.35,33.80]},{ x:'06/27/2024',y:[33.70,34.50,32.30,32.80]},{ x:'06/28/2024',y:[32.80,33.15,32.05,32.10]},{ x:'07/01/2024',y:[32.25,32.40,31.30,31.30]},{ x:'07/02/2024',y:[31.30,31.50,30.20,30.35]},{ x:'07/03/2024',y:[30.70,31.70,30.30,30.30]},{ x:'07/04/2024',y:[30.20,31.75,30.20,31.00]},{ x:'07/05/2024',y:[31.00,32.00,30.45,31.35]},{ x:'07/12/2024',y:[31.90,32.45,31.40,32.00]},{ x:'07/15/2024',y:[32.00,32.20,31.00,31.10]},{ x:'07/16/2024',y:[31.10,31.45,30.75,31.15]},{ x:'07/17/2024',y:[31.50,33.85,31.40,32.95]},{ x:'07/18/2024',y:[32.75,33.60,31.85,32.70]},{ x:'07/19/2024',y:[32.40,33.25,31.25,31.30]},{ x:'07/22/2024',y:[31.25,32.00,30.05,31.55]},{ x:'07/23/2024',y:[31.65,33.20,31.00,31.30]},{ x:'07/26/2024',y:[30.00,30.85,29.05,30.80]},{ x:'07/29/2024',y:[30.95,31.60,29.30,29.40]},{ x:'07/30/2024',y:[29.35,29.75,28.70,29.75]},{ x:'07/31/2024',y:[29.50,30.65,29.30,30.10]},{ x:'08/01/2024',y:[30.80,31.20,30.15,30.15]},{ x:'08/02/2024',y:[29.40,29.40,28.30,28.35]},{ x:'08/05/2024',y:[26.10,26.85,25.55,25.55]},{ x:'08/06/2024',y:[25.75,26.20,23.00,23.90]},{ x:'08/07/2024',y:[24.10,26.15,24.05,25.95]},{ x:'08/08/2024',y:[25.45,25.95,25.10,25.30]},{ x:'08/09/2024',y:[26.40,27.00,26.05,26.40]},{ x:'08/12/2024',y:[27.60,29.00,27.50,29.00]},{ x:'08/13/2024',y:[29.80,31.90,29.10,30.75]},{ x:'08/14/2024',y:[31.20,31.60,30.25,30.50]},{ x:'08/15/2024',y:[30.65,30.85,29.70,30.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3062 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());