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:'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]},{ x:'05/31/2023',y:[9.48,9.48,9.48,9.48]},{ x:'06/01/2023',y:[9.48,9.48,9.01,9.48]},{ x:'06/02/2023',y:[9.43,9.50,9.43,9.43]},{ x:'06/05/2023',y:[9.76,9.76,9.20,9.20]},{ x:'06/06/2023',y:[9.35,9.48,9.35,9.45]},{ x:'06/07/2023',y:[9.20,9.44,9.20,9.44]},{ x:'06/08/2023',y:[9.43,10.20,9.43,9.46]},{ x:'06/09/2023',y:[9.69,9.75,9.69,9.75]},{ x:'06/12/2023',y:[9.45,9.65,9.45,9.65]},{ x:'06/13/2023',y:[9.51,9.51,9.51,9.51]},{ x:'06/14/2023',y:[0.00,0.00,0.00,0.00]},{ x:'06/15/2023',y:[9.70,9.70,9.70,9.70]},{ x:'06/16/2023',y:[9.55,9.67,9.40,9.40]},{ x:'06/19/2023',y:[9.50,9.50,9.50,9.50]},{ x:'06/20/2023',y:[9.51,9.69,9.50,9.50]},{ x:'06/21/2023',y:[9.50,9.50,9.50,9.50]},{ x:'06/26/2023',y:[9.50,9.50,9.45,9.49]},{ x:'06/27/2023',y:[9.46,9.46,9.46,9.46]},{ x:'06/28/2023',y:[0.00,0.00,0.00,0.00]},{ x:'06/29/2023',y:[9.40,9.40,9.40,9.40]},{ x:'06/30/2023',y:[9.40,9.50,9.40,9.50]},{ x:'07/03/2023',y:[9.50,9.50,9.50,9.50]},{ x:'07/04/2023',y:[9.50,9.52,9.50,9.52]},{ x:'07/05/2023',y:[9.56,9.86,9.53,9.76]},{ x:'07/06/2023',y:[9.76,9.99,9.76,9.77]},{ x:'07/07/2023',y:[9.81,9.81,9.08,9.39]},{ x:'07/10/2023',y:[9.39,9.60,9.39,9.60]},{ x:'07/11/2023',y:[9.60,9.60,9.55,9.55]},{ x:'07/12/2023',y:[9.55,9.60,9.50,9.60]},{ x:'07/13/2023',y:[9.59,9.60,9.50,9.50]} ] }], 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());