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/22/2024',y:[25.40,25.95,25.40,25.80]},{ x:'01/23/2024',y:[25.80,25.95,25.50,25.55]},{ x:'01/24/2024',y:[25.70,25.85,25.50,25.60]},{ x:'01/25/2024',y:[25.70,26.05,25.50,26.00]},{ x:'01/26/2024',y:[26.00,26.00,25.65,25.75]},{ x:'01/29/2024',y:[25.95,26.70,25.85,26.40]},{ x:'01/30/2024',y:[26.60,26.70,26.00,26.10]},{ x:'01/31/2024',y:[26.20,26.20,26.00,26.20]},{ x:'02/01/2024',y:[26.20,26.90,26.10,26.55]},{ x:'02/02/2024',y:[26.55,26.80,26.35,26.35]},{ x:'02/05/2024',y:[26.45,26.75,26.40,26.60]},{ x:'02/15/2024',y:[27.10,28.55,27.05,28.45]},{ x:'02/16/2024',y:[28.90,28.90,28.05,28.40]},{ x:'02/19/2024',y:[28.40,29.00,28.40,28.45]},{ x:'02/20/2024',y:[28.75,28.75,28.15,28.25]},{ x:'02/21/2024',y:[28.25,28.65,28.00,28.40]},{ x:'02/22/2024',y:[28.50,29.80,28.50,29.40]},{ x:'02/23/2024',y:[29.40,30.15,29.20,29.20]},{ x:'02/26/2024',y:[29.95,29.95,29.00,29.55]},{ x:'02/27/2024',y:[29.80,30.15,29.25,29.85]},{ x:'02/29/2024',y:[29.85,30.25,29.40,30.00]},{ x:'03/01/2024',y:[30.15,30.30,29.70,29.95]},{ x:'03/04/2024',y:[30.05,30.10,29.10,29.10]},{ x:'03/05/2024',y:[28.80,29.35,28.60,28.85]},{ x:'03/06/2024',y:[28.80,29.45,28.40,29.30]},{ x:'03/07/2024',y:[29.40,29.50,28.35,28.50]},{ x:'03/08/2024',y:[28.30,28.30,27.50,27.90]},{ x:'03/11/2024',y:[27.90,28.90,27.90,28.70]},{ x:'03/12/2024',y:[28.70,29.05,28.45,28.70]},{ x:'03/13/2024',y:[28.70,29.10,27.95,28.20]},{ x:'03/14/2024',y:[28.10,28.40,28.00,28.30]},{ x:'03/15/2024',y:[28.35,29.35,28.35,28.50]},{ x:'03/18/2024',y:[28.60,28.65,28.20,28.40]},{ x:'03/19/2024',y:[28.85,30.80,28.70,30.80]},{ x:'03/20/2024',y:[32.10,33.85,30.00,30.30]},{ x:'03/21/2024',y:[30.00,31.50,29.70,31.00]},{ x:'03/22/2024',y:[31.60,31.60,29.95,30.10]},{ x:'03/25/2024',y:[30.25,33.00,30.10,32.45]},{ x:'03/26/2024',y:[32.05,35.65,31.75,34.00]},{ x:'03/27/2024',y:[34.35,36.70,33.15,35.60]},{ x:'03/28/2024',y:[35.00,36.60,33.95,35.30]},{ x:'03/29/2024',y:[34.90,35.20,34.10,34.10]},{ x:'04/01/2024',y:[33.60,36.40,33.60,35.40]},{ x:'04/02/2024',y:[35.05,37.05,34.50,34.70]},{ x:'04/03/2024',y:[35.30,37.20,35.20,36.20]},{ x:'04/08/2024',y:[36.45,39.80,35.80,39.80]},{ x:'04/09/2024',y:[42.90,43.75,42.70,43.75]},{ x:'04/10/2024',y:[47.30,48.10,43.10,43.65]},{ x:'04/11/2024',y:[44.10,44.20,39.30,39.90]},{ x:'04/12/2024',y:[39.90,41.40,39.60,39.90]},{ x:'04/15/2024',y:[38.45,39.30,37.20,37.20]},{ x:'04/16/2024',y:[36.55,36.95,35.60,36.10]},{ x:'04/17/2024',y:[36.40,37.80,36.40,37.45]},{ x:'04/18/2024',y:[37.50,38.50,37.40,37.50]},{ x:'04/19/2024',y:[36.75,39.70,36.35,38.35]},{ x:'04/22/2024',y:[38.15,38.60,35.50,35.95]},{ x:'04/23/2024',y:[36.90,39.50,36.55,39.50]},{ x:'04/24/2024',y:[41.45,42.60,40.00,41.30]},{ x:'04/25/2024',y:[40.90,42.40,40.40,41.50]},{ x:'04/26/2024',y:[43.60,45.65,43.05,45.65]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6215 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());