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:'11/21/2023',y:[38.50,38.70,38.30,38.30]},{ x:'11/22/2023',y:[38.30,38.30,36.80,37.45]},{ x:'11/23/2023',y:[38.00,41.15,37.95,41.15]},{ x:'11/24/2023',y:[41.60,42.95,41.05,42.20]},{ x:'11/27/2023',y:[42.25,42.60,41.65,41.70]},{ x:'11/28/2023',y:[41.55,42.70,41.55,41.80]},{ x:'11/29/2023',y:[41.90,42.70,41.60,42.10]},{ x:'11/30/2023',y:[42.35,42.60,42.00,42.60]},{ x:'12/01/2023',y:[42.65,44.95,42.60,43.70]},{ x:'12/04/2023',y:[43.95,44.90,43.75,43.95]},{ x:'12/05/2023',y:[43.85,43.85,42.80,42.90]},{ x:'12/06/2023',y:[42.80,43.95,41.55,43.30]},{ x:'12/07/2023',y:[43.00,43.05,42.20,42.90]},{ x:'12/08/2023',y:[42.40,43.10,42.40,42.40]},{ x:'12/11/2023',y:[42.45,44.15,42.40,42.85]},{ x:'12/12/2023',y:[43.10,43.80,42.50,43.80]},{ x:'12/18/2023',y:[44.40,44.50,43.30,43.90]},{ x:'12/19/2023',y:[44.00,44.00,42.40,42.65]},{ x:'01/10/2024',y:[42.65,42.65,41.10,41.10]},{ x:'01/11/2024',y:[41.30,42.05,40.90,41.00]},{ x:'01/12/2024',y:[40.80,41.05,40.60,40.70]},{ x:'01/15/2024',y:[40.65,41.80,40.65,41.00]},{ x:'01/16/2024',y:[40.90,40.90,40.15,40.20]},{ x:'01/17/2024',y:[40.05,40.20,38.70,39.00]},{ x:'01/18/2024',y:[39.00,39.00,38.20,38.55]},{ x:'01/19/2024',y:[38.60,39.70,38.60,39.50]},{ x:'01/22/2024',y:[39.45,39.50,38.75,39.25]},{ x:'01/23/2024',y:[38.90,39.20,38.65,39.00]},{ x:'01/24/2024',y:[38.75,39.70,38.70,39.00]},{ x:'01/25/2024',y:[39.35,39.35,38.60,39.00]},{ x:'01/26/2024',y:[40.35,40.35,39.15,39.35]},{ x:'01/29/2024',y:[39.00,39.70,38.80,39.60]},{ x:'01/30/2024',y:[39.80,39.80,38.90,39.05]},{ x:'01/31/2024',y:[38.95,39.10,38.80,39.10]},{ x:'02/01/2024',y:[38.95,39.30,38.95,39.00]},{ x:'02/02/2024',y:[39.35,39.35,39.15,39.20]},{ x:'02/05/2024',y:[38.90,39.60,38.90,39.30]},{ x:'02/15/2024',y:[39.15,40.15,38.60,38.85]},{ x:'02/16/2024',y:[38.85,39.65,38.80,39.25]},{ x:'02/19/2024',y:[39.25,40.00,39.25,39.80]},{ x:'02/20/2024',y:[39.85,39.95,39.50,39.80]},{ x:'02/21/2024',y:[39.50,40.80,39.50,39.85]},{ x:'02/22/2024',y:[40.05,40.40,39.50,39.85]},{ x:'02/23/2024',y:[39.90,39.90,39.20,39.50]},{ x:'02/26/2024',y:[39.50,39.50,38.80,39.00]},{ x:'02/27/2024',y:[39.15,39.15,38.00,38.40]},{ x:'02/29/2024',y:[38.45,38.55,38.05,38.35]},{ x:'03/01/2024',y:[38.35,38.35,38.05,38.10]},{ x:'03/04/2024',y:[38.10,38.15,37.45,37.65]},{ x:'03/05/2024',y:[37.65,37.70,37.30,37.35]},{ x:'03/06/2024',y:[37.35,40.00,36.90,38.60]},{ x:'03/07/2024',y:[39.35,39.35,37.90,38.15]},{ x:'03/08/2024',y:[37.95,38.00,37.05,37.10]},{ x:'03/11/2024',y:[37.05,37.40,36.85,37.00]},{ x:'03/12/2024',y:[36.90,37.30,36.85,37.15]},{ x:'03/13/2024',y:[37.20,37.20,36.65,36.80]},{ x:'03/14/2024',y:[36.30,36.90,36.30,36.65]},{ x:'03/15/2024',y:[36.65,36.65,35.35,36.05]},{ x:'03/18/2024',y:[35.50,35.55,34.95,35.05]},{ x:'03/19/2024',y:[35.00,35.80,35.00,35.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1338 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());