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/20/2023',y:[14.16,14.29,14.16,14.26]},{ x:'02/21/2023',y:[14.26,14.33,14.24,14.31]},{ x:'02/22/2023',y:[14.23,14.23,14.12,14.20]},{ x:'02/23/2023',y:[14.24,14.40,14.24,14.35]},{ x:'02/24/2023',y:[14.36,14.42,14.27,14.27]},{ x:'03/01/2023',y:[14.25,14.29,14.08,14.27]},{ x:'03/02/2023',y:[14.27,14.28,14.15,14.25]},{ x:'03/03/2023',y:[14.29,14.39,14.29,14.32]},{ x:'03/06/2023',y:[14.41,14.55,14.41,14.48]},{ x:'03/07/2023',y:[14.48,14.64,14.46,14.61]},{ x:'03/08/2023',y:[14.49,14.59,14.48,14.58]},{ x:'03/09/2023',y:[14.63,14.63,14.53,14.54]},{ x:'03/10/2023',y:[14.29,14.37,14.26,14.29]},{ x:'03/13/2023',y:[14.29,14.38,14.17,14.36]},{ x:'03/14/2023',y:[14.27,14.30,14.19,14.22]},{ x:'03/15/2023',y:[14.30,14.44,14.30,14.32]},{ x:'03/16/2023',y:[14.19,14.19,14.03,14.09]},{ x:'03/17/2023',y:[14.11,14.25,14.11,14.25]},{ x:'03/20/2023',y:[14.25,14.28,14.21,14.25]},{ x:'03/21/2023',y:[14.29,14.35,14.27,14.28]},{ x:'03/22/2023',y:[14.30,14.46,14.30,14.44]},{ x:'03/23/2023',y:[14.44,14.58,14.43,14.52]},{ x:'03/24/2023',y:[14.61,14.65,14.55,14.64]},{ x:'03/27/2023',y:[14.63,14.65,14.57,14.59]},{ x:'03/28/2023',y:[14.56,14.57,14.41,14.43]},{ x:'03/29/2023',y:[14.43,14.50,14.38,14.45]},{ x:'03/30/2023',y:[14.51,14.58,14.50,14.54]},{ x:'03/31/2023',y:[14.57,14.65,14.55,14.55]},{ x:'04/06/2023',y:[14.52,14.52,14.38,14.48]},{ x:'04/07/2023',y:[14.50,14.56,14.49,14.51]},{ x:'04/10/2023',y:[14.52,14.63,14.52,14.61]},{ x:'04/11/2023',y:[14.61,14.73,14.61,14.71]},{ x:'04/12/2023',y:[14.73,14.79,14.72,14.78]},{ x:'04/13/2023',y:[14.78,14.78,14.69,14.70]},{ x:'04/14/2023',y:[14.73,14.83,14.73,14.80]},{ x:'04/17/2023',y:[14.80,14.81,14.73,14.80]},{ x:'04/18/2023',y:[14.80,14.80,14.67,14.70]},{ x:'04/19/2023',y:[14.70,14.73,14.61,14.62]},{ x:'04/20/2023',y:[14.62,14.62,14.50,14.56]},{ x:'04/21/2023',y:[14.54,14.63,14.45,14.48]},{ x:'04/24/2023',y:[14.48,14.55,14.44,14.53]},{ x:'04/25/2023',y:[14.53,14.53,14.21,14.25]},{ x:'04/26/2023',y:[14.19,14.27,14.17,14.25]},{ x:'04/27/2023',y:[14.25,14.35,14.20,14.30]},{ x:'04/28/2023',y:[14.37,14.47,14.37,14.40]},{ x:'05/02/2023',y:[14.41,14.60,14.41,14.59]},{ x:'05/03/2023',y:[14.59,14.59,14.45,14.51]},{ x:'05/04/2023',y:[14.50,14.57,14.44,14.56]},{ x:'05/05/2023',y:[14.56,14.63,14.52,14.55]},{ x:'05/08/2023',y:[14.56,14.67,14.56,14.64]},{ x:'05/09/2023',y:[14.62,14.64,14.54,14.58]},{ x:'05/10/2023',y:[14.58,14.58,14.45,14.52]},{ x:'05/11/2023',y:[14.53,14.53,14.38,14.39]},{ x:'05/12/2023',y:[14.38,14.41,14.26,14.37]},{ x:'05/15/2023',y:[14.37,14.37,14.28,14.36]},{ x:'05/16/2023',y:[14.39,14.51,14.39,14.49]},{ x:'05/17/2023',y:[14.49,14.70,14.49,14.68]},{ x:'05/18/2023',y:[14.70,14.88,14.70,14.84]},{ x:'05/19/2023',y:[14.88,14.91,14.85,14.89]},{ x:'05/22/2023',y:[14.82,14.95,14.82,14.92]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00896 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());