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:[42.50,42.50,41.75,42.20]},{ x:'05/02/2024',y:[42.00,42.30,41.50,41.90]},{ x:'05/03/2024',y:[42.60,42.75,41.20,41.35]},{ x:'05/06/2024',y:[41.85,41.85,41.10,41.20]},{ x:'05/07/2024',y:[41.85,41.85,40.25,40.80]},{ x:'05/08/2024',y:[40.35,41.00,40.35,40.75]},{ x:'05/09/2024',y:[40.95,41.25,39.90,40.00]},{ x:'05/10/2024',y:[40.40,40.40,39.25,40.05]},{ x:'05/13/2024',y:[40.15,40.15,39.25,39.40]},{ x:'05/14/2024',y:[40.00,40.65,39.80,39.90]},{ x:'05/15/2024',y:[40.45,40.45,39.50,39.55]},{ x:'05/16/2024',y:[39.90,40.10,39.25,39.75]},{ x:'05/17/2024',y:[39.85,39.95,39.60,39.95]},{ x:'05/20/2024',y:[40.10,40.10,39.50,39.55]},{ x:'05/21/2024',y:[40.05,43.50,40.05,43.50]},{ x:'05/22/2024',y:[44.15,46.50,43.95,46.00]},{ x:'05/23/2024',y:[45.35,45.35,43.30,43.45]},{ x:'05/24/2024',y:[43.00,45.95,43.00,44.00]},{ x:'06/11/2024',y:[48.80,49.10,46.70,47.25]},{ x:'06/12/2024',y:[46.55,49.95,46.55,49.30]},{ x:'06/13/2024',y:[49.30,50.50,48.55,48.65]},{ x:'06/14/2024',y:[49.30,49.30,47.65,47.80]},{ x:'06/17/2024',y:[48.75,49.10,48.00,48.50]},{ x:'06/18/2024',y:[49.00,49.20,47.40,47.40]},{ x:'06/19/2024',y:[48.10,48.20,46.55,46.60]},{ x:'06/20/2024',y:[46.50,47.40,46.50,46.90]},{ x:'06/21/2024',y:[46.90,50.30,46.60,49.00]},{ x:'06/24/2024',y:[49.50,49.50,47.75,47.75]},{ x:'06/25/2024',y:[47.70,48.50,47.05,47.40]},{ x:'06/26/2024',y:[48.20,48.50,47.75,48.05]},{ x:'06/27/2024',y:[48.05,48.05,47.00,47.00]},{ x:'06/28/2024',y:[47.30,48.15,47.30,47.80]},{ x:'07/01/2024',y:[48.15,48.45,47.15,47.15]},{ x:'07/02/2024',y:[48.00,48.05,46.95,47.05]},{ x:'07/03/2024',y:[47.50,49.20,47.10,48.45]},{ x:'07/04/2024',y:[48.05,48.70,47.60,48.10]},{ x:'07/05/2024',y:[48.80,49.90,48.05,49.70]},{ x:'07/12/2024',y:[46.60,47.05,46.20,46.80]},{ x:'07/15/2024',y:[46.60,47.15,45.90,45.90]},{ x:'07/16/2024',y:[46.00,46.70,45.80,45.85]},{ x:'07/17/2024',y:[46.40,47.20,46.00,46.45]},{ x:'07/18/2024',y:[46.35,46.70,45.20,45.25]},{ x:'07/19/2024',y:[45.50,45.75,43.80,43.80]},{ x:'07/22/2024',y:[43.80,43.90,41.30,41.70]},{ x:'07/23/2024',y:[42.45,42.75,42.00,42.05]},{ x:'07/26/2024',y:[41.10,42.00,40.00,41.35]},{ x:'07/29/2024',y:[41.60,42.30,40.00,40.00]},{ x:'07/30/2024',y:[40.00,41.00,39.40,41.00]},{ x:'07/31/2024',y:[40.75,41.00,40.35,40.50]},{ x:'08/01/2024',y:[41.50,42.20,41.20,42.00]},{ x:'08/02/2024',y:[41.30,41.30,39.80,39.80]},{ x:'08/05/2024',y:[39.05,39.10,35.85,35.85]},{ x:'08/06/2024',y:[36.45,36.80,32.30,33.05]},{ x:'08/07/2024',y:[34.40,36.35,34.20,36.35]},{ x:'08/08/2024',y:[36.30,36.35,35.10,35.50]},{ x:'08/09/2024',y:[36.50,36.80,35.60,35.70]},{ x:'08/12/2024',y:[36.00,36.50,35.65,36.00]},{ x:'08/13/2024',y:[36.40,36.40,35.40,35.55]},{ x:'08/14/2024',y:[35.85,36.50,35.65,36.10]},{ x:'08/15/2024',y:[36.15,36.50,35.70,35.85]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3540 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());