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:'02/21/2023',y:[13.95,14.00,12.90,13.40]},{ x:'02/22/2023',y:[13.45,14.00,12.95,13.90]},{ x:'02/23/2023',y:[13.90,15.25,13.65,15.10]},{ x:'02/24/2023',y:[15.00,15.40,14.25,14.80]},{ x:'03/01/2023',y:[14.80,14.80,14.05,14.50]},{ x:'03/02/2023',y:[14.50,14.90,14.30,14.75]},{ x:'03/03/2023',y:[14.70,14.85,14.50,14.60]},{ x:'03/06/2023',y:[14.70,14.75,14.50,14.50]},{ x:'03/07/2023',y:[14.70,15.20,14.50,15.20]},{ x:'03/08/2023',y:[15.00,15.40,15.00,15.35]},{ x:'03/09/2023',y:[15.45,16.00,15.15,15.25]},{ x:'03/10/2023',y:[15.20,15.60,15.00,15.60]},{ x:'03/13/2023',y:[16.00,16.00,15.20,15.75]},{ x:'03/14/2023',y:[15.35,15.90,15.20,15.30]},{ x:'03/15/2023',y:[15.70,15.75,15.30,15.30]},{ x:'03/16/2023',y:[15.40,15.70,13.80,13.85]},{ x:'03/17/2023',y:[14.25,14.35,13.85,14.05]},{ x:'03/20/2023',y:[14.00,15.45,13.95,15.45]},{ x:'03/21/2023',y:[15.50,16.50,15.15,16.15]},{ x:'03/22/2023',y:[16.40,16.80,15.55,16.15]},{ x:'03/23/2023',y:[16.00,16.10,15.70,15.90]},{ x:'03/24/2023',y:[15.90,15.95,15.10,15.10]},{ x:'03/27/2023',y:[15.15,15.35,15.00,15.00]},{ x:'03/28/2023',y:[15.05,15.05,14.50,14.90]},{ x:'03/29/2023',y:[14.90,15.00,14.55,14.55]},{ x:'03/30/2023',y:[14.70,15.00,14.55,14.75]},{ x:'03/31/2023',y:[14.95,15.90,14.85,15.65]},{ x:'04/06/2023',y:[15.75,16.00,15.60,15.80]},{ x:'04/07/2023',y:[15.80,15.80,15.35,15.40]},{ x:'04/10/2023',y:[15.45,16.00,15.35,15.70]},{ x:'04/11/2023',y:[16.20,16.20,15.65,15.90]},{ x:'04/12/2023',y:[16.05,16.20,15.90,16.10]},{ x:'04/13/2023',y:[16.30,16.30,15.85,15.90]},{ x:'04/14/2023',y:[16.10,17.45,16.10,17.45]},{ x:'04/17/2023',y:[17.25,19.15,17.15,19.15]},{ x:'04/18/2023',y:[19.50,20.90,19.15,20.25]},{ x:'04/19/2023',y:[21.00,22.25,20.90,22.25]},{ x:'04/20/2023',y:[24.00,24.45,23.55,24.45]},{ x:'04/21/2023',y:[25.50,25.50,22.05,22.80]},{ x:'04/24/2023',y:[22.70,24.00,22.10,23.45]},{ x:'04/25/2023',y:[23.50,23.70,22.05,22.20]},{ x:'04/26/2023',y:[22.20,22.20,21.05,21.95]},{ x:'04/27/2023',y:[21.90,22.55,21.50,22.45]},{ x:'04/28/2023',y:[22.80,23.85,22.55,23.85]},{ x:'05/02/2023',y:[24.20,25.20,24.10,24.85]},{ x:'05/03/2023',y:[24.45,25.30,24.00,24.95]},{ x:'05/04/2023',y:[24.95,26.00,24.95,26.00]},{ x:'05/05/2023',y:[26.00,26.20,25.10,26.00]},{ x:'05/08/2023',y:[26.35,28.55,26.30,28.40]},{ x:'05/09/2023',y:[28.50,29.40,26.10,26.85]},{ x:'05/10/2023',y:[26.00,27.10,25.50,25.90]},{ x:'05/11/2023',y:[26.00,26.10,23.55,23.90]},{ x:'05/12/2023',y:[24.10,26.20,23.45,25.70]},{ x:'05/15/2023',y:[24.85,25.65,24.60,24.65]},{ x:'05/16/2023',y:[25.00,25.75,24.50,24.70]},{ x:'05/17/2023',y:[24.85,25.45,24.55,24.65]},{ x:'05/18/2023',y:[25.10,27.10,24.70,27.10]},{ x:'05/19/2023',y:[26.70,28.75,26.70,28.05]},{ x:'05/22/2023',y:[27.95,28.20,27.10,28.15]},{ x:'05/23/2023',y:[28.00,28.40,27.50,27.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3058 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());