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:'03/26/2024',y:[20.55,21.00,20.40,20.40]},{ x:'03/27/2024',y:[20.90,21.15,20.55,20.60]},{ x:'03/28/2024',y:[20.75,20.90,20.30,20.30]},{ x:'03/29/2024',y:[20.35,20.50,20.20,20.20]},{ x:'04/01/2024',y:[20.10,22.20,20.10,22.20]},{ x:'04/02/2024',y:[22.60,23.90,22.00,23.55]},{ x:'04/03/2024',y:[23.20,25.60,22.65,23.95]},{ x:'04/08/2024',y:[23.80,24.65,22.85,24.00]},{ x:'04/09/2024',y:[24.00,24.00,23.30,23.60]},{ x:'04/10/2024',y:[23.60,23.90,23.35,23.85]},{ x:'04/11/2024',y:[23.60,23.85,23.10,23.10]},{ x:'04/12/2024',y:[23.65,23.65,23.00,23.00]},{ x:'04/15/2024',y:[22.95,23.10,22.40,22.45]},{ x:'04/16/2024',y:[22.30,22.35,21.50,21.60]},{ x:'04/17/2024',y:[21.60,22.05,21.60,22.00]},{ x:'04/18/2024',y:[21.85,21.95,21.50,21.65]},{ x:'04/19/2024',y:[21.75,21.75,20.30,21.05]},{ x:'04/22/2024',y:[21.90,23.15,21.90,23.15]},{ x:'04/23/2024',y:[23.65,24.15,22.15,22.85]},{ x:'04/24/2024',y:[23.35,24.50,23.15,23.40]},{ x:'04/25/2024',y:[23.40,23.50,23.00,23.20]},{ x:'04/26/2024',y:[23.20,23.40,22.80,22.80]},{ x:'04/29/2024',y:[22.95,23.20,22.55,22.70]},{ x:'04/30/2024',y:[22.80,23.50,22.60,23.10]},{ x:'05/02/2024',y:[23.20,23.35,22.75,22.95]},{ x:'05/03/2024',y:[23.30,23.30,22.30,22.30]},{ x:'05/06/2024',y:[22.40,23.80,22.40,23.05]},{ x:'05/07/2024',y:[23.50,24.65,23.30,23.65]},{ x:'05/08/2024',y:[23.70,24.25,23.40,24.25]},{ x:'05/09/2024',y:[24.25,24.50,23.90,24.30]},{ x:'05/10/2024',y:[24.30,24.30,23.60,24.10]},{ x:'05/13/2024',y:[24.35,24.50,23.65,23.95]},{ x:'05/14/2024',y:[23.95,24.10,23.70,23.90]},{ x:'05/15/2024',y:[24.15,26.25,23.95,25.55]},{ x:'05/16/2024',y:[25.65,27.25,25.40,25.60]},{ x:'05/17/2024',y:[25.60,25.80,24.25,25.40]},{ x:'05/20/2024',y:[26.15,27.90,25.85,26.95]},{ x:'05/21/2024',y:[26.75,27.50,26.20,26.70]},{ x:'05/22/2024',y:[26.75,29.20,26.40,28.50]},{ x:'05/23/2024',y:[28.85,29.75,28.25,28.65]},{ x:'05/24/2024',y:[28.60,30.45,27.60,29.35]},{ x:'06/11/2024',y:[32.00,32.00,30.15,30.15]},{ x:'06/12/2024',y:[30.00,31.00,29.45,30.45]},{ x:'06/13/2024',y:[30.85,33.00,30.20,32.05]},{ x:'06/14/2024',y:[31.80,32.00,31.00,31.45]},{ x:'06/17/2024',y:[31.55,33.65,31.35,33.00]},{ x:'06/18/2024',y:[33.20,36.30,33.20,34.50]},{ x:'06/19/2024',y:[34.50,34.90,33.30,33.90]},{ x:'06/20/2024',y:[33.90,37.20,33.50,36.55]},{ x:'06/21/2024',y:[36.55,40.20,36.30,40.20]},{ x:'06/24/2024',y:[43.50,44.20,42.20,44.20]},{ x:'06/25/2024',y:[44.15,44.15,40.20,41.65]},{ x:'06/26/2024',y:[43.95,44.40,39.80,39.90]},{ x:'06/27/2024',y:[39.55,41.40,39.30,39.75]},{ x:'06/28/2024',y:[39.75,43.70,39.70,43.70]},{ x:'07/01/2024',y:[47.50,48.05,44.25,48.05]},{ x:'07/02/2024',y:[49.60,52.80,47.05,50.00]},{ x:'07/03/2024',y:[49.00,50.50,48.30,49.10]},{ x:'07/04/2024',y:[49.30,54.00,49.25,54.00]},{ x:'07/05/2024',y:[58.00,59.40,56.70,59.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3535 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());