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/2023',y:[35.60,36.00,35.15,35.25]},{ x:'03/21/2023',y:[35.40,35.50,35.25,35.30]},{ x:'03/22/2023',y:[35.40,35.95,35.40,35.70]},{ x:'03/23/2023',y:[35.65,35.70,35.50,35.50]},{ x:'03/24/2023',y:[35.55,35.55,35.00,35.10]},{ x:'03/27/2023',y:[35.15,35.25,35.05,35.20]},{ x:'03/28/2023',y:[35.40,35.40,35.10,35.10]},{ x:'03/29/2023',y:[35.15,36.20,35.10,35.25]},{ x:'03/30/2023',y:[35.30,35.50,35.10,35.20]},{ x:'03/31/2023',y:[35.20,35.40,35.10,35.15]},{ x:'04/06/2023',y:[35.35,35.35,34.75,34.85]},{ x:'04/07/2023',y:[34.95,35.10,34.85,35.10]},{ x:'04/10/2023',y:[35.15,35.70,35.15,35.55]},{ x:'04/11/2023',y:[35.55,35.80,35.55,35.65]},{ x:'04/12/2023',y:[35.70,36.70,35.70,36.70]},{ x:'04/13/2023',y:[37.00,37.05,36.25,37.00]},{ x:'04/14/2023',y:[37.00,37.30,36.75,37.00]},{ x:'04/17/2023',y:[36.95,37.25,36.95,37.05]},{ x:'04/18/2023',y:[37.05,37.65,37.00,37.15]},{ x:'04/19/2023',y:[37.20,38.00,37.20,37.55]},{ x:'04/20/2023',y:[37.55,37.55,37.20,37.25]},{ x:'04/21/2023',y:[37.30,37.60,37.30,37.45]},{ x:'04/24/2023',y:[37.45,39.10,37.30,37.75]},{ x:'04/25/2023',y:[37.75,38.25,37.55,37.75]},{ x:'04/26/2023',y:[37.75,38.30,37.75,38.20]},{ x:'04/27/2023',y:[38.20,38.20,37.95,38.20]},{ x:'04/28/2023',y:[38.20,38.20,37.70,38.20]},{ x:'05/02/2023',y:[38.20,39.05,38.20,39.05]},{ x:'05/03/2023',y:[39.05,39.35,38.75,39.05]},{ x:'05/04/2023',y:[39.05,39.55,38.85,39.55]},{ x:'05/05/2023',y:[39.55,41.80,39.55,41.45]},{ x:'05/08/2023',y:[41.55,42.25,41.35,42.25]},{ x:'05/09/2023',y:[42.30,43.25,41.85,42.05]},{ x:'05/10/2023',y:[42.05,43.15,42.00,42.15]},{ x:'05/11/2023',y:[42.10,42.45,41.70,42.00]},{ x:'05/12/2023',y:[42.00,43.20,42.00,43.05]},{ x:'05/15/2023',y:[43.05,44.00,42.30,43.90]},{ x:'05/16/2023',y:[43.90,44.80,43.60,44.60]},{ x:'05/17/2023',y:[44.90,45.45,44.60,44.70]},{ x:'05/18/2023',y:[44.55,46.30,44.00,45.95]},{ x:'05/19/2023',y:[46.20,46.70,45.25,45.95]},{ x:'05/22/2023',y:[45.95,46.15,45.60,45.95]},{ x:'05/23/2023',y:[45.75,47.35,45.45,46.80]},{ x:'05/24/2023',y:[46.80,48.00,46.80,46.85]},{ x:'05/25/2023',y:[47.00,47.40,46.05,46.45]},{ x:'05/26/2023',y:[46.75,46.75,44.70,45.00]},{ x:'05/29/2023',y:[44.75,45.15,44.25,45.00]},{ x:'05/30/2023',y:[45.00,45.10,44.10,44.40]},{ x:'05/31/2023',y:[44.40,46.75,44.40,46.45]},{ x:'06/01/2023',y:[46.45,48.45,46.45,47.30]},{ x:'06/02/2023',y:[47.30,48.95,47.30,48.65]},{ x:'06/05/2023',y:[48.80,49.75,48.25,49.65]},{ x:'06/06/2023',y:[49.55,51.30,49.35,51.10]},{ x:'06/07/2023',y:[51.30,52.20,51.20,52.10]},{ x:'06/08/2023',y:[52.50,54.00,51.80,52.50]},{ x:'06/09/2023',y:[53.20,53.70,51.20,52.30]},{ x:'06/12/2023',y:[52.10,52.10,50.30,50.40]},{ x:'06/13/2023',y:[50.60,52.30,50.00,51.80]},{ x:'06/14/2023',y:[51.60,52.20,51.20,51.50]},{ x:'06/15/2023',y:[51.60,52.70,51.50,52.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2704 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());