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/10/2024',y:[14.90,15.30,14.80,15.25]},{ x:'04/11/2024',y:[15.25,15.40,14.90,15.25]},{ x:'04/12/2024',y:[15.10,15.50,15.10,15.30]},{ x:'04/15/2024',y:[15.05,15.80,15.00,15.65]},{ x:'04/16/2024',y:[15.35,15.75,15.35,15.65]},{ x:'04/17/2024',y:[16.40,16.40,15.65,15.95]},{ x:'04/18/2024',y:[16.25,16.25,15.70,16.15]},{ x:'04/19/2024',y:[16.25,16.25,15.50,16.00]},{ x:'04/22/2024',y:[16.65,17.60,16.55,17.60]},{ x:'04/23/2024',y:[18.00,19.30,17.65,19.20]},{ x:'04/24/2024',y:[19.40,19.95,17.95,19.05]},{ x:'04/25/2024',y:[18.35,19.00,18.20,18.75]},{ x:'04/26/2024',y:[18.75,19.40,18.40,18.90]},{ x:'04/29/2024',y:[18.85,19.30,18.70,18.85]},{ x:'04/30/2024',y:[18.65,18.85,18.00,18.65]},{ x:'05/02/2024',y:[18.20,18.65,18.00,18.45]},{ x:'05/03/2024',y:[18.45,18.80,18.25,18.45]},{ x:'05/06/2024',y:[18.45,19.00,17.30,18.95]},{ x:'05/07/2024',y:[18.90,19.15,18.85,19.10]},{ x:'05/08/2024',y:[19.10,19.10,18.95,19.05]},{ x:'05/09/2024',y:[19.10,19.10,18.85,18.90]},{ x:'05/10/2024',y:[18.55,19.00,18.50,18.50]},{ x:'05/13/2024',y:[18.80,19.30,18.05,18.60]},{ x:'05/14/2024',y:[18.20,18.85,18.10,18.20]},{ x:'05/15/2024',y:[18.25,18.70,18.20,18.65]},{ x:'05/16/2024',y:[18.65,18.85,18.50,18.75]},{ x:'05/17/2024',y:[18.70,18.80,18.55,18.75]},{ x:'05/20/2024',y:[18.90,19.05,18.55,18.85]},{ x:'05/21/2024',y:[18.95,19.35,18.90,19.10]},{ x:'05/22/2024',y:[18.90,19.10,18.75,19.10]},{ x:'05/23/2024',y:[18.85,19.00,18.70,18.75]},{ x:'05/24/2024',y:[18.90,19.40,18.70,18.80]},{ x:'06/11/2024',y:[19.05,19.05,18.50,18.65]},{ x:'06/12/2024',y:[20.30,20.50,20.30,20.50]},{ x:'06/13/2024',y:[22.55,22.55,22.55,22.55]},{ x:'06/14/2024',y:[24.80,24.80,24.80,24.80]},{ x:'06/17/2024',y:[27.25,27.25,27.25,27.25]},{ x:'06/18/2024',y:[29.95,29.95,25.10,29.90]},{ x:'06/19/2024',y:[27.80,28.30,26.95,26.95]},{ x:'06/20/2024',y:[26.80,27.30,25.30,26.80]},{ x:'06/21/2024',y:[27.80,29.05,26.90,28.00]},{ x:'06/24/2024',y:[28.00,29.00,26.50,27.10]},{ x:'06/25/2024',y:[27.50,29.80,26.95,29.80]},{ x:'06/26/2024',y:[30.20,30.60,29.80,30.35]},{ x:'06/27/2024',y:[29.10,29.75,29.00,29.45]},{ x:'06/28/2024',y:[28.50,29.20,28.35,28.40]},{ x:'07/01/2024',y:[28.40,28.40,27.20,27.50]},{ x:'07/02/2024',y:[27.05,28.45,26.00,26.40]},{ x:'07/03/2024',y:[24.15,25.90,24.10,25.20]},{ x:'07/04/2024',y:[25.25,27.70,24.85,27.70]},{ x:'07/05/2024',y:[27.00,28.15,26.10,28.05]},{ x:'07/12/2024',y:[29.85,29.85,26.00,28.85]},{ x:'07/15/2024',y:[28.60,28.60,26.80,27.50]},{ x:'07/16/2024',y:[27.25,27.60,27.00,27.35]},{ x:'07/17/2024',y:[27.10,28.50,27.10,27.80]},{ x:'07/18/2024',y:[27.75,27.80,26.70,26.80]},{ x:'07/19/2024',y:[26.70,26.90,25.90,26.65]},{ x:'07/22/2024',y:[25.35,26.50,24.00,24.60]},{ x:'07/23/2024',y:[25.65,25.75,24.25,24.25]},{ x:'07/26/2024',y:[22.50,23.95,22.50,23.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4924 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());