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/30/2023',y:[26.10,26.10,25.80,26.00]},{ x:'01/31/2023',y:[26.05,26.30,26.00,26.10]},{ x:'02/01/2023',y:[26.10,26.20,25.90,25.95]},{ x:'02/02/2023',y:[26.00,26.15,25.95,26.00]},{ x:'02/03/2023',y:[26.05,26.45,26.00,26.35]},{ x:'02/06/2023',y:[26.35,26.95,26.30,26.60]},{ x:'02/07/2023',y:[26.75,27.05,26.60,26.90]},{ x:'02/08/2023',y:[27.20,29.55,27.20,29.55]},{ x:'02/09/2023',y:[32.50,32.50,32.50,32.50]},{ x:'02/10/2023',y:[35.75,35.75,32.70,34.70]},{ x:'02/13/2023',y:[34.45,38.15,34.20,38.15]},{ x:'02/14/2023',y:[39.40,41.95,39.00,39.50]},{ x:'02/15/2023',y:[39.40,40.65,38.70,40.60]},{ x:'02/16/2023',y:[40.80,41.80,40.00,41.25]},{ x:'02/17/2023',y:[40.80,43.00,40.80,43.00]},{ x:'02/20/2023',y:[44.20,46.55,43.20,45.00]},{ x:'02/21/2023',y:[45.10,45.80,42.00,43.20]},{ x:'02/22/2023',y:[43.20,44.20,42.00,44.00]},{ x:'02/23/2023',y:[45.30,45.30,43.50,43.90]},{ x:'02/24/2023',y:[44.70,45.60,44.00,45.40]},{ x:'03/01/2023',y:[46.10,49.90,46.00,49.90]},{ x:'03/02/2023',y:[49.90,50.80,48.00,50.00]},{ x:'03/03/2023',y:[50.50,50.80,48.80,49.00]},{ x:'03/06/2023',y:[50.40,52.70,50.00,51.00]},{ x:'03/07/2023',y:[51.00,53.00,50.40,52.00]},{ x:'03/08/2023',y:[52.00,57.20,49.50,57.20]},{ x:'03/09/2023',y:[60.00,62.90,59.90,62.90]},{ x:'03/10/2023',y:[63.10,66.90,57.20,60.00]},{ x:'03/13/2023',y:[59.50,63.80,57.20,61.40]},{ x:'03/14/2023',y:[60.20,63.50,59.00,60.20]},{ x:'03/15/2023',y:[61.70,62.90,58.00,59.30]},{ x:'03/16/2023',y:[58.00,59.70,54.40,54.40]},{ x:'03/17/2023',y:[56.00,59.80,55.80,59.80]},{ x:'03/20/2023',y:[64.80,65.70,62.00,65.70]},{ x:'03/21/2023',y:[68.80,71.50,66.30,68.70]},{ x:'03/22/2023',y:[69.70,72.20,68.70,70.00]},{ x:'03/23/2023',y:[70.10,71.10,68.20,69.60]},{ x:'03/24/2023',y:[69.90,70.60,67.00,68.60]},{ x:'03/27/2023',y:[69.50,70.90,67.50,68.80]},{ x:'03/28/2023',y:[68.20,68.50,65.50,65.80]},{ x:'03/29/2023',y:[66.80,68.20,66.10,67.90]},{ x:'03/30/2023',y:[67.90,68.40,66.70,68.10]},{ x:'03/31/2023',y:[68.20,68.70,66.50,68.30]},{ x:'04/06/2023',y:[67.10,68.20,65.20,67.60]},{ x:'04/07/2023',y:[68.00,69.10,66.50,67.00]},{ x:'04/10/2023',y:[67.80,68.80,66.90,67.70]},{ x:'04/11/2023',y:[68.70,68.70,66.30,66.40]},{ x:'04/12/2023',y:[67.00,68.00,66.20,67.30]},{ x:'04/13/2023',y:[67.30,67.50,65.20,65.40]},{ x:'04/14/2023',y:[66.30,71.90,65.70,71.90]},{ x:'04/17/2023',y:[75.50,79.00,73.50,79.00]},{ x:'04/18/2023',y:[83.00,84.00,76.50,77.10]},{ x:'04/19/2023',y:[79.50,79.80,76.20,77.70]},{ x:'04/20/2023',y:[78.00,79.90,72.40,73.60]},{ x:'04/21/2023',y:[73.80,73.90,68.10,69.10]},{ x:'04/24/2023',y:[69.10,75.00,67.40,71.50]},{ x:'04/25/2023',y:[70.30,71.30,67.50,68.80]},{ x:'04/26/2023',y:[68.30,72.40,67.10,69.80]},{ x:'04/27/2023',y:[69.00,70.60,68.00,69.40]},{ x:'04/28/2023',y:[71.00,76.00,70.00,73.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2453 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());