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/18/2024',y:[15.70,15.80,15.35,15.80]},{ x:'03/19/2024',y:[15.80,15.90,15.65,15.75]},{ x:'03/20/2024',y:[15.80,15.95,15.60,15.80]},{ x:'03/21/2024',y:[16.00,16.00,15.70,15.70]},{ x:'03/22/2024',y:[16.10,16.10,15.70,15.70]},{ x:'03/25/2024',y:[15.75,16.20,15.75,16.15]},{ x:'03/26/2024',y:[16.15,16.15,15.90,16.15]},{ x:'03/27/2024',y:[16.05,16.50,16.05,16.50]},{ x:'03/28/2024',y:[16.55,18.15,16.55,18.15]},{ x:'03/29/2024',y:[18.65,19.95,18.60,19.55]},{ x:'04/01/2024',y:[19.50,19.90,17.85,18.05]},{ x:'04/02/2024',y:[18.05,18.35,17.50,17.65]},{ x:'04/03/2024',y:[17.55,17.95,17.25,17.85]},{ x:'04/08/2024',y:[18.05,18.95,17.90,18.25]},{ x:'04/09/2024',y:[18.25,18.25,17.55,17.75]},{ x:'04/10/2024',y:[18.00,18.75,18.00,18.10]},{ x:'04/11/2024',y:[18.40,18.40,17.60,17.80]},{ x:'04/12/2024',y:[17.95,17.95,17.70,17.70]},{ x:'04/15/2024',y:[17.55,17.55,17.00,17.35]},{ x:'04/16/2024',y:[17.30,17.30,16.65,17.00]},{ x:'04/17/2024',y:[16.80,17.35,16.80,17.20]},{ x:'04/18/2024',y:[17.20,18.90,16.85,18.50]},{ x:'04/19/2024',y:[18.70,19.45,17.80,18.45]},{ x:'04/22/2024',y:[18.40,19.05,18.30,18.40]},{ x:'04/23/2024',y:[18.75,18.75,18.30,18.60]},{ x:'04/24/2024',y:[18.95,20.45,18.70,20.20]},{ x:'04/25/2024',y:[20.00,21.00,19.25,19.60]},{ x:'04/26/2024',y:[19.60,19.85,18.90,19.35]},{ x:'04/29/2024',y:[19.35,19.35,18.45,18.45]},{ x:'04/30/2024',y:[18.50,18.65,18.30,18.45]},{ x:'05/02/2024',y:[18.55,18.90,18.15,18.50]},{ x:'05/03/2024',y:[18.55,18.80,18.00,18.00]},{ x:'05/06/2024',y:[19.80,19.80,19.80,19.80]},{ x:'05/07/2024',y:[21.75,21.75,21.75,21.75]},{ x:'05/08/2024',y:[23.90,23.90,23.90,23.90]},{ x:'05/09/2024',y:[26.25,26.25,25.45,26.25]},{ x:'05/10/2024',y:[27.80,28.85,25.35,28.85]},{ x:'05/13/2024',y:[29.65,30.50,27.50,29.45]},{ x:'05/14/2024',y:[28.60,30.00,28.25,29.00]},{ x:'05/15/2024',y:[29.25,31.90,29.25,31.05]},{ x:'05/16/2024',y:[31.90,31.90,29.70,30.00]},{ x:'05/17/2024',y:[30.75,30.75,28.50,29.05]},{ x:'05/20/2024',y:[30.00,30.35,28.85,28.85]},{ x:'05/21/2024',y:[28.90,31.70,28.90,31.70]},{ x:'05/22/2024',y:[32.00,33.00,31.00,32.20]},{ x:'05/23/2024',y:[32.60,32.60,30.00,30.00]},{ x:'05/24/2024',y:[29.00,31.80,29.00,31.75]},{ x:'06/11/2024',y:[39.00,39.00,35.30,35.30]},{ x:'06/12/2024',y:[35.00,38.80,33.85,38.80]},{ x:'06/13/2024',y:[40.10,42.65,40.10,42.65]},{ x:'06/14/2024',y:[44.20,46.90,43.20,46.90]},{ x:'06/17/2024',y:[50.40,51.50,49.00,51.50]},{ x:'06/18/2024',y:[53.20,56.60,50.00,50.00]},{ x:'06/19/2024',y:[49.55,49.55,45.25,45.45]},{ x:'06/20/2024',y:[45.30,49.95,44.20,49.95]},{ x:'06/21/2024',y:[49.90,51.10,47.70,48.10]},{ x:'06/24/2024',y:[47.40,49.00,46.55,48.70]},{ x:'06/25/2024',y:[48.25,51.60,48.00,49.50]},{ x:'06/26/2024',y:[49.20,51.30,48.40,48.50]},{ x:'06/27/2024',y:[48.30,48.45,46.00,46.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4562 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());