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:[35.16,35.16,35.06,35.06]},{ x:'02/24/2023',y:[35.14,35.19,35.14,35.19]},{ x:'03/01/2023',y:[35.33,35.33,35.31,35.33]},{ x:'03/02/2023',y:[35.25,35.33,35.25,35.33]},{ x:'03/03/2023',y:[35.31,35.34,35.25,35.33]},{ x:'03/06/2023',y:[35.29,35.30,35.26,35.26]},{ x:'03/07/2023',y:[35.30,35.34,35.28,35.28]},{ x:'03/08/2023',y:[35.44,35.44,35.38,35.41]},{ x:'03/09/2023',y:[35.48,35.50,35.48,35.48]},{ x:'03/10/2023',y:[35.64,35.66,35.63,35.66]},{ x:'03/13/2023',y:[35.66,35.66,35.54,35.54]},{ x:'03/14/2023',y:[35.48,35.49,35.43,35.43]},{ x:'03/15/2023',y:[35.47,35.47,35.46,35.46]},{ x:'03/16/2023',y:[35.60,35.66,35.60,35.66]},{ x:'03/17/2023',y:[35.53,35.53,35.53,35.53]},{ x:'03/20/2023',y:[35.53,35.62,35.53,35.62]},{ x:'03/21/2023',y:[35.60,35.64,35.60,35.61]},{ x:'03/22/2023',y:[35.53,35.54,35.53,35.54]},{ x:'03/23/2023',y:[35.40,35.43,35.40,35.43]},{ x:'03/24/2023',y:[35.42,35.43,35.41,35.43]},{ x:'03/27/2023',y:[35.52,35.52,35.46,35.46]},{ x:'03/28/2023',y:[35.38,35.41,35.38,35.40]},{ x:'03/29/2023',y:[35.41,35.43,35.41,35.42]},{ x:'03/30/2023',y:[35.51,35.51,35.51,35.51]},{ x:'03/31/2023',y:[35.47,35.47,35.47,35.47]},{ x:'04/06/2023',y:[35.72,35.73,35.72,35.73]},{ x:'04/07/2023',y:[35.65,35.70,35.65,35.67]},{ x:'04/10/2023',y:[35.64,35.64,35.64,35.64]},{ x:'04/11/2023',y:[35.69,35.72,35.69,35.69]},{ x:'04/12/2023',y:[35.70,35.70,35.70,35.70]},{ x:'04/13/2023',y:[35.72,35.73,35.72,35.72]},{ x:'04/14/2023',y:[35.63,35.69,35.63,35.65]},{ x:'04/17/2023',y:[35.68,35.75,35.68,35.71]},{ x:'04/18/2023',y:[35.74,35.74,35.69,35.69]},{ x:'04/19/2023',y:[35.66,35.72,35.66,35.70]},{ x:'04/20/2023',y:[35.85,35.86,35.83,35.86]},{ x:'04/21/2023',y:[35.48,35.53,35.47,35.53]},{ x:'04/24/2023',y:[35.53,35.54,35.53,35.53]},{ x:'04/25/2023',y:[35.53,35.53,35.52,35.52]},{ x:'04/26/2023',y:[35.63,35.63,35.61,35.61]},{ x:'04/27/2023',y:[35.63,35.63,35.60,35.60]},{ x:'04/28/2023',y:[35.58,35.61,35.58,35.61]},{ x:'05/02/2023',y:[35.63,35.68,35.63,35.63]},{ x:'05/03/2023',y:[35.67,35.68,35.66,35.66]},{ x:'05/04/2023',y:[35.66,35.66,35.66,35.66]},{ x:'05/05/2023',y:[35.52,35.56,35.52,35.56]},{ x:'05/08/2023',y:[35.58,35.60,35.58,35.60]},{ x:'05/09/2023',y:[35.65,35.66,35.62,35.62]},{ x:'05/10/2023',y:[35.60,35.67,35.60,35.65]},{ x:'05/11/2023',y:[35.67,35.69,35.67,35.67]},{ x:'05/12/2023',y:[35.71,35.72,35.71,35.72]},{ x:'05/15/2023',y:[35.80,35.80,35.78,35.78]},{ x:'05/16/2023',y:[35.82,35.82,35.76,35.76]},{ x:'05/17/2023',y:[35.80,35.80,35.80,35.80]},{ x:'05/18/2023',y:[35.73,35.73,35.73,35.73]},{ x:'05/19/2023',y:[35.65,35.70,35.65,35.67]},{ x:'05/22/2023',y:[35.58,35.58,35.58,35.58]},{ x:'05/23/2023',y:[35.62,35.62,35.60,35.60]},{ x:'05/24/2023',y:[35.72,35.72,35.68,35.71]},{ x:'05/25/2023',y:[35.68,35.68,35.66,35.66]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00849b 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());