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:[7.70,7.75,7.63,7.63]},{ x:'05/02/2024',y:[7.63,7.76,7.61,7.68]},{ x:'05/03/2024',y:[7.70,7.74,7.63,7.63]},{ x:'05/06/2024',y:[7.65,7.68,7.53,7.58]},{ x:'05/07/2024',y:[7.60,7.60,7.43,7.43]},{ x:'05/08/2024',y:[7.43,7.45,7.39,7.41]},{ x:'05/09/2024',y:[7.41,7.49,7.41,7.45]},{ x:'05/10/2024',y:[7.45,7.54,7.42,7.53]},{ x:'05/13/2024',y:[7.55,7.71,7.52,7.66]},{ x:'05/14/2024',y:[7.69,7.69,7.50,7.60]},{ x:'05/15/2024',y:[7.60,7.71,7.59,7.66]},{ x:'05/16/2024',y:[7.70,8.42,7.67,8.42]},{ x:'05/17/2024',y:[8.78,9.10,8.60,8.75]},{ x:'05/20/2024',y:[8.75,8.80,8.50,8.52]},{ x:'05/21/2024',y:[8.51,8.75,8.31,8.62]},{ x:'05/22/2024',y:[8.66,8.67,8.55,8.60]},{ x:'05/23/2024',y:[8.70,8.70,8.35,8.36]},{ x:'05/24/2024',y:[8.35,8.43,8.23,8.42]},{ x:'06/11/2024',y:[9.20,9.20,8.92,8.93]},{ x:'06/12/2024',y:[8.94,9.04,8.85,8.91]},{ x:'06/13/2024',y:[8.95,9.04,8.89,8.91]},{ x:'06/14/2024',y:[8.92,9.20,8.92,9.10]},{ x:'06/17/2024',y:[9.19,9.20,9.07,9.16]},{ x:'06/18/2024',y:[9.22,9.23,9.07,9.16]},{ x:'06/19/2024',y:[9.20,9.20,9.01,9.03]},{ x:'06/20/2024',y:[9.02,9.24,9.02,9.22]},{ x:'06/21/2024',y:[9.22,9.58,9.19,9.45]},{ x:'06/24/2024',y:[9.68,9.79,9.35,9.39]},{ x:'06/25/2024',y:[9.38,9.38,9.16,9.27]},{ x:'06/26/2024',y:[9.49,9.69,9.33,9.44]},{ x:'06/27/2024',y:[9.70,10.35,9.57,10.35]},{ x:'06/28/2024',y:[10.85,11.35,10.60,11.35]},{ x:'07/01/2024',y:[12.35,12.45,11.95,12.45]},{ x:'07/02/2024',y:[13.60,13.65,13.00,13.65]},{ x:'07/03/2024',y:[14.35,15.00,14.35,15.00]},{ x:'07/04/2024',y:[16.25,16.50,16.15,16.50]},{ x:'07/05/2024',y:[18.15,18.15,18.15,18.15]},{ x:'07/12/2024',y:[16.00,16.45,15.80,16.35]},{ x:'07/15/2024',y:[16.50,17.30,16.50,16.95]},{ x:'07/16/2024',y:[16.85,16.90,16.35,16.50]},{ x:'07/17/2024',y:[16.70,17.20,16.70,16.75]},{ x:'07/18/2024',y:[16.50,16.70,16.20,16.35]},{ x:'07/19/2024',y:[16.05,16.55,16.05,16.45]},{ x:'07/22/2024',y:[17.00,17.00,16.30,16.90]},{ x:'07/23/2024',y:[17.15,17.15,15.60,15.90]},{ x:'07/26/2024',y:[14.35,15.50,14.35,14.60]},{ x:'07/29/2024',y:[15.15,16.05,14.95,16.05]},{ x:'07/30/2024',y:[16.50,17.65,16.05,17.15]},{ x:'07/31/2024',y:[17.20,18.75,17.15,18.10]},{ x:'08/01/2024',y:[18.30,18.90,17.05,17.40]},{ x:'08/02/2024',y:[17.00,18.20,16.65,17.15]},{ x:'08/05/2024',y:[16.55,16.80,15.45,15.45]},{ x:'08/06/2024',y:[14.80,15.95,13.95,14.20]},{ x:'08/07/2024',y:[14.85,15.60,14.35,15.60]},{ x:'08/08/2024',y:[16.15,16.55,15.10,15.60]},{ x:'08/09/2024',y:[16.40,16.75,15.30,15.30]},{ x:'08/12/2024',y:[15.55,15.95,15.15,15.25]},{ x:'08/13/2024',y:[15.45,15.55,14.90,15.35]},{ x:'08/14/2024',y:[15.65,15.90,15.10,15.45]},{ x:'08/15/2024',y:[15.35,15.70,15.25,15.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2349 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());