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:'12/26/2022',y:[30.10,30.65,29.65,29.70]},{ x:'12/27/2022',y:[29.95,31.85,29.75,31.65]},{ x:'12/28/2022',y:[32.80,32.80,30.80,31.10]},{ x:'12/29/2022',y:[30.50,32.20,30.50,31.65]},{ x:'12/30/2022',y:[32.05,32.35,31.50,31.70]},{ x:'01/03/2023',y:[31.70,32.55,31.70,32.10]},{ x:'01/04/2023',y:[32.55,35.25,32.10,34.35]},{ x:'01/05/2023',y:[34.30,37.50,33.85,36.65]},{ x:'01/06/2023',y:[36.60,38.15,35.50,37.50]},{ x:'01/09/2023',y:[37.50,40.80,37.00,39.90]},{ x:'01/10/2023',y:[39.50,41.45,39.40,41.40]},{ x:'01/11/2023',y:[40.20,44.60,40.15,44.60]},{ x:'01/12/2023',y:[44.25,44.95,40.20,40.20]},{ x:'01/13/2023',y:[39.70,43.80,38.70,42.90]},{ x:'01/16/2023',y:[42.00,43.65,41.60,42.05]},{ x:'01/17/2023',y:[42.10,43.30,41.25,41.25]},{ x:'01/30/2023',y:[41.95,45.35,41.55,45.35]},{ x:'01/31/2023',y:[45.80,49.85,45.80,49.85]},{ x:'02/01/2023',y:[54.80,54.80,49.05,49.65]},{ x:'02/02/2023',y:[49.55,54.60,49.20,54.60]},{ x:'02/03/2023',y:[58.50,59.90,52.30,52.50]},{ x:'02/06/2023',y:[52.10,56.50,51.60,54.50]},{ x:'02/07/2023',y:[53.50,55.30,53.20,53.70]},{ x:'02/08/2023',y:[53.20,54.50,53.20,53.50]},{ x:'02/09/2023',y:[53.60,56.90,53.10,53.10]},{ x:'02/10/2023',y:[53.10,53.70,51.20,52.10]},{ x:'02/13/2023',y:[51.70,54.30,51.60,53.30]},{ x:'02/14/2023',y:[53.30,55.00,52.40,52.40]},{ x:'02/15/2023',y:[52.90,54.90,52.00,52.00]},{ x:'02/16/2023',y:[52.50,54.30,52.40,54.10]},{ x:'02/17/2023',y:[54.10,55.60,53.30,55.40]},{ x:'02/20/2023',y:[56.20,60.90,55.10,60.90]},{ x:'02/21/2023',y:[61.80,66.90,61.10,66.90]},{ x:'02/22/2023',y:[68.40,71.00,67.00,67.00]},{ x:'02/23/2023',y:[67.70,73.70,67.70,73.70]},{ x:'02/24/2023',y:[77.00,77.60,71.80,71.80]},{ x:'03/01/2023',y:[71.00,78.90,70.90,75.20]},{ x:'03/02/2023',y:[75.20,81.00,75.20,78.00]},{ x:'03/03/2023',y:[78.10,79.80,74.80,76.30]},{ x:'03/06/2023',y:[77.00,79.50,75.50,78.60]},{ x:'03/07/2023',y:[78.50,82.80,77.50,77.50]},{ x:'03/08/2023',y:[77.70,79.50,77.30,79.50]},{ x:'03/09/2023',y:[79.60,81.90,78.00,78.20]},{ x:'03/10/2023',y:[77.20,79.00,75.60,78.50]},{ x:'03/13/2023',y:[78.50,80.00,74.00,80.00]},{ x:'03/14/2023',y:[78.70,80.00,77.20,77.20]},{ x:'03/15/2023',y:[78.10,80.60,77.80,77.80]},{ x:'03/16/2023',y:[78.00,78.70,73.50,75.30]},{ x:'03/17/2023',y:[77.00,78.90,76.30,78.90]},{ x:'03/20/2023',y:[78.80,86.70,78.30,81.80]},{ x:'03/21/2023',y:[82.50,86.30,78.20,79.30]},{ x:'03/22/2023',y:[82.50,82.50,78.40,79.00]},{ x:'03/23/2023',y:[79.00,79.80,77.50,77.90]},{ x:'03/24/2023',y:[77.90,78.70,77.20,77.50]},{ x:'03/27/2023',y:[78.00,78.20,75.00,75.00]},{ x:'03/28/2023',y:[74.50,74.90,71.50,73.70]},{ x:'03/29/2023',y:[73.30,77.90,73.30,74.80]},{ x:'03/30/2023',y:[74.80,77.80,74.80,77.00]},{ x:'03/31/2023',y:[78.00,79.40,76.20,76.20]},{ x:'04/06/2023',y:[75.60,78.50,75.60,78.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2230 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());