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:[53.00,53.00,50.50,50.70]},{ x:'01/23/2024',y:[50.80,51.70,50.00,51.00]},{ x:'01/24/2024',y:[51.00,52.00,50.50,51.30]},{ x:'01/25/2024',y:[51.50,52.00,49.50,49.90]},{ x:'01/26/2024',y:[51.50,51.50,50.00,50.70]},{ x:'01/29/2024',y:[50.40,52.50,50.40,52.10]},{ x:'01/30/2024',y:[52.40,57.30,51.50,57.30]},{ x:'01/31/2024',y:[58.00,62.50,58.00,62.40]},{ x:'02/01/2024',y:[61.50,61.70,57.70,58.70]},{ x:'02/02/2024',y:[57.50,57.50,53.20,54.20]},{ x:'02/05/2024',y:[51.90,52.00,49.70,50.50]},{ x:'02/15/2024',y:[45.50,48.85,45.45,45.85]},{ x:'02/16/2024',y:[45.50,48.15,45.45,47.40]},{ x:'02/19/2024',y:[50.00,51.60,48.00,51.30]},{ x:'02/20/2024',y:[51.20,51.30,48.20,48.60]},{ x:'02/21/2024',y:[48.00,48.60,47.20,47.70]},{ x:'02/22/2024',y:[47.70,48.50,47.50,47.60]},{ x:'02/23/2024',y:[47.85,49.25,47.70,48.10]},{ x:'02/26/2024',y:[48.90,49.90,48.10,49.35]},{ x:'02/27/2024',y:[49.40,49.50,47.75,47.85]},{ x:'02/29/2024',y:[48.00,48.00,46.00,46.75]},{ x:'03/01/2024',y:[47.30,47.30,44.55,44.85]},{ x:'03/04/2024',y:[44.10,44.10,41.40,41.95]},{ x:'03/05/2024',y:[41.95,43.15,41.30,41.60]},{ x:'03/06/2024',y:[41.55,41.90,40.55,41.05]},{ x:'03/07/2024',y:[41.60,43.20,40.60,41.20]},{ x:'03/08/2024',y:[41.40,41.85,40.60,40.85]},{ x:'03/11/2024',y:[42.00,44.75,42.00,43.50]},{ x:'03/12/2024',y:[43.00,43.00,41.55,42.40]},{ x:'03/13/2024',y:[42.50,42.50,40.70,41.05]},{ x:'03/14/2024',y:[41.10,41.90,40.85,41.45]},{ x:'03/15/2024',y:[40.00,41.45,40.00,41.25]},{ x:'03/18/2024',y:[41.00,41.00,40.25,40.65]},{ x:'03/19/2024',y:[40.60,42.50,40.60,41.20]},{ x:'03/20/2024',y:[41.20,42.40,40.75,42.25]},{ x:'03/21/2024',y:[42.25,42.30,41.20,41.25]},{ x:'03/22/2024',y:[41.25,41.65,41.00,41.00]},{ x:'03/25/2024',y:[40.90,41.70,40.90,41.10]},{ x:'03/26/2024',y:[41.10,41.90,40.85,40.90]},{ x:'03/27/2024',y:[40.90,41.45,40.60,40.80]},{ x:'03/28/2024',y:[41.00,42.20,40.50,40.70]},{ x:'03/29/2024',y:[40.70,40.80,40.15,40.45]},{ x:'04/01/2024',y:[40.40,40.75,40.05,40.05]},{ x:'04/02/2024',y:[40.40,40.40,39.90,40.05]},{ x:'04/03/2024',y:[40.10,40.10,39.00,39.05]},{ x:'04/08/2024',y:[39.05,42.95,37.20,42.95]},{ x:'04/09/2024',y:[42.50,42.50,40.20,40.20]},{ x:'04/10/2024',y:[39.70,40.85,38.00,39.00]},{ x:'04/11/2024',y:[39.05,39.45,38.30,38.35]},{ x:'04/12/2024',y:[38.50,38.65,38.00,38.10]},{ x:'04/15/2024',y:[38.10,39.45,37.80,38.70]},{ x:'04/16/2024',y:[39.00,39.00,37.55,37.85]},{ x:'04/17/2024',y:[37.85,38.00,36.90,37.25]},{ x:'04/18/2024',y:[37.20,40.90,36.40,40.00]},{ x:'04/19/2024',y:[40.00,40.00,37.45,38.00]},{ x:'04/22/2024',y:[39.45,39.45,37.35,37.55]},{ x:'04/23/2024',y:[37.55,38.00,37.40,38.00]},{ x:'04/24/2024',y:[38.30,38.40,36.80,37.00]},{ x:'04/25/2024',y:[37.00,37.00,35.25,35.60]},{ x:'04/26/2024',y:[35.60,36.10,34.20,34.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5210 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());