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:[28.10,28.60,28.05,28.55]},{ x:'01/23/2024',y:[28.55,28.85,28.55,28.70]},{ x:'01/24/2024',y:[28.75,29.25,28.75,29.00]},{ x:'01/25/2024',y:[29.10,29.20,28.95,29.10]},{ x:'01/26/2024',y:[29.00,29.35,28.90,29.25]},{ x:'01/29/2024',y:[29.25,29.25,29.05,29.25]},{ x:'01/30/2024',y:[29.30,29.50,29.25,29.50]},{ x:'01/31/2024',y:[29.50,29.70,29.45,29.70]},{ x:'02/01/2024',y:[29.80,30.15,29.75,30.00]},{ x:'02/02/2024',y:[30.10,30.10,29.25,29.30]},{ x:'02/05/2024',y:[29.30,29.45,29.15,29.30]},{ x:'02/15/2024',y:[29.45,29.60,29.00,29.30]},{ x:'02/16/2024',y:[29.60,30.00,29.55,29.90]},{ x:'02/19/2024',y:[30.00,32.15,30.00,32.00]},{ x:'02/20/2024',y:[31.95,32.40,31.80,32.05]},{ x:'02/21/2024',y:[32.15,32.50,31.90,32.40]},{ x:'02/22/2024',y:[32.50,32.50,31.55,32.00]},{ x:'02/23/2024',y:[32.00,32.10,31.70,32.10]},{ x:'02/26/2024',y:[31.90,32.20,31.85,31.90]},{ x:'02/27/2024',y:[32.05,32.50,31.90,32.35]},{ x:'02/29/2024',y:[32.30,33.00,32.20,33.00]},{ x:'03/01/2024',y:[33.65,34.45,33.30,34.00]},{ x:'03/04/2024',y:[34.20,34.55,34.00,34.15]},{ x:'03/05/2024',y:[34.15,35.40,34.15,35.25]},{ x:'03/06/2024',y:[35.30,35.30,34.60,35.15]},{ x:'03/07/2024',y:[35.15,36.30,34.95,36.25]},{ x:'03/08/2024',y:[36.25,36.80,35.80,36.40]},{ x:'03/11/2024',y:[36.15,36.25,35.70,36.15]},{ x:'03/12/2024',y:[36.20,37.45,36.20,36.95]},{ x:'03/13/2024',y:[36.70,38.05,36.15,36.75]},{ x:'03/14/2024',y:[36.75,37.00,36.00,36.35]},{ x:'03/15/2024',y:[36.40,36.50,35.70,36.15]},{ x:'03/18/2024',y:[36.30,37.35,36.25,37.00]},{ x:'03/19/2024',y:[37.00,37.05,36.35,36.35]},{ x:'03/20/2024',y:[36.25,36.60,36.10,36.25]},{ x:'03/21/2024',y:[36.55,36.95,36.40,36.95]},{ x:'03/22/2024',y:[37.05,37.35,36.55,36.85]},{ x:'03/25/2024',y:[37.00,37.75,36.85,37.00]},{ x:'03/26/2024',y:[37.05,37.50,36.65,37.05]},{ x:'03/27/2024',y:[37.00,38.20,37.00,38.10]},{ x:'03/28/2024',y:[38.10,38.10,37.50,37.70]},{ x:'03/29/2024',y:[37.60,38.45,37.45,37.90]},{ x:'04/01/2024',y:[37.90,38.40,37.60,38.30]},{ x:'04/02/2024',y:[38.25,38.80,38.20,38.55]},{ x:'04/03/2024',y:[38.90,39.90,38.85,39.75]},{ x:'04/08/2024',y:[40.10,42.45,40.05,41.30]},{ x:'04/09/2024',y:[40.90,41.60,40.25,41.35]},{ x:'04/10/2024',y:[41.10,42.25,40.40,41.60]},{ x:'04/11/2024',y:[42.00,42.45,41.30,41.70]},{ x:'04/12/2024',y:[41.35,43.50,41.20,43.40]},{ x:'04/15/2024',y:[43.40,43.40,42.10,42.65]},{ x:'04/16/2024',y:[42.45,42.70,41.40,41.70]},{ x:'04/17/2024',y:[42.40,45.85,42.40,45.85]},{ x:'04/18/2024',y:[46.00,48.95,45.25,48.05]},{ x:'04/19/2024',y:[47.50,48.75,45.45,48.25]},{ x:'04/22/2024',y:[48.40,49.75,46.10,47.00]},{ x:'04/23/2024',y:[47.55,48.25,45.15,46.65]},{ x:'04/24/2024',y:[47.30,47.40,43.65,43.90]},{ x:'04/25/2024',y:[44.35,48.25,44.35,47.25]},{ x:'04/26/2024',y:[46.80,47.85,46.25,46.95]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2504 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());