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/19/2022',y:[26.90,26.95,26.30,26.70]},{ x:'12/20/2022',y:[26.75,27.20,25.30,26.05]},{ x:'12/21/2022',y:[26.50,26.50,24.60,25.70]},{ x:'12/22/2022',y:[25.40,25.85,24.40,25.20]},{ x:'12/23/2022',y:[25.10,25.40,24.20,24.65]},{ x:'12/26/2022',y:[24.85,24.85,23.90,24.25]},{ x:'12/27/2022',y:[24.80,24.80,23.20,23.85]},{ x:'12/28/2022',y:[24.00,24.00,23.30,24.00]},{ x:'12/29/2022',y:[23.95,24.95,23.95,24.95]},{ x:'12/30/2022',y:[26.00,26.00,24.85,25.50]},{ x:'01/03/2023',y:[25.35,25.50,24.60,25.35]},{ x:'01/04/2023',y:[25.30,25.50,24.50,24.70]},{ x:'01/05/2023',y:[24.95,26.35,24.60,25.30]},{ x:'01/06/2023',y:[24.40,25.10,24.35,24.95]},{ x:'01/09/2023',y:[25.00,25.60,24.20,24.50]},{ x:'01/10/2023',y:[24.40,25.20,24.40,24.70]},{ x:'01/11/2023',y:[24.90,25.00,24.20,24.85]},{ x:'01/12/2023',y:[24.75,25.85,24.70,25.70]},{ x:'01/13/2023',y:[25.50,25.80,24.90,25.50]},{ x:'01/16/2023',y:[25.30,25.50,23.75,25.40]},{ x:'01/17/2023',y:[25.00,26.50,25.00,26.50]},{ x:'01/30/2023',y:[26.50,27.00,26.50,26.90]},{ x:'01/31/2023',y:[26.90,26.90,26.40,26.70]},{ x:'02/01/2023',y:[26.95,27.00,26.40,26.40]},{ x:'02/02/2023',y:[26.35,26.50,25.20,26.50]},{ x:'02/03/2023',y:[25.90,26.90,25.85,26.30]},{ x:'02/06/2023',y:[26.00,26.40,25.90,26.30]},{ x:'02/07/2023',y:[26.20,26.40,25.80,26.00]},{ x:'02/08/2023',y:[25.95,26.00,25.70,25.90]},{ x:'02/09/2023',y:[28.45,28.45,27.60,28.45]},{ x:'02/10/2023',y:[28.65,29.00,27.65,28.30]},{ x:'02/13/2023',y:[28.25,29.45,27.15,29.45]},{ x:'02/14/2023',y:[30.50,32.35,30.30,32.35]},{ x:'02/15/2023',y:[33.90,35.50,33.80,35.10]},{ x:'02/16/2023',y:[34.50,35.25,34.15,34.90]},{ x:'02/17/2023',y:[35.90,36.50,34.70,36.10]},{ x:'02/20/2023',y:[36.55,36.70,34.70,34.80]},{ x:'02/21/2023',y:[35.05,35.35,34.40,35.05]},{ x:'02/22/2023',y:[34.10,34.90,34.10,34.55]},{ x:'02/23/2023',y:[34.60,38.00,34.60,38.00]},{ x:'02/24/2023',y:[37.65,37.65,35.30,36.90]},{ x:'03/01/2023',y:[36.05,36.45,35.50,35.85]},{ x:'03/02/2023',y:[35.85,36.30,34.60,35.30]},{ x:'03/03/2023',y:[35.50,36.00,34.65,34.90]},{ x:'03/06/2023',y:[34.20,35.10,33.05,34.85]},{ x:'03/07/2023',y:[33.50,34.75,33.10,34.25]},{ x:'03/08/2023',y:[34.25,34.40,33.55,33.90]},{ x:'03/09/2023',y:[33.90,33.90,33.50,33.85]},{ x:'03/10/2023',y:[32.30,33.85,32.30,33.15]},{ x:'03/13/2023',y:[33.10,36.45,33.00,36.45]},{ x:'03/14/2023',y:[35.15,36.70,34.80,36.45]},{ x:'03/15/2023',y:[36.75,38.00,34.80,35.95]},{ x:'03/16/2023',y:[35.60,35.80,34.50,34.95]},{ x:'03/17/2023',y:[34.95,35.25,34.80,35.00]},{ x:'03/20/2023',y:[35.40,36.95,35.40,36.45]},{ x:'03/21/2023',y:[36.45,37.20,35.90,36.85]},{ x:'03/22/2023',y:[36.70,38.00,36.40,38.00]},{ x:'03/23/2023',y:[38.00,38.65,36.95,37.95]},{ x:'03/24/2023',y:[38.90,40.00,37.50,39.75]},{ x:'03/27/2023',y:[39.70,40.50,38.60,39.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6101 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());