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:[49.00,53.90,48.85,52.60]},{ x:'01/23/2024',y:[52.00,54.00,50.60,54.00]},{ x:'01/24/2024',y:[53.10,54.00,51.00,51.00]},{ x:'01/25/2024',y:[51.20,51.30,49.95,50.70]},{ x:'01/26/2024',y:[50.70,51.70,50.50,51.60]},{ x:'01/29/2024',y:[52.00,52.40,51.00,51.30]},{ x:'01/30/2024',y:[51.30,51.60,51.10,51.40]},{ x:'01/31/2024',y:[51.70,51.70,49.95,50.50]},{ x:'02/01/2024',y:[50.60,50.60,49.60,50.00]},{ x:'02/02/2024',y:[49.80,50.50,49.80,49.80]},{ x:'02/05/2024',y:[50.00,51.60,50.00,51.20]},{ x:'02/15/2024',y:[51.50,52.10,51.00,51.80]},{ x:'02/16/2024',y:[52.90,54.80,52.10,54.30]},{ x:'02/19/2024',y:[54.70,59.70,54.70,57.40]},{ x:'02/20/2024',y:[58.80,58.80,55.80,57.50]},{ x:'02/21/2024',y:[57.10,58.10,56.10,56.60]},{ x:'02/22/2024',y:[56.50,57.90,55.80,56.60]},{ x:'02/23/2024',y:[57.00,57.60,56.20,56.80]},{ x:'02/26/2024',y:[54.10,55.10,51.50,51.70]},{ x:'02/27/2024',y:[51.90,52.40,51.30,52.00]},{ x:'02/29/2024',y:[51.80,54.80,51.20,54.00]},{ x:'03/01/2024',y:[54.00,56.80,53.80,56.30]},{ x:'03/04/2024',y:[57.40,57.40,54.90,55.90]},{ x:'03/05/2024',y:[55.90,57.30,55.00,56.60]},{ x:'03/06/2024',y:[56.10,57.00,55.50,56.80]},{ x:'03/07/2024',y:[58.00,59.80,56.40,57.60]},{ x:'03/08/2024',y:[58.40,60.50,57.50,59.90]},{ x:'03/11/2024',y:[65.80,65.80,65.80,65.80]},{ x:'03/12/2024',y:[71.80,71.80,62.40,65.10]},{ x:'03/13/2024',y:[66.30,68.80,65.10,67.00]},{ x:'03/14/2024',y:[67.00,68.80,66.40,67.00]},{ x:'03/15/2024',y:[67.30,69.50,67.00,69.30]},{ x:'03/18/2024',y:[70.20,74.40,70.10,72.00]},{ x:'03/19/2024',y:[71.90,71.90,70.50,70.80]},{ x:'03/20/2024',y:[71.00,72.40,71.00,71.90]},{ x:'03/21/2024',y:[72.20,72.50,71.50,72.10]},{ x:'03/22/2024',y:[72.60,72.60,71.10,71.30]},{ x:'03/25/2024',y:[72.00,72.00,67.60,67.90]},{ x:'03/26/2024',y:[67.90,68.20,66.60,67.00]},{ x:'03/27/2024',y:[67.60,71.00,67.50,70.70]},{ x:'03/28/2024',y:[48.00,50.70,48.00,49.60]},{ x:'03/29/2024',y:[49.60,49.60,47.40,47.70]},{ x:'04/01/2024',y:[48.00,48.50,46.50,46.80]},{ x:'04/02/2024',y:[46.85,46.95,44.80,45.20]},{ x:'04/03/2024',y:[45.20,46.05,44.30,45.90]},{ x:'04/08/2024',y:[46.10,48.20,46.10,47.50]},{ x:'04/09/2024',y:[48.10,49.10,47.70,47.75]},{ x:'04/10/2024',y:[47.80,48.90,47.60,48.50]},{ x:'04/11/2024',y:[48.70,48.90,47.30,47.80]},{ x:'04/12/2024',y:[47.00,48.05,47.00,47.20]},{ x:'04/15/2024',y:[47.25,47.25,46.55,46.55]},{ x:'04/16/2024',y:[46.30,46.30,45.05,45.70]},{ x:'04/17/2024',y:[45.55,46.70,45.55,46.60]},{ x:'04/18/2024',y:[46.40,47.80,46.15,47.25]},{ x:'04/19/2024',y:[47.35,47.35,45.25,45.50]},{ x:'04/22/2024',y:[45.50,47.00,45.45,46.05]},{ x:'04/23/2024',y:[46.15,46.95,46.15,46.95]},{ x:'04/24/2024',y:[47.55,48.30,47.00,47.80]},{ x:'04/25/2024',y:[47.80,48.95,47.80,48.60]},{ x:'04/26/2024',y:[48.80,49.95,48.60,49.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4420 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());