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:[45.40,45.60,44.70,45.20]},{ x:'01/24/2024',y:[45.20,45.45,45.10,45.15]},{ x:'01/25/2024',y:[45.45,45.50,45.10,45.15]},{ x:'01/26/2024',y:[45.45,45.95,45.45,45.45]},{ x:'01/29/2024',y:[45.45,46.15,45.45,46.05]},{ x:'01/30/2024',y:[45.55,46.00,45.55,46.00]},{ x:'01/31/2024',y:[46.20,46.20,45.65,45.85]},{ x:'02/01/2024',y:[45.90,46.65,45.90,46.35]},{ x:'02/02/2024',y:[46.20,46.45,46.05,46.30]},{ x:'02/05/2024',y:[46.05,46.05,45.75,46.05]},{ x:'02/15/2024',y:[45.50,45.70,45.10,45.30]},{ x:'02/16/2024',y:[45.80,46.80,45.80,46.50]},{ x:'02/19/2024',y:[46.55,47.35,46.55,46.70]},{ x:'02/20/2024',y:[46.80,46.80,46.15,46.20]},{ x:'02/21/2024',y:[46.70,46.90,46.15,46.75]},{ x:'02/22/2024',y:[46.85,47.10,46.60,46.80]},{ x:'02/23/2024',y:[46.85,46.95,46.70,46.75]},{ x:'02/26/2024',y:[46.70,47.75,46.70,47.60]},{ x:'02/27/2024',y:[47.40,47.90,47.00,47.50]},{ x:'02/29/2024',y:[47.55,48.20,47.50,48.20]},{ x:'03/01/2024',y:[47.80,47.95,47.50,47.55]},{ x:'03/04/2024',y:[47.20,47.70,47.00,47.05]},{ x:'03/05/2024',y:[47.05,47.50,47.00,47.05]},{ x:'03/06/2024',y:[47.05,47.40,46.85,47.05]},{ x:'03/07/2024',y:[47.05,47.10,46.70,46.70]},{ x:'03/08/2024',y:[46.50,46.70,45.70,45.70]},{ x:'03/11/2024',y:[45.70,46.40,45.70,46.20]},{ x:'03/12/2024',y:[46.40,47.35,46.40,46.90]},{ x:'03/13/2024',y:[46.90,47.80,46.90,47.60]},{ x:'03/14/2024',y:[47.60,49.35,47.60,48.50]},{ x:'03/15/2024',y:[48.50,49.20,48.40,49.15]},{ x:'03/18/2024',y:[49.10,51.00,48.90,51.00]},{ x:'03/19/2024',y:[51.10,51.70,50.60,51.20]},{ x:'03/20/2024',y:[51.00,51.10,49.55,50.10]},{ x:'03/21/2024',y:[50.10,51.40,50.10,51.40]},{ x:'03/22/2024',y:[51.40,52.50,51.30,52.40]},{ x:'03/25/2024',y:[52.50,56.00,52.50,56.00]},{ x:'03/26/2024',y:[56.90,61.60,56.30,61.60]},{ x:'03/27/2024',y:[62.00,65.90,60.10,65.00]},{ x:'03/28/2024',y:[65.40,65.90,60.40,61.10]},{ x:'03/29/2024',y:[61.80,63.10,60.00,61.10]},{ x:'04/01/2024',y:[61.10,62.10,60.40,60.80]},{ x:'04/02/2024',y:[60.90,61.10,59.20,59.80]},{ x:'04/03/2024',y:[59.40,59.40,57.20,57.30]},{ x:'04/08/2024',y:[57.40,58.60,57.30,58.20]},{ x:'04/09/2024',y:[58.20,60.50,58.00,60.50]},{ x:'04/10/2024',y:[60.30,61.10,59.40,60.10]},{ x:'04/11/2024',y:[60.10,61.40,60.10,60.10]},{ x:'04/12/2024',y:[60.10,66.10,60.10,66.10]},{ x:'04/15/2024',y:[68.50,72.30,67.00,70.90]},{ x:'04/16/2024',y:[69.80,70.80,67.10,69.70]},{ x:'04/17/2024',y:[69.80,74.90,69.30,72.60]},{ x:'04/18/2024',y:[73.00,74.50,71.00,73.80]},{ x:'04/19/2024',y:[73.10,74.00,69.10,73.00]},{ x:'04/22/2024',y:[72.30,73.30,68.50,69.10]},{ x:'04/23/2024',y:[68.80,69.70,67.20,68.50]},{ x:'04/24/2024',y:[68.70,69.30,67.70,69.20]},{ x:'04/25/2024',y:[69.10,69.70,67.30,68.00]},{ x:'04/26/2024',y:[68.00,68.40,67.10,68.00]},{ x:'04/29/2024',y:[69.00,69.40,68.00,68.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2704 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());