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/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]},{ x:'06/16/2023',y:[52.30,53.60,52.30,53.20]},{ x:'06/19/2023',y:[53.20,54.40,52.90,53.40]},{ x:'06/20/2023',y:[53.40,55.80,53.40,54.80]},{ x:'06/21/2023',y:[55.30,59.50,54.80,55.50]},{ x:'06/26/2023',y:[55.60,56.20,54.00,55.00]},{ x:'06/27/2023',y:[55.00,55.10,52.70,52.70]},{ x:'06/28/2023',y:[53.50,53.60,52.50,52.50]},{ x:'06/29/2023',y:[52.60,53.20,52.40,53.00]},{ x:'06/30/2023',y:[53.40,53.40,52.50,52.80]},{ x:'07/03/2023',y:[52.90,53.00,50.50,51.70]},{ x:'07/04/2023',y:[51.70,51.70,50.40,51.20]},{ x:'07/05/2023',y:[51.20,51.80,51.10,51.60]},{ x:'07/06/2023',y:[51.70,52.00,51.50,51.60]},{ x:'07/07/2023',y:[51.50,51.50,50.30,51.00]},{ x:'07/10/2023',y:[51.20,51.90,51.00,51.70]},{ x:'07/11/2023',y:[51.80,52.20,51.70,51.70]},{ x:'07/12/2023',y:[51.50,52.40,51.10,51.70]},{ x:'07/13/2023',y:[51.60,52.00,51.30,51.80]},{ x:'07/14/2023',y:[52.00,53.10,51.50,52.70]},{ x:'07/17/2023',y:[53.00,53.50,52.30,52.60]},{ x:'07/18/2023',y:[53.40,53.40,51.20,52.40]},{ x:'07/19/2023',y:[52.40,52.40,50.90,51.40]},{ x:'07/20/2023',y:[51.40,52.90,51.40,52.30]},{ x:'07/21/2023',y:[52.30,52.40,51.30,51.90]} ] }], 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());