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:[42.20,42.85,41.90,42.70]},{ x:'01/23/2024',y:[42.70,42.90,42.05,42.20]},{ x:'01/24/2024',y:[42.00,43.10,41.80,42.95]},{ x:'01/25/2024',y:[43.00,43.20,42.05,42.55]},{ x:'01/26/2024',y:[42.55,42.70,42.05,42.60]},{ x:'01/29/2024',y:[42.25,42.50,41.80,41.85]},{ x:'01/30/2024',y:[41.90,42.15,41.25,41.40]},{ x:'01/31/2024',y:[41.20,41.65,41.15,41.40]},{ x:'02/01/2024',y:[41.80,41.80,41.10,41.15]},{ x:'02/02/2024',y:[41.30,41.45,40.65,40.80]},{ x:'02/05/2024',y:[40.80,40.80,40.25,40.35]},{ x:'02/15/2024',y:[40.65,41.05,40.40,40.80]},{ x:'02/16/2024',y:[41.05,42.60,41.05,42.50]},{ x:'02/19/2024',y:[43.00,43.10,42.50,42.80]},{ x:'02/20/2024',y:[42.80,43.05,42.00,42.70]},{ x:'02/21/2024',y:[43.20,43.40,42.30,43.15]},{ x:'02/22/2024',y:[43.20,43.45,42.25,43.00]},{ x:'02/23/2024',y:[43.20,45.40,43.20,44.55]},{ x:'02/26/2024',y:[45.45,45.50,44.00,45.05]},{ x:'02/27/2024',y:[45.60,45.80,44.15,44.50]},{ x:'02/29/2024',y:[45.85,48.10,45.25,46.50]},{ x:'03/01/2024',y:[46.50,46.50,45.65,45.90]},{ x:'03/04/2024',y:[47.85,47.85,46.60,47.00]},{ x:'03/05/2024',y:[47.70,51.70,47.55,51.70]},{ x:'03/06/2024',y:[51.70,54.20,50.20,52.40]},{ x:'03/07/2024',y:[52.00,52.00,48.65,48.80]},{ x:'03/08/2024',y:[48.55,48.80,46.15,46.80]},{ x:'03/11/2024',y:[46.70,47.50,46.30,46.85]},{ x:'03/12/2024',y:[47.30,51.50,47.20,51.50]},{ x:'03/13/2024',y:[50.90,52.60,48.80,49.00]},{ x:'03/14/2024',y:[49.00,49.50,47.35,48.45]},{ x:'03/15/2024',y:[48.45,49.70,47.70,47.75]},{ x:'03/18/2024',y:[47.90,48.35,47.20,48.35]},{ x:'03/19/2024',y:[48.40,49.60,48.30,48.65]},{ x:'03/20/2024',y:[48.70,49.05,48.40,48.50]},{ x:'03/21/2024',y:[48.80,49.50,48.60,48.85]},{ x:'03/22/2024',y:[49.70,49.70,48.45,48.45]},{ x:'03/25/2024',y:[48.75,49.25,48.45,48.50]},{ x:'03/26/2024',y:[48.80,48.80,47.50,47.60]},{ x:'03/27/2024',y:[47.40,47.95,47.35,47.60]},{ x:'03/28/2024',y:[47.75,48.20,47.20,48.05]},{ x:'03/29/2024',y:[47.80,48.35,47.45,47.45]},{ x:'04/01/2024',y:[47.55,47.90,47.55,47.55]},{ x:'04/02/2024',y:[47.65,47.75,47.00,47.40]},{ x:'04/03/2024',y:[47.05,47.35,46.75,47.10]},{ x:'04/08/2024',y:[47.00,47.15,46.75,46.75]},{ x:'04/09/2024',y:[46.70,47.20,46.10,46.30]},{ x:'04/10/2024',y:[46.30,47.25,46.30,46.30]},{ x:'04/11/2024',y:[46.15,46.40,45.70,46.05]},{ x:'04/12/2024',y:[45.95,46.60,45.95,46.15]},{ x:'04/15/2024',y:[46.00,46.15,45.45,45.60]},{ x:'04/16/2024',y:[45.40,45.40,44.05,44.05]},{ x:'04/17/2024',y:[44.10,45.50,44.10,45.50]},{ x:'04/18/2024',y:[45.15,45.50,45.00,45.15]},{ x:'04/19/2024',y:[45.05,45.10,43.50,44.10]},{ x:'04/22/2024',y:[44.05,44.60,43.50,43.50]},{ x:'04/23/2024',y:[43.60,44.30,43.50,43.65]},{ x:'04/24/2024',y:[44.25,45.25,44.00,45.00]},{ x:'04/25/2024',y:[44.55,44.90,44.45,44.60]},{ x:'04/26/2024',y:[44.90,45.10,44.40,44.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6161 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());