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/30/2024',y:[29.50,30.10,29.40,29.90]},{ x:'05/02/2024',y:[29.90,30.10,29.70,29.75]},{ x:'05/03/2024',y:[30.15,30.15,29.40,29.50]},{ x:'05/06/2024',y:[29.85,29.95,29.50,29.55]},{ x:'05/07/2024',y:[29.45,29.45,29.05,29.30]},{ x:'05/08/2024',y:[29.30,29.50,29.10,29.15]},{ x:'05/09/2024',y:[29.15,29.25,28.90,29.05]},{ x:'05/10/2024',y:[29.05,29.30,28.90,29.10]},{ x:'05/13/2024',y:[29.05,29.05,28.60,28.65]},{ x:'05/14/2024',y:[28.90,28.95,28.70,28.85]},{ x:'05/15/2024',y:[29.50,29.50,28.95,28.95]},{ x:'05/16/2024',y:[29.20,29.30,28.90,29.00]},{ x:'05/17/2024',y:[28.70,29.15,28.70,28.95]},{ x:'05/20/2024',y:[29.40,29.60,29.05,29.35]},{ x:'05/21/2024',y:[29.35,29.85,29.35,29.85]},{ x:'05/22/2024',y:[29.95,30.25,29.80,29.95]},{ x:'05/23/2024',y:[30.30,32.90,30.30,32.90]},{ x:'05/24/2024',y:[33.30,36.00,32.50,33.20]},{ x:'06/11/2024',y:[32.30,33.25,31.45,32.60]},{ x:'06/12/2024',y:[34.60,35.80,32.90,33.20]},{ x:'06/13/2024',y:[33.55,34.20,33.10,33.70]},{ x:'06/14/2024',y:[34.10,35.70,34.10,34.90]},{ x:'06/17/2024',y:[35.50,35.90,34.55,35.00]},{ x:'06/18/2024',y:[35.30,35.30,34.25,34.35]},{ x:'06/19/2024',y:[34.75,34.80,33.10,33.55]},{ x:'06/20/2024',y:[33.40,36.90,33.40,36.90]},{ x:'06/21/2024',y:[40.30,40.55,39.15,40.55]},{ x:'06/24/2024',y:[42.00,44.60,41.75,44.60]},{ x:'06/25/2024',y:[47.50,47.50,40.85,45.25]},{ x:'06/26/2024',y:[48.80,49.75,48.70,49.75]},{ x:'06/27/2024',y:[50.30,51.00,46.20,46.75]},{ x:'06/28/2024',y:[47.50,51.40,47.45,48.15]},{ x:'07/01/2024',y:[47.15,48.65,46.20,47.60]},{ x:'07/02/2024',y:[47.70,48.85,47.20,47.25]},{ x:'07/03/2024',y:[48.00,49.00,47.25,48.30]},{ x:'07/04/2024',y:[49.50,52.70,49.50,50.50]},{ x:'07/05/2024',y:[51.00,51.20,48.80,49.20]},{ x:'07/12/2024',y:[45.30,48.90,45.30,47.10]},{ x:'07/15/2024',y:[45.00,51.80,45.00,48.00]},{ x:'07/16/2024',y:[48.60,51.00,47.05,48.80]},{ x:'07/17/2024',y:[49.50,53.00,48.30,53.00]},{ x:'07/18/2024',y:[52.20,52.20,49.00,49.60]},{ x:'07/19/2024',y:[50.50,51.00,45.40,45.95]},{ x:'07/22/2024',y:[46.10,49.80,43.30,48.05]},{ x:'07/23/2024',y:[49.35,50.50,45.65,47.95]},{ x:'07/26/2024',y:[45.85,47.80,45.85,46.90]},{ x:'07/29/2024',y:[47.40,48.05,43.80,44.00]},{ x:'07/30/2024',y:[43.80,47.40,43.05,46.85]},{ x:'07/31/2024',y:[46.05,47.70,45.80,46.40]},{ x:'08/01/2024',y:[47.30,49.80,47.00,48.15]},{ x:'08/02/2024',y:[47.20,49.30,46.30,47.15]},{ x:'08/05/2024',y:[46.05,46.50,42.45,42.45]},{ x:'08/06/2024',y:[42.85,43.55,38.25,38.50]},{ x:'08/07/2024',y:[38.40,42.35,37.30,41.95]},{ x:'08/08/2024',y:[41.60,42.80,40.05,42.05]},{ x:'08/09/2024',y:[43.25,46.00,42.85,43.85]},{ x:'08/12/2024',y:[45.45,46.30,44.40,44.40]},{ x:'08/13/2024',y:[45.10,45.10,43.05,44.00]},{ x:'08/14/2024',y:[44.95,44.95,43.25,43.55]},{ x:'08/15/2024',y:[43.90,45.65,40.65,41.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3652 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());