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/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]},{ x:'07/19/2024',y:[46.00,46.65,44.50,44.60]},{ x:'07/22/2024',y:[44.60,45.55,43.00,43.50]},{ x:'07/23/2024',y:[44.05,44.55,41.30,41.60]},{ x:'07/26/2024',y:[39.25,40.95,39.00,40.50]},{ x:'07/29/2024',y:[41.05,41.55,39.85,39.95]},{ x:'07/30/2024',y:[40.00,41.00,39.60,41.00]},{ x:'07/31/2024',y:[40.35,41.90,40.35,40.55]},{ x:'08/01/2024',y:[41.70,44.50,41.50,43.10]},{ x:'08/02/2024',y:[42.00,42.65,40.60,40.60]},{ x:'08/05/2024',y:[40.60,40.60,36.55,36.55]},{ x:'08/06/2024',y:[36.55,37.60,32.90,34.00]},{ x:'08/07/2024',y:[35.10,37.40,34.50,37.40]},{ x:'08/08/2024',y:[36.80,38.00,36.35,37.20]},{ x:'08/09/2024',y:[38.80,39.60,37.50,38.00]},{ x:'08/12/2024',y:[38.05,39.70,37.60,38.05]},{ x:'08/13/2024',y:[38.30,38.50,37.50,38.10]},{ x:'08/14/2024',y:[38.95,38.95,37.65,37.85]} ] }], 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());