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:[35.95,36.30,35.90,36.10]},{ x:'01/23/2024',y:[36.10,36.50,36.10,36.35]},{ x:'01/24/2024',y:[36.50,36.60,36.35,36.55]},{ x:'01/25/2024',y:[36.65,36.80,36.35,36.40]},{ x:'01/26/2024',y:[36.55,36.75,36.30,36.40]},{ x:'01/29/2024',y:[36.55,36.60,36.30,36.40]},{ x:'01/30/2024',y:[36.30,36.35,35.90,36.15]},{ x:'01/31/2024',y:[36.05,36.25,35.90,35.90]},{ x:'02/01/2024',y:[36.10,36.10,35.90,36.05]},{ x:'02/02/2024',y:[36.10,36.10,35.95,35.95]},{ x:'02/05/2024',y:[35.80,35.95,35.70,35.75]},{ x:'02/15/2024',y:[35.75,39.00,35.70,38.25]},{ x:'02/16/2024',y:[37.35,37.75,36.90,37.30]},{ x:'02/19/2024',y:[37.30,37.65,37.10,37.40]},{ x:'02/20/2024',y:[37.60,37.85,37.30,37.30]},{ x:'02/21/2024',y:[37.30,37.55,36.90,37.40]},{ x:'02/22/2024',y:[37.40,40.70,37.40,40.00]},{ x:'02/23/2024',y:[39.55,39.60,38.25,38.25]},{ x:'02/26/2024',y:[38.35,38.75,38.00,38.40]},{ x:'02/27/2024',y:[38.55,38.65,37.45,37.75]},{ x:'02/29/2024',y:[37.70,38.45,37.60,38.15]},{ x:'03/01/2024',y:[38.15,39.90,38.10,39.45]},{ x:'03/04/2024',y:[40.00,40.60,38.45,40.00]},{ x:'03/05/2024',y:[39.80,39.80,38.70,39.00]},{ x:'03/06/2024',y:[38.90,41.25,38.60,40.05]},{ x:'03/07/2024',y:[40.20,40.60,39.00,39.20]},{ x:'03/08/2024',y:[39.20,39.60,37.70,38.05]},{ x:'03/11/2024',y:[38.15,38.50,37.85,37.85]},{ x:'03/12/2024',y:[37.80,38.80,37.60,38.80]},{ x:'03/13/2024',y:[41.05,41.80,39.25,39.65]},{ x:'03/14/2024',y:[39.65,39.65,38.50,38.60]},{ x:'03/15/2024',y:[38.30,38.70,38.10,38.35]},{ x:'03/18/2024',y:[39.00,40.80,38.90,40.45]},{ x:'03/19/2024',y:[41.05,44.40,41.05,42.10]},{ x:'03/20/2024',y:[42.40,43.45,41.90,42.00]},{ x:'03/21/2024',y:[42.15,42.35,41.10,41.70]},{ x:'03/22/2024',y:[41.75,45.85,41.50,45.85]},{ x:'03/25/2024',y:[46.35,48.60,44.60,46.60]},{ x:'03/26/2024',y:[46.80,47.85,45.10,45.55]},{ x:'03/27/2024',y:[47.20,50.10,47.20,47.90]},{ x:'03/28/2024',y:[48.20,48.60,46.95,47.00]},{ x:'03/29/2024',y:[47.80,48.75,46.50,46.55]},{ x:'04/01/2024',y:[46.60,48.60,45.70,47.10]},{ x:'04/02/2024',y:[47.15,48.00,46.75,47.65]},{ x:'04/03/2024',y:[47.45,47.95,46.65,46.70]},{ x:'04/08/2024',y:[47.40,49.50,47.20,48.90]},{ x:'04/09/2024',y:[51.10,53.70,51.10,53.70]},{ x:'04/10/2024',y:[55.60,58.50,53.80,55.20]},{ x:'04/11/2024',y:[52.70,53.00,50.00,50.00]},{ x:'04/12/2024',y:[50.10,51.30,49.55,50.20]},{ x:'04/15/2024',y:[48.65,49.70,48.20,48.20]},{ x:'04/16/2024',y:[47.55,48.00,45.80,46.40]},{ x:'04/17/2024',y:[47.10,47.85,47.10,47.65]},{ x:'04/18/2024',y:[47.00,47.30,46.15,46.40]},{ x:'04/19/2024',y:[45.80,45.80,42.50,43.95]},{ x:'04/22/2024',y:[45.00,45.00,43.15,43.60]},{ x:'04/23/2024',y:[44.95,46.00,43.75,45.00]},{ x:'04/24/2024',y:[45.95,48.20,45.80,47.45]},{ x:'04/25/2024',y:[47.30,48.75,46.60,47.45]},{ x:'04/26/2024',y:[48.00,52.00,47.80,50.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2464 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());