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:[43.90,45.20,43.90,44.35]},{ x:'01/23/2024',y:[44.35,44.35,43.50,44.00]},{ x:'01/24/2024',y:[44.20,44.45,43.25,43.25]},{ x:'01/25/2024',y:[43.35,44.20,43.00,43.00]},{ x:'01/26/2024',y:[42.80,43.20,42.20,42.50]},{ x:'01/29/2024',y:[42.20,42.85,42.10,42.50]},{ x:'01/30/2024',y:[42.75,43.15,42.30,42.30]},{ x:'01/31/2024',y:[42.15,42.20,41.60,41.65]},{ x:'02/01/2024',y:[41.65,42.10,41.50,41.50]},{ x:'02/02/2024',y:[43.00,44.95,42.65,44.65]},{ x:'02/05/2024',y:[44.80,45.30,43.85,44.30]},{ x:'02/15/2024',y:[44.60,47.55,44.10,47.20]},{ x:'02/16/2024',y:[47.50,47.70,46.70,46.90]},{ x:'02/19/2024',y:[46.60,47.40,46.25,46.40]},{ x:'02/20/2024',y:[46.40,46.70,45.50,46.15]},{ x:'02/21/2024',y:[45.80,47.00,45.80,46.35]},{ x:'02/22/2024',y:[47.50,48.35,46.50,47.80]},{ x:'02/23/2024',y:[47.85,49.15,46.05,46.35]},{ x:'02/26/2024',y:[46.05,46.50,45.60,45.65]},{ x:'02/27/2024',y:[45.95,46.15,44.50,44.75]},{ x:'02/29/2024',y:[44.75,45.80,44.70,45.40]},{ x:'03/01/2024',y:[46.10,49.90,45.90,49.90]},{ x:'03/04/2024',y:[52.40,54.80,52.30,54.80]},{ x:'03/05/2024',y:[55.60,60.20,54.00,60.20]},{ x:'03/06/2024',y:[60.90,66.20,59.20,64.20]},{ x:'03/07/2024',y:[64.70,66.50,62.30,64.20]},{ x:'03/08/2024',y:[65.10,65.30,60.70,61.90]},{ x:'03/11/2024',y:[60.50,62.30,60.10,61.20]},{ x:'03/12/2024',y:[61.20,64.30,59.00,59.00]},{ x:'03/13/2024',y:[57.80,57.80,53.10,53.10]},{ x:'03/14/2024',y:[53.00,53.00,49.00,49.10]},{ x:'03/15/2024',y:[49.55,50.00,48.00,48.20]},{ x:'03/18/2024',y:[49.05,51.30,49.00,51.00]},{ x:'03/19/2024',y:[50.80,51.30,50.30,51.10]},{ x:'03/20/2024',y:[51.70,52.00,49.90,49.90]},{ x:'03/21/2024',y:[51.40,54.00,50.90,53.50]},{ x:'03/22/2024',y:[53.70,56.40,53.70,56.20]},{ x:'03/25/2024',y:[57.00,57.40,55.50,56.50]},{ x:'03/26/2024',y:[57.00,57.00,52.50,53.40]},{ x:'03/27/2024',y:[53.80,57.80,50.50,53.30]},{ x:'03/28/2024',y:[53.40,58.60,52.50,58.60]},{ x:'03/29/2024',y:[61.50,64.00,59.50,61.30]},{ x:'04/01/2024',y:[63.50,64.90,61.60,61.80]},{ x:'04/02/2024',y:[62.20,62.70,59.80,60.50]},{ x:'04/03/2024',y:[60.30,66.20,59.60,63.90]},{ x:'04/08/2024',y:[64.90,70.20,64.90,70.20]},{ x:'04/09/2024',y:[74.10,75.00,67.00,67.00]},{ x:'04/10/2024',y:[69.80,73.70,67.80,73.70]},{ x:'04/11/2024',y:[74.60,80.10,72.20,72.30]},{ x:'04/12/2024',y:[73.10,78.60,73.10,74.30]},{ x:'04/15/2024',y:[75.00,77.20,72.00,72.00]},{ x:'04/16/2024',y:[70.60,71.70,67.00,69.60]},{ x:'04/17/2024',y:[71.50,74.00,70.20,72.40]},{ x:'04/18/2024',y:[71.00,78.50,70.60,75.40]},{ x:'04/19/2024',y:[74.00,76.70,70.00,74.00]},{ x:'04/22/2024',y:[72.70,73.40,67.60,67.80]},{ x:'04/23/2024',y:[70.30,72.30,66.80,68.60]},{ x:'04/24/2024',y:[71.50,75.40,71.20,75.40]},{ x:'04/25/2024',y:[77.30,77.50,73.10,73.40]},{ x:'04/26/2024',y:[75.60,77.20,72.10,72.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3013 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());