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:[56.30,56.60,55.80,56.00]},{ x:'01/24/2024',y:[56.30,57.50,56.30,56.80]},{ x:'01/25/2024',y:[56.90,57.00,56.40,56.70]},{ x:'01/26/2024',y:[56.60,57.10,56.50,56.70]},{ x:'01/29/2024',y:[56.70,57.20,56.40,57.20]},{ x:'01/30/2024',y:[56.90,57.30,56.70,56.70]},{ x:'01/31/2024',y:[56.70,57.00,56.20,56.30]},{ x:'02/01/2024',y:[56.30,57.00,56.30,57.00]},{ x:'02/02/2024',y:[57.00,57.10,55.30,55.80]},{ x:'02/05/2024',y:[55.40,56.00,55.00,55.90]},{ x:'02/15/2024',y:[55.90,56.30,55.40,56.20]},{ x:'02/16/2024',y:[56.60,58.90,56.60,58.70]},{ x:'02/19/2024',y:[59.40,59.90,59.10,59.20]},{ x:'02/20/2024',y:[59.70,59.80,58.70,58.90]},{ x:'02/21/2024',y:[59.00,64.70,59.00,64.70]},{ x:'02/22/2024',y:[66.30,70.40,62.70,68.60]},{ x:'02/23/2024',y:[72.00,75.40,71.50,75.40]},{ x:'02/26/2024',y:[76.00,76.60,73.40,73.60]},{ x:'02/27/2024',y:[73.40,78.00,70.60,76.70]},{ x:'02/29/2024',y:[75.00,79.30,74.40,75.90]},{ x:'03/01/2024',y:[76.50,77.10,74.40,75.00]},{ x:'03/04/2024',y:[77.40,81.20,74.60,76.70]},{ x:'03/05/2024',y:[77.10,84.30,76.50,84.30]},{ x:'03/06/2024',y:[83.90,90.80,83.10,88.50]},{ x:'03/07/2024',y:[88.00,91.50,80.90,81.70]},{ x:'03/08/2024',y:[80.00,81.00,75.20,78.00]},{ x:'03/11/2024',y:[77.30,81.20,76.30,77.10]},{ x:'03/12/2024',y:[77.30,80.70,76.60,78.60]},{ x:'03/13/2024',y:[79.50,80.50,75.50,78.00]},{ x:'03/14/2024',y:[78.00,78.70,75.80,75.90]},{ x:'03/15/2024',y:[75.90,77.20,71.10,71.30]},{ x:'03/18/2024',y:[72.90,74.70,71.60,74.10]},{ x:'03/19/2024',y:[73.80,77.20,73.50,75.80]},{ x:'03/20/2024',y:[75.90,77.50,75.00,75.00]},{ x:'03/21/2024',y:[75.60,77.50,74.60,76.30]},{ x:'03/22/2024',y:[76.20,78.30,76.20,77.10]},{ x:'03/25/2024',y:[77.40,79.60,76.30,78.50]},{ x:'03/26/2024',y:[79.70,80.50,73.30,74.40]},{ x:'03/27/2024',y:[75.10,75.40,73.50,74.00]},{ x:'03/28/2024',y:[73.80,76.70,73.50,74.40]},{ x:'03/29/2024',y:[75.30,77.20,75.20,76.20]},{ x:'04/01/2024',y:[78.50,81.70,78.20,78.40]},{ x:'04/02/2024',y:[78.90,78.90,74.50,74.90]},{ x:'04/03/2024',y:[74.50,74.60,73.60,73.60]},{ x:'04/08/2024',y:[71.90,72.60,71.20,71.90]},{ x:'04/09/2024',y:[72.30,72.40,70.00,70.50]},{ x:'04/10/2024',y:[70.60,71.20,70.20,70.20]},{ x:'04/11/2024',y:[70.30,70.40,68.60,68.90]},{ x:'04/12/2024',y:[68.90,70.00,68.60,68.60]},{ x:'04/15/2024',y:[67.70,68.30,66.20,66.50]},{ x:'04/16/2024',y:[65.90,65.90,63.50,64.00]},{ x:'04/17/2024',y:[64.20,65.30,64.00,64.70]},{ x:'04/18/2024',y:[64.10,64.60,62.90,62.90]},{ x:'04/19/2024',y:[62.00,63.10,58.60,60.60]},{ x:'04/22/2024',y:[62.30,63.90,60.60,60.60]},{ x:'04/23/2024',y:[62.00,62.70,61.10,61.20]},{ x:'04/24/2024',y:[62.50,65.80,62.50,63.80]},{ x:'04/25/2024',y:[63.20,64.00,62.70,62.70]},{ x:'04/26/2024',y:[62.70,63.20,62.30,62.40]},{ x:'04/29/2024',y:[63.10,63.80,62.70,63.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3689 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());