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/23/2024',y:[50.40,51.30,49.00,49.00]},{ x:'01/24/2024',y:[49.25,51.50,49.05,50.20]},{ x:'01/25/2024',y:[50.10,50.90,49.00,49.00]},{ x:'01/26/2024',y:[49.00,50.50,47.70,48.25]},{ x:'01/29/2024',y:[47.85,49.00,47.80,49.00]},{ x:'01/30/2024',y:[49.25,50.30,49.25,49.25]},{ x:'01/31/2024',y:[49.05,49.90,48.75,49.70]},{ x:'02/01/2024',y:[50.50,51.90,49.00,49.30]},{ x:'02/02/2024',y:[49.95,49.95,48.35,48.35]},{ x:'02/05/2024',y:[48.35,49.50,47.65,48.75]},{ x:'02/15/2024',y:[49.40,50.40,48.50,49.95]},{ x:'02/16/2024',y:[51.00,52.00,50.50,51.20]},{ x:'02/19/2024',y:[50.70,51.40,50.10,50.50]},{ x:'02/20/2024',y:[50.40,51.30,49.65,49.70]},{ x:'02/21/2024',y:[49.90,50.90,49.55,50.30]},{ x:'02/22/2024',y:[50.80,51.00,49.50,49.70]},{ x:'02/23/2024',y:[50.00,50.20,48.25,48.30]},{ x:'02/26/2024',y:[48.30,51.20,47.90,50.50]},{ x:'02/27/2024',y:[51.80,51.90,48.75,48.85]},{ x:'02/29/2024',y:[48.95,49.70,48.65,49.30]},{ x:'03/01/2024',y:[49.95,51.90,49.50,51.10]},{ x:'03/04/2024',y:[51.70,51.90,50.60,50.90]},{ x:'03/05/2024',y:[51.10,51.10,49.10,49.70]},{ x:'03/06/2024',y:[49.90,54.60,49.80,54.10]},{ x:'03/07/2024',y:[55.50,56.00,49.85,50.10]},{ x:'03/08/2024',y:[51.00,51.70,48.50,49.50]},{ x:'03/11/2024',y:[49.90,52.30,49.75,51.40]},{ x:'03/12/2024',y:[51.40,54.70,51.00,53.30]},{ x:'03/13/2024',y:[53.70,55.60,52.20,53.90]},{ x:'03/14/2024',y:[54.30,55.60,52.20,54.80]},{ x:'03/15/2024',y:[54.00,56.50,53.20,54.40]},{ x:'03/18/2024',y:[56.00,59.80,54.30,54.50]},{ x:'03/19/2024',y:[54.80,57.80,54.30,54.70]},{ x:'03/20/2024',y:[55.20,56.00,53.50,55.60]},{ x:'03/21/2024',y:[57.50,60.90,56.20,59.40]},{ x:'03/22/2024',y:[59.00,61.70,58.70,59.30]},{ x:'03/25/2024',y:[61.00,65.20,60.90,64.20]},{ x:'03/26/2024',y:[63.90,65.10,59.40,60.10]},{ x:'03/27/2024',y:[61.60,62.40,58.90,59.00]},{ x:'03/28/2024',y:[58.70,60.00,58.30,58.60]},{ x:'03/29/2024',y:[58.80,61.70,58.30,60.00]},{ x:'04/01/2024',y:[62.50,66.00,62.50,66.00]},{ x:'04/02/2024',y:[68.00,72.60,68.00,72.60]},{ x:'04/03/2024',y:[73.00,77.80,70.00,70.90]},{ x:'04/08/2024',y:[71.50,75.00,68.90,75.00]},{ x:'04/09/2024',y:[74.00,77.00,72.40,74.00]},{ x:'04/10/2024',y:[73.30,74.60,70.50,70.60]},{ x:'04/11/2024',y:[70.00,72.10,69.90,71.40]},{ x:'04/12/2024',y:[71.40,74.40,71.30,73.60]},{ x:'04/15/2024',y:[72.40,73.60,71.00,71.80]},{ x:'04/16/2024',y:[71.20,71.50,67.80,69.90]},{ x:'04/17/2024',y:[70.90,71.70,69.40,70.10]},{ x:'04/18/2024',y:[69.00,71.70,68.90,69.40]},{ x:'04/19/2024',y:[68.90,69.50,65.70,67.80]},{ x:'04/22/2024',y:[68.40,69.30,65.10,65.10]},{ x:'04/23/2024',y:[66.80,67.50,64.80,66.00]},{ x:'04/24/2024',y:[67.70,70.70,67.70,69.40]},{ x:'04/25/2024',y:[68.50,73.10,68.20,72.30]},{ x:'04/26/2024',y:[73.10,75.90,71.40,72.60]},{ x:'04/29/2024',y:[74.10,77.10,71.80,72.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2486 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());