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/02/2024',y:[24.35,24.55,24.35,24.35]},{ x:'04/03/2024',y:[24.30,24.30,24.15,24.20]},{ x:'04/08/2024',y:[24.35,24.35,24.05,24.05]},{ x:'04/09/2024',y:[24.00,24.15,23.80,23.95]},{ x:'04/10/2024',y:[23.95,24.55,23.80,24.30]},{ x:'04/11/2024',y:[24.30,24.55,24.15,24.50]},{ x:'04/12/2024',y:[24.50,24.90,24.40,24.40]},{ x:'04/15/2024',y:[24.40,24.40,24.20,24.30]},{ x:'04/16/2024',y:[24.05,24.10,23.85,23.85]},{ x:'04/17/2024',y:[23.70,23.95,23.60,23.95]},{ x:'04/18/2024',y:[23.75,23.85,23.75,23.85]},{ x:'04/19/2024',y:[23.85,24.20,23.50,23.80]},{ x:'04/22/2024',y:[23.60,23.60,23.45,23.45]},{ x:'04/23/2024',y:[23.45,23.65,23.45,23.50]},{ x:'04/24/2024',y:[23.55,24.00,23.55,23.85]},{ x:'04/25/2024',y:[24.00,24.00,23.90,23.90]},{ x:'04/26/2024',y:[24.00,24.35,24.00,24.00]},{ x:'04/29/2024',y:[23.70,24.10,23.70,24.00]},{ x:'04/30/2024',y:[24.20,24.20,23.70,23.70]},{ x:'05/02/2024',y:[23.80,24.00,23.70,23.95]},{ x:'05/03/2024',y:[24.00,24.25,24.00,24.10]},{ x:'05/06/2024',y:[24.55,26.50,24.50,26.50]},{ x:'05/07/2024',y:[27.00,29.15,27.00,29.15]},{ x:'05/08/2024',y:[29.55,29.80,27.15,28.75]},{ x:'05/09/2024',y:[29.05,30.30,27.30,28.95]},{ x:'05/10/2024',y:[28.45,30.50,27.90,28.00]},{ x:'05/13/2024',y:[28.00,29.30,27.55,28.60]},{ x:'05/14/2024',y:[28.65,28.65,27.70,27.70]},{ x:'05/15/2024',y:[27.70,28.20,27.45,27.45]},{ x:'05/16/2024',y:[27.80,27.80,26.60,26.70]},{ x:'05/17/2024',y:[27.20,29.35,27.00,28.50]},{ x:'05/20/2024',y:[28.80,31.35,28.80,31.35]},{ x:'05/21/2024',y:[32.30,33.60,30.40,32.60]},{ x:'05/22/2024',y:[32.30,33.70,32.30,32.95]},{ x:'05/23/2024',y:[32.95,32.95,31.30,31.70]},{ x:'05/24/2024',y:[31.35,32.60,31.30,31.60]},{ x:'06/11/2024',y:[35.95,37.55,35.10,37.55]},{ x:'06/12/2024',y:[40.00,41.30,37.20,40.55]},{ x:'06/13/2024',y:[41.30,42.50,38.40,40.00]},{ x:'06/14/2024',y:[39.80,42.30,38.80,40.20]},{ x:'06/17/2024',y:[40.20,44.20,39.70,44.20]},{ x:'06/18/2024',y:[47.50,48.60,46.05,48.60]},{ x:'06/19/2024',y:[50.60,51.20,43.75,43.75]},{ x:'06/20/2024',y:[42.85,45.00,40.60,43.25]},{ x:'06/21/2024',y:[44.00,47.55,43.15,47.55]},{ x:'06/24/2024',y:[49.30,52.20,48.10,49.30]},{ x:'06/25/2024',y:[49.90,51.30,47.40,47.65]},{ x:'06/26/2024',y:[48.00,50.10,47.55,47.55]},{ x:'06/27/2024',y:[47.60,47.90,44.80,44.80]},{ x:'06/28/2024',y:[46.00,48.85,45.50,47.40]},{ x:'07/01/2024',y:[47.80,48.50,45.25,45.25]},{ x:'07/02/2024',y:[45.40,47.50,45.10,46.20]},{ x:'07/03/2024',y:[46.70,49.50,46.40,47.45]},{ x:'07/04/2024',y:[48.50,48.60,46.35,46.45]},{ x:'07/05/2024',y:[46.40,48.45,46.40,46.70]},{ x:'07/12/2024',y:[49.35,49.35,45.55,45.80]},{ x:'07/15/2024',y:[46.25,46.75,45.30,45.95]},{ x:'07/16/2024',y:[46.70,50.50,46.70,50.50]},{ x:'07/17/2024',y:[52.10,53.00,47.00,48.30]},{ x:'07/18/2024',y:[47.00,47.85,45.40,46.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6834 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());