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/02/2024',y:[13.15,13.40,12.75,12.75]},{ x:'02/05/2024',y:[12.80,13.25,12.75,13.25]},{ x:'02/15/2024',y:[13.50,13.50,13.25,13.40]},{ x:'02/16/2024',y:[13.40,13.40,13.40,13.40]},{ x:'02/19/2024',y:[13.40,14.50,13.40,14.00]},{ x:'02/20/2024',y:[14.00,14.05,14.00,14.00]},{ x:'02/21/2024',y:[14.30,15.10,14.30,15.00]},{ x:'02/22/2024',y:[15.20,15.20,14.75,14.75]},{ x:'02/23/2024',y:[14.75,15.05,14.60,15.00]},{ x:'02/26/2024',y:[15.00,15.00,14.60,14.60]},{ x:'02/27/2024',y:[14.60,14.60,14.45,14.45]},{ x:'02/29/2024',y:[15.00,15.00,15.00,15.00]},{ x:'03/01/2024',y:[15.00,15.50,15.00,15.00]},{ x:'03/04/2024',y:[15.00,15.00,14.95,14.95]},{ x:'03/05/2024',y:[14.80,14.80,14.75,14.75]},{ x:'03/06/2024',y:[15.00,15.10,15.00,15.10]},{ x:'03/07/2024',y:[14.70,14.80,14.70,14.80]},{ x:'03/08/2024',y:[14.65,14.80,14.65,14.80]},{ x:'03/11/2024',y:[14.75,14.80,14.75,14.80]},{ x:'03/12/2024',y:[14.90,14.90,14.80,14.80]},{ x:'03/13/2024',y:[14.90,15.20,14.90,15.20]},{ x:'03/14/2024',y:[15.00,15.50,15.00,15.50]},{ x:'03/15/2024',y:[15.50,15.80,15.50,15.80]},{ x:'03/18/2024',y:[15.80,17.35,15.80,17.15]},{ x:'03/19/2024',y:[17.10,18.85,16.50,18.85]},{ x:'03/20/2024',y:[19.50,19.85,18.85,18.85]},{ x:'03/21/2024',y:[18.95,19.30,18.95,19.05]},{ x:'03/22/2024',y:[19.00,19.10,17.90,18.10]},{ x:'03/25/2024',y:[18.10,18.40,18.10,18.40]},{ x:'03/26/2024',y:[18.40,19.05,18.30,18.70]},{ x:'03/27/2024',y:[18.95,19.15,18.95,19.00]},{ x:'03/28/2024',y:[19.10,19.30,18.95,18.95]},{ x:'03/29/2024',y:[18.95,19.20,18.95,19.00]},{ x:'04/01/2024',y:[18.95,19.05,18.95,19.05]},{ x:'04/02/2024',y:[19.05,19.20,19.05,19.20]},{ x:'04/03/2024',y:[19.20,19.25,19.20,19.20]},{ x:'04/08/2024',y:[19.70,20.25,19.50,20.25]},{ x:'04/09/2024',y:[20.00,20.40,20.00,20.40]},{ x:'04/10/2024',y:[20.50,22.40,20.50,22.40]},{ x:'04/11/2024',y:[24.60,24.60,23.20,24.60]},{ x:'04/12/2024',y:[25.15,27.05,25.00,27.05]},{ x:'04/15/2024',y:[29.70,29.75,29.70,29.75]},{ x:'04/16/2024',y:[32.65,32.70,27.85,30.00]},{ x:'04/17/2024',y:[30.00,30.00,27.00,29.00]},{ x:'04/18/2024',y:[28.40,29.90,27.80,29.90]},{ x:'04/19/2024',y:[28.50,29.50,28.10,29.50]},{ x:'04/22/2024',y:[29.50,29.50,28.60,28.60]},{ x:'04/23/2024',y:[29.00,29.50,28.55,29.20]},{ x:'04/24/2024',y:[30.00,32.00,30.00,32.00]},{ x:'04/25/2024',y:[31.00,33.25,31.00,33.10]},{ x:'04/26/2024',y:[33.50,36.40,33.50,36.30]},{ x:'04/29/2024',y:[37.90,39.50,37.90,39.50]},{ x:'04/30/2024',y:[39.50,39.50,36.10,38.40]},{ x:'05/02/2024',y:[38.40,39.90,38.00,38.75]},{ x:'05/03/2024',y:[40.00,40.00,37.50,38.80]},{ x:'05/06/2024',y:[38.00,38.90,37.30,38.80]},{ x:'05/07/2024',y:[38.60,38.70,37.60,38.70]},{ x:'05/08/2024',y:[38.65,39.00,37.50,38.35]},{ x:'05/09/2024',y:[38.00,38.30,36.80,36.80]},{ x:'05/10/2024',y:[36.80,37.50,36.80,37.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2724 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());