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:'03/02/2023',y:[8.98,8.98,8.98,8.98]},{ x:'03/03/2023',y:[8.33,8.33,8.22,8.22]},{ x:'03/06/2023',y:[8.33,8.50,8.33,8.50]},{ x:'03/07/2023',y:[8.50,8.88,8.50,8.88]},{ x:'03/08/2023',y:[8.85,8.85,8.85,8.85]},{ x:'03/09/2023',y:[8.53,9.50,8.53,9.47]},{ x:'03/10/2023',y:[8.55,8.57,8.55,8.57]},{ x:'03/13/2023',y:[8.32,8.50,8.32,8.50]},{ x:'03/14/2023',y:[8.50,8.57,8.50,8.50]},{ x:'03/15/2023',y:[8.51,8.52,8.51,8.52]},{ x:'03/16/2023',y:[8.25,8.57,8.25,8.51]},{ x:'03/17/2023',y:[8.59,8.60,8.50,8.51]},{ x:'03/20/2023',y:[8.50,8.51,8.50,8.51]},{ x:'03/21/2023',y:[8.50,8.50,8.50,8.50]},{ x:'03/22/2023',y:[8.51,9.08,8.51,8.52]},{ x:'03/23/2023',y:[8.52,8.52,8.52,8.52]},{ x:'03/24/2023',y:[8.50,8.68,8.50,8.68]},{ x:'03/27/2023',y:[8.68,8.69,8.55,8.55]},{ x:'03/28/2023',y:[8.60,8.70,8.60,8.70]},{ x:'03/29/2023',y:[8.53,8.70,8.53,8.70]},{ x:'03/30/2023',y:[8.61,9.22,8.61,9.22]},{ x:'03/31/2023',y:[9.49,9.60,9.10,9.10]},{ x:'04/06/2023',y:[9.10,9.95,8.79,9.95]},{ x:'04/07/2023',y:[9.60,9.60,9.50,9.50]},{ x:'04/10/2023',y:[8.63,8.98,8.63,8.98]},{ x:'04/11/2023',y:[9.00,9.30,9.00,9.20]},{ x:'04/12/2023',y:[9.20,9.20,9.15,9.20]},{ x:'04/13/2023',y:[9.21,9.21,9.21,9.21]},{ x:'04/14/2023',y:[9.21,9.51,9.21,9.48]},{ x:'04/17/2023',y:[9.51,9.90,9.51,9.86]},{ x:'04/18/2023',y:[9.98,10.80,9.96,10.75]},{ x:'04/19/2023',y:[10.75,10.90,10.75,10.90]},{ x:'04/20/2023',y:[10.85,11.00,10.85,10.90]},{ x:'04/21/2023',y:[10.50,10.50,10.10,10.20]},{ x:'04/24/2023',y:[10.15,10.15,9.80,9.80]},{ x:'04/25/2023',y:[9.79,9.79,9.79,9.79]},{ x:'04/26/2023',y:[9.69,9.69,9.60,9.60]},{ x:'04/27/2023',y:[9.60,9.60,9.60,9.60]},{ x:'04/28/2023',y:[9.65,9.65,9.65,9.65]},{ x:'05/02/2023',y:[9.64,9.64,9.64,9.64]},{ x:'05/03/2023',y:[9.64,9.64,9.64,9.64]},{ x:'05/04/2023',y:[9.64,9.64,9.64,9.64]},{ x:'05/05/2023',y:[9.99,10.00,9.64,9.64]},{ x:'05/08/2023',y:[9.64,9.64,9.64,9.64]},{ x:'05/09/2023',y:[9.65,9.69,9.65,9.69]},{ x:'05/10/2023',y:[9.69,9.69,8.75,9.68]},{ x:'05/11/2023',y:[9.28,9.28,9.25,9.25]},{ x:'05/12/2023',y:[9.00,9.15,9.00,9.13]},{ x:'05/15/2023',y:[9.00,9.00,9.00,9.00]},{ x:'05/16/2023',y:[9.00,9.00,8.97,9.00]},{ x:'05/17/2023',y:[9.00,9.04,9.00,9.00]},{ x:'05/18/2023',y:[9.00,9.00,9.00,9.00]},{ x:'05/19/2023',y:[8.99,8.99,8.50,8.99]},{ x:'05/22/2023',y:[8.95,9.00,8.95,9.00]},{ x:'05/23/2023',y:[9.02,9.59,9.02,9.59]},{ x:'05/24/2023',y:[9.43,9.65,9.43,9.50]},{ x:'05/25/2023',y:[9.50,9.50,9.50,9.50]},{ x:'05/26/2023',y:[9.65,9.80,9.50,9.50]},{ x:'05/29/2023',y:[9.50,9.50,9.02,9.50]},{ x:'05/30/2023',y:[9.48,9.50,9.48,9.48]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1538 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());