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:[40.15,41.20,36.50,36.50]},{ x:'01/23/2024',y:[36.30,36.75,35.45,35.45]},{ x:'01/24/2024',y:[35.60,36.40,35.60,36.25]},{ x:'01/25/2024',y:[36.25,37.05,35.80,35.85]},{ x:'01/26/2024',y:[35.85,36.05,34.55,34.55]},{ x:'01/29/2024',y:[34.50,35.30,34.40,35.25]},{ x:'01/30/2024',y:[35.40,35.85,35.15,35.15]},{ x:'01/31/2024',y:[35.20,35.40,34.85,34.85]},{ x:'02/01/2024',y:[35.00,35.35,34.60,35.20]},{ x:'02/02/2024',y:[35.40,35.40,34.80,34.80]},{ x:'02/05/2024',y:[34.80,34.80,34.25,34.40]},{ x:'02/15/2024',y:[35.00,35.80,34.70,35.00]},{ x:'02/16/2024',y:[35.05,36.05,35.05,36.00]},{ x:'02/19/2024',y:[36.40,36.80,35.75,36.50]},{ x:'02/20/2024',y:[36.50,36.70,36.00,36.05]},{ x:'02/21/2024',y:[36.35,36.60,36.10,36.10]},{ x:'02/22/2024',y:[36.45,36.55,35.85,35.85]},{ x:'02/23/2024',y:[36.10,36.40,35.60,35.60]},{ x:'02/26/2024',y:[35.60,35.65,35.20,35.20]},{ x:'02/27/2024',y:[35.45,35.55,34.55,34.70]},{ x:'02/29/2024',y:[34.70,35.90,34.45,35.25]},{ x:'03/01/2024',y:[35.45,36.65,35.15,36.65]},{ x:'03/04/2024',y:[37.00,38.50,36.30,38.00]},{ x:'03/05/2024',y:[39.50,41.45,39.00,39.85]},{ x:'03/06/2024',y:[39.65,43.45,38.80,41.25]},{ x:'03/07/2024',y:[42.00,42.90,39.60,39.90]},{ x:'03/08/2024',y:[40.00,42.25,38.60,41.55]},{ x:'03/11/2024',y:[40.50,41.80,40.20,41.00]},{ x:'03/12/2024',y:[41.05,42.60,41.05,41.70]},{ x:'03/13/2024',y:[42.10,42.25,40.45,41.20]},{ x:'03/14/2024',y:[41.30,41.35,39.00,39.05]},{ x:'03/15/2024',y:[39.55,39.75,38.85,39.35]},{ x:'03/18/2024',y:[39.45,43.25,39.45,43.25]},{ x:'03/19/2024',y:[43.65,44.55,41.80,42.00]},{ x:'03/20/2024',y:[42.00,42.00,41.15,41.20]},{ x:'03/21/2024',y:[41.85,42.30,40.45,40.60]},{ x:'03/22/2024',y:[40.85,41.30,40.00,40.65]},{ x:'03/25/2024',y:[41.00,44.45,40.70,44.45]},{ x:'03/26/2024',y:[44.95,45.35,42.65,43.10]},{ x:'03/27/2024',y:[42.60,43.00,41.20,42.55]},{ x:'03/28/2024',y:[42.60,44.55,42.20,42.20]},{ x:'03/29/2024',y:[42.50,44.90,42.20,43.30]},{ x:'04/01/2024',y:[43.80,45.40,43.30,44.15]},{ x:'04/02/2024',y:[44.25,44.40,43.65,43.80]},{ x:'04/03/2024',y:[43.75,45.15,43.50,44.55]},{ x:'04/08/2024',y:[44.30,46.75,43.85,46.75]},{ x:'04/09/2024',y:[46.75,46.75,45.15,46.35]},{ x:'04/10/2024',y:[47.45,48.20,44.15,45.50]},{ x:'04/11/2024',y:[44.80,45.35,44.20,44.20]},{ x:'04/12/2024',y:[44.50,45.20,43.70,45.05]},{ x:'04/15/2024',y:[45.05,45.45,43.15,43.30]},{ x:'04/16/2024',y:[42.60,43.00,40.50,40.95]},{ x:'04/17/2024',y:[42.00,43.20,41.15,42.45]},{ x:'04/18/2024',y:[42.10,42.20,41.20,41.45]},{ x:'04/19/2024',y:[42.05,42.70,39.55,40.85]},{ x:'04/22/2024',y:[40.95,41.05,39.45,39.55]},{ x:'04/23/2024',y:[40.00,40.55,39.60,40.40]},{ x:'04/24/2024',y:[41.30,44.40,41.10,44.40]},{ x:'04/25/2024',y:[44.25,46.20,43.25,43.75]},{ x:'04/26/2024',y:[44.35,45.60,43.80,44.05]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2316 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());