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/01/2024',y:[39.60,40.40,38.50,38.55]},{ x:'02/02/2024',y:[38.80,39.05,37.50,37.60]},{ x:'02/05/2024',y:[37.50,39.90,36.80,38.90]},{ x:'02/15/2024',y:[39.30,41.40,38.10,38.10]},{ x:'02/16/2024',y:[37.15,41.90,37.15,41.90]},{ x:'02/19/2024',y:[42.50,45.90,42.35,42.75]},{ x:'02/20/2024',y:[42.80,43.25,40.10,40.10]},{ x:'02/21/2024',y:[39.75,41.75,39.60,40.20]},{ x:'02/22/2024',y:[41.30,41.30,39.35,39.60]},{ x:'02/23/2024',y:[40.00,40.85,39.00,39.25]},{ x:'02/26/2024',y:[39.15,40.80,38.90,39.05]},{ x:'02/27/2024',y:[39.15,39.65,36.65,37.05]},{ x:'02/29/2024',y:[37.10,38.20,36.85,37.20]},{ x:'03/01/2024',y:[38.00,38.30,36.30,36.60]},{ x:'03/04/2024',y:[36.90,37.15,36.00,36.00]},{ x:'03/05/2024',y:[36.20,39.60,35.05,39.60]},{ x:'03/06/2024',y:[40.50,42.50,39.80,40.95]},{ x:'03/07/2024',y:[40.95,41.65,38.55,38.55]},{ x:'03/08/2024',y:[38.45,39.00,36.80,37.50]},{ x:'03/11/2024',y:[36.50,37.50,36.25,36.55]},{ x:'03/12/2024',y:[37.20,38.70,36.80,37.65]},{ x:'03/13/2024',y:[37.65,38.25,36.00,36.05]},{ x:'03/14/2024',y:[36.05,37.15,35.10,36.75]},{ x:'03/15/2024',y:[36.00,37.45,36.00,36.20]},{ x:'03/18/2024',y:[36.00,36.75,36.00,36.40]},{ x:'03/19/2024',y:[36.00,36.60,35.35,35.65]},{ x:'03/20/2024',y:[35.50,36.20,34.60,34.60]},{ x:'03/21/2024',y:[35.40,35.50,34.15,34.55]},{ x:'03/22/2024',y:[35.15,35.15,34.10,34.10]},{ x:'03/25/2024',y:[34.25,37.50,34.05,37.50]},{ x:'03/26/2024',y:[37.80,39.80,36.25,37.10]},{ x:'03/27/2024',y:[37.00,37.80,36.20,36.30]},{ x:'03/28/2024',y:[36.35,37.30,36.00,36.05]},{ x:'03/29/2024',y:[36.10,37.70,36.05,36.25]},{ x:'04/01/2024',y:[36.25,36.95,36.10,36.30]},{ x:'04/02/2024',y:[36.30,36.65,35.20,35.30]},{ x:'04/03/2024',y:[35.25,38.00,34.70,36.90]},{ x:'04/08/2024',y:[36.80,38.95,36.70,37.40]},{ x:'04/09/2024',y:[37.45,38.05,36.80,37.05]},{ x:'04/10/2024',y:[37.10,38.00,36.65,37.50]},{ x:'04/11/2024',y:[37.20,39.80,37.05,37.95]},{ x:'04/12/2024',y:[38.00,40.80,37.90,39.30]},{ x:'04/15/2024',y:[39.45,39.45,37.60,37.70]},{ x:'04/16/2024',y:[38.00,38.00,34.60,34.60]},{ x:'04/17/2024',y:[35.70,35.80,35.00,35.00]},{ x:'04/18/2024',y:[35.15,35.75,34.60,34.60]},{ x:'04/19/2024',y:[34.00,34.00,31.15,32.80]},{ x:'04/22/2024',y:[33.30,34.40,32.25,32.45]},{ x:'04/23/2024',y:[32.65,33.65,32.25,32.60]},{ x:'04/24/2024',y:[33.00,33.95,33.00,33.25]},{ x:'04/25/2024',y:[33.90,33.90,32.25,32.50]},{ x:'04/26/2024',y:[32.80,33.25,32.00,32.00]},{ x:'04/29/2024',y:[31.95,32.60,31.95,32.35]},{ x:'04/30/2024',y:[32.50,32.85,31.70,31.75]},{ x:'05/02/2024',y:[31.80,31.85,31.05,31.70]},{ x:'05/03/2024',y:[32.45,32.50,31.10,31.30]},{ x:'05/06/2024',y:[31.60,33.30,31.15,31.90]},{ x:'05/07/2024',y:[31.90,32.30,31.25,31.60]},{ x:'05/08/2024',y:[31.80,34.75,31.75,33.60]},{ x:'05/09/2024',y:[33.55,34.15,32.55,33.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5426 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());