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:[34.40,35.50,34.10,34.45]},{ x:'01/23/2024',y:[34.55,35.40,34.25,35.10]},{ x:'01/24/2024',y:[35.50,36.40,35.20,35.50]},{ x:'01/25/2024',y:[35.60,35.80,34.60,35.10]},{ x:'01/26/2024',y:[35.10,35.60,34.50,34.60]},{ x:'01/29/2024',y:[34.45,36.05,34.10,35.55]},{ x:'01/30/2024',y:[35.85,36.30,35.40,35.40]},{ x:'01/31/2024',y:[35.40,35.70,34.60,34.85]},{ x:'02/01/2024',y:[35.05,35.15,34.35,34.50]},{ x:'02/02/2024',y:[34.65,34.90,34.30,34.65]},{ x:'02/05/2024',y:[34.75,34.95,34.10,34.80]},{ x:'02/15/2024',y:[36.85,38.25,36.80,38.25]},{ x:'02/16/2024',y:[40.00,42.05,40.00,42.05]},{ x:'02/19/2024',y:[43.80,44.65,40.95,44.00]},{ x:'02/20/2024',y:[45.80,48.40,45.10,48.40]},{ x:'02/21/2024',y:[49.60,50.70,47.00,49.90]},{ x:'02/22/2024',y:[50.50,53.60,49.30,51.20]},{ x:'02/23/2024',y:[52.40,52.40,50.00,50.00]},{ x:'02/26/2024',y:[50.50,50.50,48.50,48.80]},{ x:'02/27/2024',y:[48.80,50.20,48.80,49.35]},{ x:'02/29/2024',y:[50.00,50.60,49.85,50.40]},{ x:'03/01/2024',y:[51.70,51.70,49.60,49.85]},{ x:'03/04/2024',y:[51.20,52.00,50.70,51.80]},{ x:'03/05/2024',y:[52.50,53.40,52.00,52.90]},{ x:'03/06/2024',y:[52.50,58.00,52.00,58.00]},{ x:'03/07/2024',y:[60.50,61.30,57.30,59.10]},{ x:'03/08/2024',y:[59.10,59.40,53.20,53.20]},{ x:'03/11/2024',y:[49.70,54.30,49.50,51.50]},{ x:'03/12/2024',y:[51.40,56.50,51.40,55.80]},{ x:'03/13/2024',y:[56.30,57.00,50.50,51.80]},{ x:'03/14/2024',y:[51.30,51.90,48.45,48.90]},{ x:'03/15/2024',y:[49.00,50.70,49.00,49.65]},{ x:'03/18/2024',y:[50.00,54.40,49.85,54.10]},{ x:'03/19/2024',y:[54.50,57.20,53.80,56.00]},{ x:'03/20/2024',y:[56.30,56.90,53.30,53.80]},{ x:'03/21/2024',y:[54.50,57.70,54.50,56.80]},{ x:'03/22/2024',y:[57.70,57.80,55.20,56.10]},{ x:'03/25/2024',y:[56.50,58.40,56.20,56.60]},{ x:'03/26/2024',y:[56.70,57.00,53.80,54.20]},{ x:'03/27/2024',y:[55.10,55.40,53.80,55.00]},{ x:'03/28/2024',y:[55.50,56.50,54.90,56.00]},{ x:'03/29/2024',y:[57.40,57.50,54.30,54.60]},{ x:'04/01/2024',y:[55.00,60.00,54.20,60.00]},{ x:'04/02/2024',y:[62.00,66.00,62.00,66.00]},{ x:'04/03/2024',y:[67.70,71.90,67.00,67.90]},{ x:'04/08/2024',y:[69.40,70.50,65.20,68.80]},{ x:'04/09/2024',y:[68.00,73.30,67.50,68.20]},{ x:'04/10/2024',y:[68.20,70.30,67.50,69.00]},{ x:'04/11/2024',y:[69.20,69.70,66.50,67.20]},{ x:'04/12/2024',y:[65.40,67.90,65.40,65.90]},{ x:'04/15/2024',y:[65.90,66.50,62.20,63.40]},{ x:'04/16/2024',y:[64.40,65.20,60.20,60.80]},{ x:'04/17/2024',y:[62.90,65.50,62.00,63.60]},{ x:'04/18/2024',y:[62.20,64.50,61.70,62.00]},{ x:'04/19/2024',y:[61.00,61.00,55.80,56.00]},{ x:'04/22/2024',y:[56.60,56.90,52.10,52.10]},{ x:'04/23/2024',y:[54.00,54.80,52.90,53.60]},{ x:'04/24/2024',y:[54.80,57.30,54.70,56.40]},{ x:'04/25/2024',y:[56.20,57.20,54.90,55.80]},{ x:'04/26/2024',y:[56.60,57.60,55.10,55.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5443 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());