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/17/2023',y:[19.90,20.10,19.80,20.05]},{ x:'01/30/2023',y:[20.35,21.85,20.35,21.15]},{ x:'01/31/2023',y:[21.15,21.20,20.85,21.15]},{ x:'02/01/2023',y:[21.20,21.85,21.00,21.15]},{ x:'02/02/2023',y:[21.15,21.45,21.05,21.20]},{ x:'02/03/2023',y:[21.55,21.60,21.25,21.55]},{ x:'02/06/2023',y:[21.80,22.30,21.45,21.50]},{ x:'02/07/2023',y:[21.60,21.75,21.40,21.45]},{ x:'02/08/2023',y:[21.70,23.00,21.45,22.50]},{ x:'02/09/2023',y:[22.65,22.65,22.30,22.30]},{ x:'02/10/2023',y:[22.30,22.40,21.85,21.85]},{ x:'02/13/2023',y:[21.85,21.85,21.55,21.55]},{ x:'02/14/2023',y:[21.75,21.75,21.40,21.50]},{ x:'02/15/2023',y:[21.55,21.70,21.20,21.40]},{ x:'02/16/2023',y:[21.40,21.65,21.35,21.50]},{ x:'02/17/2023',y:[21.50,21.50,21.15,21.50]},{ x:'02/20/2023',y:[21.50,21.55,21.25,21.35]},{ x:'02/21/2023',y:[21.30,21.50,21.30,21.30]},{ x:'02/22/2023',y:[21.25,21.35,21.20,21.25]},{ x:'02/23/2023',y:[21.30,21.60,21.20,21.45]},{ x:'02/24/2023',y:[21.60,21.60,21.35,21.50]},{ x:'03/01/2023',y:[21.70,21.70,21.30,21.50]},{ x:'03/02/2023',y:[21.60,21.75,21.40,21.45]},{ x:'03/03/2023',y:[21.50,21.50,21.10,21.50]},{ x:'03/06/2023',y:[21.55,21.70,21.40,21.60]},{ x:'03/07/2023',y:[21.60,23.75,21.60,23.75]},{ x:'03/08/2023',y:[24.30,24.45,23.05,23.05]},{ x:'03/09/2023',y:[23.15,23.35,22.60,23.00]},{ x:'03/10/2023',y:[22.80,22.80,22.15,22.45]},{ x:'03/13/2023',y:[22.20,22.20,20.65,21.40]},{ x:'03/14/2023',y:[21.40,21.65,21.30,21.40]},{ x:'03/15/2023',y:[21.65,22.15,21.35,21.40]},{ x:'03/16/2023',y:[21.45,23.20,21.40,21.40]},{ x:'03/17/2023',y:[21.75,22.75,21.65,22.75]},{ x:'03/20/2023',y:[22.75,22.75,22.25,22.25]},{ x:'03/21/2023',y:[22.50,22.60,22.10,22.50]},{ x:'03/22/2023',y:[22.80,22.95,22.55,22.65]},{ x:'03/23/2023',y:[22.60,22.90,22.55,22.80]},{ x:'03/24/2023',y:[23.30,23.90,22.70,22.70]},{ x:'03/27/2023',y:[22.75,22.90,22.40,22.50]},{ x:'03/28/2023',y:[22.90,23.00,22.20,22.45]},{ x:'03/29/2023',y:[22.55,22.80,22.15,22.45]},{ x:'03/30/2023',y:[22.60,24.50,22.60,23.85]},{ x:'03/31/2023',y:[23.85,25.40,23.80,25.35]},{ x:'04/06/2023',y:[25.35,27.50,25.30,27.15]},{ x:'04/07/2023',y:[27.15,28.15,27.00,27.00]},{ x:'04/10/2023',y:[27.00,29.45,26.55,29.10]},{ x:'04/11/2023',y:[29.95,30.50,28.90,29.00]},{ x:'04/12/2023',y:[29.00,30.20,29.00,29.60]},{ x:'04/13/2023',y:[29.60,30.95,29.30,30.80]},{ x:'04/14/2023',y:[30.90,30.90,30.20,30.50]},{ x:'04/17/2023',y:[30.55,32.35,30.55,32.10]},{ x:'04/18/2023',y:[32.20,33.00,32.10,32.35]},{ x:'04/19/2023',y:[32.35,34.00,32.35,33.35]},{ x:'04/20/2023',y:[33.50,33.95,31.75,32.05]},{ x:'04/21/2023',y:[32.40,32.90,30.75,31.10]},{ x:'04/24/2023',y:[31.35,32.40,31.35,32.20]},{ x:'04/25/2023',y:[32.55,32.70,30.15,31.15]},{ x:'04/26/2023',y:[31.15,31.55,30.50,31.05]},{ x:'04/27/2023',y:[31.00,32.05,30.75,31.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3518 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());