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:'02/13/2023',y:[18.50,18.75,18.50,18.75]},{ x:'02/14/2023',y:[18.75,18.95,18.70,18.85]},{ x:'02/15/2023',y:[19.00,19.10,18.80,18.80]},{ x:'02/16/2023',y:[18.90,19.25,18.90,19.25]},{ x:'02/17/2023',y:[19.35,19.45,19.00,19.10]},{ x:'02/20/2023',y:[19.15,19.25,18.90,19.20]},{ x:'02/21/2023',y:[19.15,19.25,18.95,19.00]},{ x:'02/22/2023',y:[18.95,19.20,18.70,19.15]},{ x:'02/23/2023',y:[19.15,19.25,19.05,19.15]},{ x:'02/24/2023',y:[19.15,19.15,19.00,19.15]},{ x:'03/01/2023',y:[19.10,19.25,19.05,19.20]},{ x:'03/02/2023',y:[19.25,19.50,19.10,19.45]},{ x:'03/03/2023',y:[19.50,19.65,19.50,19.50]},{ x:'03/06/2023',y:[19.65,19.65,19.50,19.55]},{ x:'03/07/2023',y:[19.60,19.80,19.55,19.75]},{ x:'03/08/2023',y:[19.70,20.00,19.70,19.85]},{ x:'03/09/2023',y:[20.00,20.00,19.75,19.85]},{ x:'03/10/2023',y:[21.10,21.80,21.10,21.80]},{ x:'03/13/2023',y:[23.20,23.95,22.60,23.95]},{ x:'03/14/2023',y:[24.00,25.75,23.40,24.25]},{ x:'03/15/2023',y:[24.55,25.70,24.05,24.40]},{ x:'03/16/2023',y:[24.05,24.30,22.80,22.85]},{ x:'03/17/2023',y:[23.50,23.60,22.90,23.00]},{ x:'03/20/2023',y:[23.10,23.90,22.65,23.65]},{ x:'03/21/2023',y:[24.00,26.00,23.80,26.00]},{ x:'03/22/2023',y:[27.25,28.20,26.40,26.65]},{ x:'03/23/2023',y:[26.00,29.30,26.00,29.30]},{ x:'03/24/2023',y:[30.00,30.55,28.10,28.10]},{ x:'03/27/2023',y:[27.80,29.90,27.50,28.55]},{ x:'03/28/2023',y:[28.30,29.35,28.10,28.80]},{ x:'03/29/2023',y:[28.80,30.80,28.80,30.20]},{ x:'03/30/2023',y:[30.20,30.60,29.40,30.00]},{ x:'03/31/2023',y:[30.20,31.10,29.70,29.85]},{ x:'04/06/2023',y:[29.85,30.05,28.35,29.15]},{ x:'04/07/2023',y:[29.35,29.35,28.15,28.15]},{ x:'04/10/2023',y:[28.05,29.25,28.05,29.15]},{ x:'04/11/2023',y:[29.25,30.40,29.05,30.10]},{ x:'04/12/2023',y:[30.10,33.10,30.10,33.10]},{ x:'04/13/2023',y:[33.30,34.25,32.65,33.45]},{ x:'04/14/2023',y:[34.20,34.75,33.00,33.00]},{ x:'04/17/2023',y:[33.00,34.60,32.80,34.00]},{ x:'04/18/2023',y:[34.80,34.90,33.00,33.60]},{ x:'04/19/2023',y:[33.90,34.65,33.75,34.60]},{ x:'04/20/2023',y:[34.80,34.95,31.45,32.60]},{ x:'04/21/2023',y:[33.25,33.25,29.95,29.95]},{ x:'04/24/2023',y:[30.40,30.70,29.15,29.20]},{ x:'04/25/2023',y:[29.50,29.70,28.25,28.50]},{ x:'04/26/2023',y:[28.35,29.30,28.20,29.10]},{ x:'04/27/2023',y:[29.35,29.60,28.55,29.10]},{ x:'04/28/2023',y:[29.50,31.00,29.50,30.15]},{ x:'05/02/2023',y:[31.05,31.05,30.05,30.60]},{ x:'05/03/2023',y:[30.60,30.80,29.85,30.60]},{ x:'05/04/2023',y:[30.40,32.10,30.30,31.85]},{ x:'05/05/2023',y:[31.75,32.10,31.20,31.95]},{ x:'05/08/2023',y:[32.65,32.70,31.60,31.85]},{ x:'05/09/2023',y:[32.80,32.85,30.50,30.50]},{ x:'05/10/2023',y:[32.10,33.55,32.00,33.55]},{ x:'05/11/2023',y:[34.65,35.80,33.00,33.00]},{ x:'05/12/2023',y:[32.30,36.30,32.20,36.30]},{ x:'05/15/2023',y:[37.45,37.80,33.70,33.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6122 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());