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:'01/23/2024',y:[14.60,14.95,14.50,14.65]},{ x:'01/24/2024',y:[14.65,14.75,14.40,14.50]},{ x:'01/25/2024',y:[14.55,14.55,14.15,14.15]},{ x:'01/26/2024',y:[14.15,14.40,14.15,14.25]},{ x:'01/29/2024',y:[14.25,14.30,13.90,14.30]},{ x:'01/30/2024',y:[14.45,14.45,14.05,14.05]},{ x:'01/31/2024',y:[14.05,14.10,14.00,14.10]},{ x:'02/01/2024',y:[14.40,14.40,13.85,14.20]},{ x:'02/02/2024',y:[14.25,14.30,13.90,14.00]},{ x:'02/05/2024',y:[14.15,14.25,14.00,14.20]},{ x:'02/15/2024',y:[14.20,14.55,14.20,14.45]},{ x:'02/16/2024',y:[14.45,14.50,14.15,14.20]},{ x:'02/19/2024',y:[14.25,15.60,14.25,15.60]},{ x:'02/20/2024',y:[16.90,17.15,16.50,17.15]},{ x:'02/21/2024',y:[17.40,18.80,16.80,18.00]},{ x:'02/22/2024',y:[18.00,19.60,17.80,18.75]},{ x:'02/23/2024',y:[18.85,19.20,18.50,19.10]},{ x:'02/26/2024',y:[19.50,21.00,19.40,21.00]},{ x:'02/27/2024',y:[23.10,23.10,21.85,22.60]},{ x:'02/29/2024',y:[23.00,24.85,21.60,24.55]},{ x:'03/01/2024',y:[24.50,24.50,23.50,23.95]},{ x:'03/04/2024',y:[26.25,26.25,24.60,26.15]},{ x:'03/05/2024',y:[26.80,28.75,26.75,28.75]},{ x:'03/06/2024',y:[29.50,31.60,29.50,31.60]},{ x:'03/07/2024',y:[30.75,31.50,28.95,28.95]},{ x:'03/08/2024',y:[29.10,29.10,26.10,26.10]},{ x:'03/11/2024',y:[24.80,26.05,24.20,25.40]},{ x:'03/12/2024',y:[24.85,26.20,24.85,25.50]},{ x:'03/13/2024',y:[26.05,26.15,24.20,24.70]},{ x:'03/14/2024',y:[24.00,25.00,23.35,24.70]},{ x:'03/15/2024',y:[25.80,27.05,25.80,25.85]},{ x:'03/18/2024',y:[24.20,26.10,24.20,25.55]},{ x:'03/19/2024',y:[25.00,26.30,25.00,26.05]},{ x:'03/20/2024',y:[26.30,26.95,26.30,26.30]},{ x:'03/21/2024',y:[26.25,27.50,24.35,26.20]},{ x:'03/22/2024',y:[25.80,28.80,25.80,28.80]},{ x:'03/25/2024',y:[30.00,31.65,29.90,31.65]},{ x:'03/26/2024',y:[34.40,34.80,31.05,32.80]},{ x:'03/27/2024',y:[32.70,35.70,31.20,31.40]},{ x:'03/28/2024',y:[31.35,31.40,28.50,28.65]},{ x:'03/29/2024',y:[29.20,30.45,28.10,28.90]},{ x:'04/01/2024',y:[29.60,31.75,28.95,31.75]},{ x:'04/02/2024',y:[32.00,34.50,30.00,32.75]},{ x:'04/03/2024',y:[31.60,34.60,31.55,32.50]},{ x:'04/08/2024',y:[32.50,34.30,31.40,31.70]},{ x:'04/09/2024',y:[31.90,31.95,29.50,29.90]},{ x:'04/10/2024',y:[29.85,30.20,28.85,29.30]},{ x:'04/11/2024',y:[29.45,29.90,29.20,29.35]},{ x:'04/12/2024',y:[29.50,29.80,28.95,29.70]},{ x:'04/15/2024',y:[30.35,30.80,29.10,29.10]},{ x:'04/16/2024',y:[29.30,29.30,26.20,26.85]},{ x:'04/17/2024',y:[26.85,28.25,26.85,27.30]},{ x:'04/18/2024',y:[27.35,28.25,27.35,27.45]},{ x:'04/19/2024',y:[27.05,27.15,25.65,26.10]},{ x:'04/22/2024',y:[28.70,28.70,28.70,28.70]},{ x:'04/23/2024',y:[31.55,31.55,26.70,27.70]},{ x:'04/24/2024',y:[28.00,30.45,28.00,28.75]},{ x:'04/25/2024',y:[27.60,28.30,27.30,27.70]},{ x:'04/26/2024',y:[27.65,28.75,27.55,27.60]},{ x:'04/29/2024',y:[28.05,28.15,27.20,27.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8092 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());