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/2024',y:[35.30,36.20,35.15,36.20]},{ x:'04/29/2024',y:[36.85,37.70,36.65,36.80]},{ x:'04/30/2024',y:[37.40,37.85,36.80,37.20]},{ x:'05/02/2024',y:[37.30,37.70,36.20,36.35]},{ x:'05/03/2024',y:[36.60,36.60,35.95,36.00]},{ x:'05/06/2024',y:[36.30,36.30,35.65,35.70]},{ x:'05/07/2024',y:[35.80,36.70,35.80,36.25]},{ x:'05/08/2024',y:[37.20,39.85,36.40,36.65]},{ x:'05/09/2024',y:[36.60,37.50,36.50,37.05]},{ x:'05/10/2024',y:[37.40,38.55,36.75,38.25]},{ x:'05/13/2024',y:[38.50,40.25,37.75,37.80]},{ x:'05/14/2024',y:[37.95,38.90,37.20,38.30]},{ x:'05/15/2024',y:[38.45,38.50,37.10,37.15]},{ x:'05/16/2024',y:[37.40,37.70,37.05,37.55]},{ x:'05/17/2024',y:[37.80,37.80,36.70,36.90]},{ x:'05/20/2024',y:[37.30,37.35,36.50,36.70]},{ x:'05/21/2024',y:[36.70,36.70,36.10,36.30]},{ x:'05/22/2024',y:[36.20,36.55,36.05,36.45]},{ x:'05/23/2024',y:[36.35,36.40,35.60,35.65]},{ x:'05/24/2024',y:[35.35,36.40,35.25,36.25]},{ x:'06/11/2024',y:[39.85,40.25,37.20,37.50]},{ x:'06/12/2024',y:[37.70,37.75,35.50,36.20]},{ x:'06/13/2024',y:[36.65,37.00,35.85,35.95]},{ x:'06/14/2024',y:[36.45,36.65,36.10,36.45]},{ x:'06/17/2024',y:[36.65,36.75,36.20,36.40]},{ x:'06/18/2024',y:[36.75,36.75,36.15,36.35]},{ x:'06/19/2024',y:[36.40,36.75,36.30,36.50]},{ x:'06/20/2024',y:[36.75,36.90,36.55,36.80]},{ x:'06/21/2024',y:[36.95,38.30,36.90,37.90]},{ x:'06/24/2024',y:[38.00,38.00,37.25,37.45]},{ x:'06/25/2024',y:[37.40,38.05,37.00,38.00]},{ x:'06/26/2024',y:[38.05,38.20,37.85,38.10]},{ x:'06/27/2024',y:[38.10,38.25,37.65,38.15]},{ x:'06/28/2024',y:[38.35,38.60,38.00,38.05]},{ x:'07/01/2024',y:[38.30,38.60,38.05,38.05]},{ x:'07/02/2024',y:[38.40,38.90,38.15,38.80]},{ x:'07/03/2024',y:[39.15,40.20,39.00,40.10]},{ x:'07/04/2024',y:[40.10,40.20,38.80,38.90]},{ x:'07/05/2024',y:[39.05,39.10,38.00,38.00]},{ x:'07/12/2024',y:[37.25,37.25,36.80,36.90]},{ x:'07/15/2024',y:[37.00,37.00,36.50,36.55]},{ x:'07/16/2024',y:[36.60,37.00,36.55,36.55]},{ x:'07/17/2024',y:[36.50,36.70,36.25,36.35]},{ x:'07/18/2024',y:[36.30,36.70,36.00,36.45]},{ x:'07/19/2024',y:[34.85,34.95,33.25,33.25]},{ x:'07/22/2024',y:[33.05,33.10,32.10,32.50]},{ x:'07/23/2024',y:[32.95,33.35,32.70,33.10]},{ x:'07/26/2024',y:[32.75,32.90,32.35,32.80]},{ x:'07/29/2024',y:[33.35,33.35,32.70,32.80]},{ x:'07/30/2024',y:[33.25,33.65,32.80,33.65]},{ x:'07/31/2024',y:[33.30,33.95,33.30,33.80]},{ x:'08/01/2024',y:[33.90,34.20,33.65,34.20]},{ x:'08/02/2024',y:[33.50,34.15,33.40,33.50]},{ x:'08/05/2024',y:[33.40,33.40,30.80,31.10]},{ x:'08/06/2024',y:[31.85,32.60,30.80,31.55]},{ x:'08/07/2024',y:[31.55,32.95,31.55,32.80]},{ x:'08/08/2024',y:[32.30,32.45,32.00,32.05]},{ x:'08/09/2024',y:[32.15,32.70,32.15,32.15]},{ x:'08/12/2024',y:[32.20,32.70,32.20,32.45]},{ x:'08/13/2024',y:[32.70,32.70,32.25,32.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2617 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());