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/20/2024',y:[51.30,51.90,50.80,51.20]},{ x:'03/21/2024',y:[50.10,50.50,49.35,49.35]},{ x:'03/22/2024',y:[49.35,49.60,48.60,49.15]},{ x:'03/25/2024',y:[49.05,49.60,48.85,49.40]},{ x:'03/26/2024',y:[49.30,49.30,48.10,48.10]},{ x:'03/27/2024',y:[48.10,49.30,48.10,48.55]},{ x:'03/28/2024',y:[48.60,48.85,48.05,48.10]},{ x:'03/29/2024',y:[48.50,48.75,48.10,48.70]},{ x:'04/01/2024',y:[48.90,50.90,48.90,49.25]},{ x:'04/02/2024',y:[49.95,51.20,48.70,49.80]},{ x:'04/03/2024',y:[49.95,50.50,49.45,49.90]},{ x:'04/08/2024',y:[50.00,50.40,49.80,49.85]},{ x:'04/09/2024',y:[50.00,50.70,49.85,49.90]},{ x:'04/10/2024',y:[49.95,50.40,48.90,49.00]},{ x:'04/11/2024',y:[48.90,49.05,48.20,48.65]},{ x:'04/12/2024',y:[48.70,49.00,48.20,48.25]},{ x:'04/15/2024',y:[48.10,48.25,47.60,47.85]},{ x:'04/16/2024',y:[47.65,47.65,45.40,46.00]},{ x:'04/17/2024',y:[46.35,48.20,46.35,47.80]},{ x:'04/18/2024',y:[47.60,47.60,47.10,47.20]},{ x:'04/19/2024',y:[47.35,47.35,45.45,46.10]},{ x:'04/22/2024',y:[45.70,45.70,44.00,45.35]},{ x:'04/23/2024',y:[45.50,48.30,45.50,47.95]},{ x:'04/24/2024',y:[47.30,47.95,46.70,47.20]},{ x:'04/25/2024',y:[46.95,47.85,46.80,47.50]},{ x:'04/26/2024',y:[47.85,48.30,47.20,48.00]},{ x:'04/29/2024',y:[47.80,48.15,47.00,47.25]},{ x:'04/30/2024',y:[47.10,47.55,46.85,46.90]},{ x:'05/02/2024',y:[46.55,46.55,45.45,45.55]},{ x:'05/03/2024',y:[45.70,46.60,45.20,45.60]},{ x:'05/06/2024',y:[45.30,45.70,44.70,44.70]},{ x:'05/07/2024',y:[44.75,44.75,42.20,43.05]},{ x:'05/08/2024',y:[42.95,43.70,42.30,43.45]},{ x:'05/09/2024',y:[43.45,43.60,42.90,43.00]},{ x:'05/10/2024',y:[43.00,43.25,42.50,43.00]},{ x:'05/13/2024',y:[43.50,43.55,43.00,43.55]},{ x:'05/14/2024',y:[43.55,43.70,41.95,42.20]},{ x:'05/15/2024',y:[42.20,43.00,40.60,42.80]},{ x:'05/16/2024',y:[42.60,43.20,42.60,42.85]},{ x:'05/17/2024',y:[38.60,38.60,38.60,38.60]},{ x:'05/20/2024',y:[37.10,38.00,35.05,36.95]},{ x:'05/21/2024',y:[37.25,40.05,37.25,39.55]},{ x:'05/22/2024',y:[38.15,40.60,38.15,39.00]},{ x:'05/23/2024',y:[39.55,39.55,38.00,38.10]},{ x:'05/24/2024',y:[38.10,38.45,37.30,38.00]},{ x:'06/11/2024',y:[42.45,43.05,41.70,41.80]},{ x:'06/12/2024',y:[42.95,42.95,41.30,41.85]},{ x:'06/13/2024',y:[42.30,42.70,41.55,42.00]},{ x:'06/14/2024',y:[42.45,42.65,41.05,41.05]},{ x:'06/17/2024',y:[40.70,41.30,40.40,40.40]},{ x:'06/18/2024',y:[39.10,40.60,39.10,39.70]},{ x:'06/19/2024',y:[41.00,41.00,39.25,39.30]},{ x:'06/20/2024',y:[39.40,39.95,39.40,39.70]},{ x:'06/21/2024',y:[40.05,41.05,40.05,40.80]},{ x:'06/24/2024',y:[41.60,44.85,41.30,43.85]},{ x:'06/25/2024',y:[43.00,43.20,41.60,42.10]},{ x:'06/26/2024',y:[42.40,44.30,42.35,44.00]},{ x:'06/27/2024',y:[44.95,45.90,44.40,44.55]},{ x:'06/28/2024',y:[45.05,46.00,45.05,45.65]},{ x:'07/01/2024',y:[50.20,50.20,50.20,50.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6541 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());