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/27/2023',y:[16.08,16.08,15.79,15.95]},{ x:'03/28/2023',y:[15.95,15.95,15.78,15.84]},{ x:'03/29/2023',y:[15.85,16.40,15.85,16.33]},{ x:'03/30/2023',y:[16.42,16.42,16.19,16.30]},{ x:'03/31/2023',y:[16.38,16.64,16.38,16.48]},{ x:'04/06/2023',y:[16.45,16.45,15.99,16.17]},{ x:'04/07/2023',y:[16.54,16.55,16.54,16.55]},{ x:'04/10/2023',y:[16.55,16.55,16.40,16.46]},{ x:'04/11/2023',y:[16.46,16.56,16.29,16.31]},{ x:'04/12/2023',y:[16.26,16.30,16.25,16.30]},{ x:'04/13/2023',y:[16.08,16.17,15.94,16.15]},{ x:'04/14/2023',y:[16.23,16.33,16.20,16.26]},{ x:'04/17/2023',y:[16.26,16.39,16.26,16.37]},{ x:'04/18/2023',y:[16.37,16.53,16.37,16.43]},{ x:'04/19/2023',y:[16.43,16.43,16.32,16.39]},{ x:'04/20/2023',y:[16.37,16.37,16.30,16.30]},{ x:'04/21/2023',y:[16.06,16.20,16.04,16.05]},{ x:'04/24/2023',y:[16.01,16.05,15.85,15.85]},{ x:'04/25/2023',y:[15.68,15.68,15.45,15.45]},{ x:'04/26/2023',y:[15.38,15.63,15.38,15.61]},{ x:'04/27/2023',y:[15.52,15.58,15.49,15.52]},{ x:'04/28/2023',y:[15.84,15.92,15.71,15.72]},{ x:'05/02/2023',y:[16.09,16.09,15.63,15.70]},{ x:'05/03/2023',y:[15.57,15.57,15.35,15.35]},{ x:'05/04/2023',y:[15.49,15.74,15.49,15.70]},{ x:'05/05/2023',y:[15.81,15.83,15.70,15.76]},{ x:'05/08/2023',y:[15.81,15.96,15.81,15.91]},{ x:'05/09/2023',y:[16.01,16.01,15.85,15.87]},{ x:'05/10/2023',y:[15.62,15.67,15.49,15.56]},{ x:'05/11/2023',y:[15.56,15.62,15.52,15.52]},{ x:'05/12/2023',y:[15.75,15.75,15.52,15.52]},{ x:'05/15/2023',y:[15.38,15.48,15.15,15.45]},{ x:'05/16/2023',y:[15.78,15.88,15.74,15.74]},{ x:'05/17/2023',y:[15.81,15.86,15.73,15.73]},{ x:'05/18/2023',y:[15.63,15.65,15.53,15.63]},{ x:'05/19/2023',y:[15.50,15.50,15.29,15.35]},{ x:'05/22/2023',y:[15.25,15.51,15.25,15.51]},{ x:'05/23/2023',y:[15.54,15.54,15.41,15.44]},{ x:'05/24/2023',y:[15.25,15.27,15.18,15.18]},{ x:'05/25/2023',y:[15.01,15.01,14.73,14.73]},{ x:'05/26/2023',y:[14.70,14.70,14.60,14.60]},{ x:'05/29/2023',y:[14.55,14.73,14.55,14.61]},{ x:'05/30/2023',y:[14.44,14.64,14.43,14.44]},{ x:'05/31/2023',y:[14.40,14.45,14.22,14.22]},{ x:'06/01/2023',y:[14.35,14.54,14.35,14.54]},{ x:'06/02/2023',y:[14.58,14.93,14.58,14.90]},{ x:'06/05/2023',y:[15.10,15.11,14.87,14.87]},{ x:'06/06/2023',y:[14.99,15.19,14.99,15.09]},{ x:'06/07/2023',y:[15.23,15.25,15.17,15.23]},{ x:'06/08/2023',y:[15.07,15.13,15.03,15.13]},{ x:'06/09/2023',y:[15.14,15.31,15.14,15.28]},{ x:'06/12/2023',y:[15.25,15.28,15.20,15.28]},{ x:'06/13/2023',y:[15.23,15.40,15.23,15.36]},{ x:'06/14/2023',y:[15.44,15.58,15.41,15.41]},{ x:'06/15/2023',y:[15.64,15.64,15.51,15.63]},{ x:'06/16/2023',y:[15.84,15.94,15.80,15.94]},{ x:'06/19/2023',y:[15.98,15.98,15.76,15.76]},{ x:'06/20/2023',y:[15.76,15.85,15.63,15.63]},{ x:'06/21/2023',y:[15.55,15.55,15.30,15.31]},{ x:'06/26/2023',y:[15.25,15.25,15.02,15.02]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00703 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());