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:'11/28/2022',y:[31.30,31.30,30.25,31.00]},{ x:'11/29/2022',y:[31.00,32.50,30.00,31.25]},{ x:'11/30/2022',y:[31.55,31.80,30.90,31.30]},{ x:'12/01/2022',y:[31.70,32.00,30.90,30.95]},{ x:'12/02/2022',y:[31.10,33.70,31.10,31.85]},{ x:'12/05/2022',y:[32.00,32.70,31.80,31.95]},{ x:'12/06/2022',y:[32.00,32.00,30.60,30.60]},{ x:'12/07/2022',y:[30.55,30.90,29.40,30.70]},{ x:'12/08/2022',y:[30.70,32.05,30.60,31.30]},{ x:'12/09/2022',y:[31.50,31.95,30.90,30.95]},{ x:'12/12/2022',y:[30.75,30.75,29.95,29.95]},{ x:'12/13/2022',y:[30.10,30.25,28.05,28.05]},{ x:'12/14/2022',y:[28.30,28.95,28.10,28.40]},{ x:'12/15/2022',y:[28.40,29.40,28.40,28.40]},{ x:'12/16/2022',y:[28.30,30.65,28.05,28.80]},{ x:'12/19/2022',y:[28.80,28.80,28.40,28.50]},{ x:'12/20/2022',y:[28.70,28.75,28.10,28.15]},{ x:'12/21/2022',y:[28.10,29.15,28.10,28.90]},{ x:'12/22/2022',y:[29.35,29.35,28.65,29.10]},{ x:'12/23/2022',y:[29.10,30.35,28.70,30.10]},{ 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]} ] }], 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());