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:[58.50,59.00,58.30,58.30]},{ x:'01/23/2024',y:[58.30,58.70,58.00,58.00]},{ x:'01/24/2024',y:[57.90,58.50,57.90,58.30]},{ x:'01/25/2024',y:[58.50,58.50,57.90,58.00]},{ x:'01/26/2024',y:[58.00,59.30,58.00,59.10]},{ x:'01/29/2024',y:[58.90,59.70,58.80,59.50]},{ x:'01/30/2024',y:[59.90,60.00,59.50,59.90]},{ x:'01/31/2024',y:[59.90,62.40,59.60,62.10]},{ x:'02/01/2024',y:[62.10,63.20,60.10,60.70]},{ x:'02/02/2024',y:[61.60,61.60,59.10,59.50]},{ x:'02/05/2024',y:[59.80,59.80,59.20,59.30]},{ x:'02/15/2024',y:[58.30,59.30,58.30,59.00]},{ x:'02/16/2024',y:[57.90,58.70,57.90,58.60]},{ x:'02/19/2024',y:[58.50,59.90,58.50,59.90]},{ x:'02/20/2024',y:[59.90,60.10,59.30,59.80]},{ x:'02/21/2024',y:[60.00,60.10,59.30,59.50]},{ x:'02/22/2024',y:[59.50,59.80,59.30,59.30]},{ x:'02/23/2024',y:[59.40,60.60,59.20,59.90]},{ x:'02/26/2024',y:[60.00,61.20,60.00,60.30]},{ x:'02/27/2024',y:[61.00,61.00,59.90,61.00]},{ x:'02/29/2024',y:[61.90,64.20,61.60,62.70]},{ x:'03/01/2024',y:[63.50,67.50,63.30,65.90]},{ x:'03/04/2024',y:[67.90,68.00,66.20,66.90]},{ x:'03/05/2024',y:[66.90,67.00,65.40,65.70]},{ x:'03/06/2024',y:[66.30,68.80,66.00,66.20]},{ x:'03/07/2024',y:[67.00,67.10,65.00,65.20]},{ x:'03/08/2024',y:[68.80,68.80,66.40,68.50]},{ x:'03/11/2024',y:[71.00,75.00,70.70,71.90]},{ x:'03/12/2024',y:[73.00,75.00,72.20,74.70]},{ x:'03/13/2024',y:[74.20,74.20,69.90,71.70]},{ x:'03/14/2024',y:[72.00,72.00,69.70,69.90]},{ x:'03/15/2024',y:[69.30,70.50,68.10,68.10]},{ x:'03/18/2024',y:[69.50,73.40,68.60,72.40]},{ x:'03/19/2024',y:[72.40,73.90,71.60,72.40]},{ x:'03/20/2024',y:[73.30,73.30,71.40,71.50]},{ x:'03/21/2024',y:[72.40,74.40,72.00,73.90]},{ x:'03/22/2024',y:[74.50,74.60,72.50,72.50]},{ x:'03/25/2024',y:[72.70,72.70,71.70,72.70]},{ x:'03/26/2024',y:[72.80,74.60,70.70,72.00]},{ x:'03/27/2024',y:[72.00,74.30,71.80,74.20]},{ x:'03/28/2024',y:[74.90,75.50,73.10,75.10]},{ x:'03/29/2024',y:[75.90,77.20,74.70,76.80]},{ x:'04/01/2024',y:[77.20,77.20,74.20,74.50]},{ x:'04/02/2024',y:[73.60,73.90,71.90,73.40]},{ x:'04/03/2024',y:[73.90,74.00,73.00,73.50]},{ x:'04/08/2024',y:[72.70,74.00,72.60,73.20]},{ x:'04/09/2024',y:[73.90,75.00,73.00,74.30]},{ x:'04/10/2024',y:[75.30,78.60,75.00,78.40]},{ x:'04/11/2024',y:[77.60,77.80,74.20,74.40]},{ x:'04/12/2024',y:[74.50,78.50,74.30,77.00]},{ x:'04/15/2024',y:[76.90,78.80,76.20,77.10]},{ x:'04/16/2024',y:[77.20,77.30,74.90,76.40]},{ x:'04/17/2024',y:[77.00,83.10,77.00,83.00]},{ x:'04/18/2024',y:[85.00,91.30,84.20,91.30]},{ x:'04/19/2024',y:[95.50,97.50,85.20,89.50]},{ x:'04/22/2024',y:[92.20,92.90,80.60,81.00]},{ x:'04/23/2024',y:[82.60,84.30,78.60,79.50]},{ x:'04/24/2024',y:[79.40,81.20,78.90,80.00]},{ x:'04/25/2024',y:[80.00,80.20,78.70,79.00]},{ x:'04/26/2024',y:[79.80,81.60,78.50,78.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1535 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());