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/23/2023',y:[14.26,14.50,14.26,14.48]},{ x:'02/24/2023',y:[14.53,14.60,14.53,14.57]},{ x:'03/01/2023',y:[14.57,14.60,14.37,14.59]},{ x:'03/02/2023',y:[14.40,14.41,14.29,14.34]},{ x:'03/03/2023',y:[14.44,14.47,14.42,14.47]},{ x:'03/06/2023',y:[14.72,14.84,14.72,14.79]},{ x:'03/07/2023',y:[14.76,14.76,14.69,14.75]},{ x:'03/08/2023',y:[14.57,14.58,14.51,14.53]},{ x:'03/09/2023',y:[14.60,14.63,14.59,14.61]},{ x:'03/10/2023',y:[14.28,14.28,14.17,14.19]},{ x:'03/13/2023',y:[14.18,14.24,14.13,14.24]},{ x:'03/14/2023',y:[14.07,14.07,13.96,13.97]},{ x:'03/15/2023',y:[14.20,14.37,14.20,14.32]},{ x:'03/16/2023',y:[14.25,14.25,14.19,14.21]},{ x:'03/17/2023',y:[14.28,14.54,14.28,14.54]},{ x:'03/20/2023',y:[14.50,14.50,14.37,14.40]},{ x:'03/21/2023',y:[14.50,14.54,14.49,14.51]},{ x:'03/22/2023',y:[14.77,14.86,14.77,14.85]},{ x:'03/23/2023',y:[14.80,14.86,14.78,14.85]},{ x:'03/24/2023',y:[14.87,14.92,14.85,14.90]},{ x:'03/27/2023',y:[14.89,14.89,14.78,14.80]},{ x:'03/28/2023',y:[14.76,14.78,14.71,14.72]},{ x:'03/29/2023',y:[14.72,14.75,14.71,14.75]},{ x:'03/30/2023',y:[14.89,14.97,14.89,14.95]},{ x:'03/31/2023',y:[15.15,15.17,15.13,15.15]},{ x:'04/06/2023',y:[14.87,14.87,14.77,14.78]},{ x:'04/07/2023',y:[14.79,14.80,14.76,14.77]},{ x:'04/10/2023',y:[14.76,14.77,14.72,14.72]},{ x:'04/11/2023',y:[14.77,14.92,14.77,14.89]},{ x:'04/12/2023',y:[14.89,14.89,14.83,14.84]},{ x:'04/13/2023',y:[14.73,14.73,14.65,14.67]},{ x:'04/14/2023',y:[14.70,14.76,14.70,14.70]},{ x:'04/17/2023',y:[14.73,14.79,14.73,14.77]},{ x:'04/18/2023',y:[14.84,14.87,14.81,14.82]},{ x:'04/19/2023',y:[14.87,14.89,14.84,14.84]},{ x:'04/20/2023',y:[14.70,14.70,14.64,14.65]},{ x:'04/21/2023',y:[14.50,14.51,14.42,14.42]},{ x:'04/24/2023',y:[14.39,14.39,14.34,14.35]},{ x:'04/25/2023',y:[14.38,14.39,14.28,14.29]},{ x:'04/26/2023',y:[14.24,14.24,14.19,14.21]},{ x:'04/27/2023',y:[14.14,14.17,14.12,14.17]},{ x:'04/28/2023',y:[14.27,14.33,14.27,14.31]},{ x:'05/02/2023',y:[14.53,14.62,14.51,14.62]},{ x:'05/03/2023',y:[14.51,14.51,14.44,14.46]},{ x:'05/04/2023',y:[14.45,14.47,14.41,14.47]},{ x:'05/05/2023',y:[14.46,14.46,14.41,14.42]},{ x:'05/08/2023',y:[14.70,14.77,14.70,14.75]},{ x:'05/09/2023',y:[14.88,14.95,14.88,14.93]},{ x:'05/10/2023',y:[14.93,14.93,14.83,14.85]},{ x:'05/11/2023',y:[14.88,14.90,14.86,14.87]},{ x:'05/12/2023',y:[14.89,14.94,14.89,14.93]},{ x:'05/15/2023',y:[14.78,14.78,14.74,14.76]},{ x:'05/16/2023',y:[14.84,14.90,14.84,14.87]},{ x:'05/17/2023',y:[14.94,15.00,14.94,14.98]},{ x:'05/18/2023',y:[15.12,15.30,15.12,15.29]},{ x:'05/19/2023',y:[15.54,15.70,15.54,15.64]},{ x:'05/22/2023',y:[15.54,15.61,15.54,15.59]},{ x:'05/23/2023',y:[15.74,15.80,15.73,15.77]},{ x:'05/24/2023',y:[15.72,15.72,15.60,15.64]},{ x:'05/25/2023',y:[16.29,16.60,16.29,16.54]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00895 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());