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:[37.20,37.45,37.10,37.20]},{ x:'01/23/2024',y:[37.20,37.95,37.20,37.70]},{ x:'01/24/2024',y:[37.75,38.70,37.55,38.15]},{ x:'01/25/2024',y:[38.25,39.45,38.20,38.85]},{ x:'01/26/2024',y:[39.20,39.80,38.60,39.00]},{ x:'01/29/2024',y:[39.00,39.40,38.60,39.25]},{ x:'01/30/2024',y:[39.25,39.35,39.05,39.20]},{ x:'01/31/2024',y:[39.20,39.45,39.15,39.40]},{ x:'02/01/2024',y:[39.50,39.60,39.25,39.40]},{ x:'02/02/2024',y:[39.60,39.70,39.10,39.70]},{ x:'02/05/2024',y:[39.90,40.40,39.45,40.05]},{ x:'02/15/2024',y:[41.10,42.50,40.50,42.40]},{ x:'02/16/2024',y:[43.00,44.45,42.70,43.05]},{ x:'02/19/2024',y:[43.30,44.35,42.60,44.20]},{ x:'02/20/2024',y:[44.40,45.35,43.45,43.55]},{ x:'02/21/2024',y:[43.75,44.80,43.70,43.90]},{ x:'02/22/2024',y:[44.60,45.30,43.50,45.00]},{ x:'02/23/2024',y:[45.45,45.50,44.20,44.20]},{ x:'02/26/2024',y:[44.80,46.20,44.65,45.95]},{ x:'02/27/2024',y:[46.95,50.50,46.45,50.50]},{ x:'02/29/2024',y:[51.70,53.00,48.50,50.60]},{ x:'03/01/2024',y:[50.90,52.00,49.50,50.80]},{ x:'03/04/2024',y:[51.20,51.50,49.80,51.20]},{ x:'03/05/2024',y:[51.10,51.10,48.35,48.60]},{ x:'03/06/2024',y:[48.60,49.70,47.85,48.35]},{ x:'03/07/2024',y:[48.80,48.80,46.05,46.05]},{ x:'03/08/2024',y:[46.70,46.95,44.30,44.30]},{ x:'03/11/2024',y:[44.65,45.75,44.20,44.75]},{ x:'03/12/2024',y:[44.70,48.55,44.70,47.50]},{ x:'03/13/2024',y:[47.80,47.85,46.05,46.35]},{ x:'03/14/2024',y:[46.80,47.60,46.30,46.35]},{ x:'03/15/2024',y:[47.00,48.25,46.25,46.60]},{ x:'03/18/2024',y:[47.10,50.50,46.70,50.40]},{ x:'03/19/2024',y:[51.00,51.30,49.15,50.70]},{ x:'03/20/2024',y:[51.40,51.50,49.50,50.10]},{ x:'03/21/2024',y:[51.20,51.20,49.40,49.65]},{ x:'03/22/2024',y:[49.45,50.10,48.55,49.80]},{ x:'03/25/2024',y:[49.85,51.30,49.80,51.00]},{ x:'03/26/2024',y:[50.80,51.70,49.80,50.20]},{ x:'03/27/2024',y:[50.70,52.90,49.85,52.10]},{ x:'03/28/2024',y:[52.40,55.00,51.80,54.00]},{ x:'03/29/2024',y:[54.80,54.80,52.30,54.00]},{ x:'04/01/2024',y:[54.00,59.40,53.60,59.40]},{ x:'04/02/2024',y:[60.30,61.50,59.00,59.10]},{ x:'04/03/2024',y:[59.00,59.90,57.30,58.50]},{ x:'04/08/2024',y:[58.70,60.40,58.20,59.50]},{ x:'04/09/2024',y:[59.50,60.70,57.70,58.20]},{ x:'04/10/2024',y:[58.70,58.70,56.90,57.50]},{ x:'04/11/2024',y:[56.60,56.60,53.50,53.70]},{ x:'04/12/2024',y:[53.70,54.50,53.00,53.90]},{ x:'04/15/2024',y:[53.90,56.10,53.60,54.00]},{ x:'04/16/2024',y:[54.00,54.00,51.00,51.70]},{ x:'04/17/2024',y:[52.20,52.80,51.20,51.30]},{ x:'04/18/2024',y:[51.80,52.30,51.00,51.10]},{ x:'04/19/2024',y:[51.10,51.10,48.25,49.80]},{ x:'04/22/2024',y:[49.65,50.30,48.20,48.25]},{ x:'04/23/2024',y:[49.60,49.60,47.80,48.05]},{ x:'04/24/2024',y:[48.65,49.95,48.45,48.85]},{ x:'04/25/2024',y:[48.50,49.35,48.00,48.20]},{ x:'04/26/2024',y:[48.70,49.80,48.15,48.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1522 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());