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:'01/22/2024',y:[28.84,28.86,28.78,28.82]},{ x:'01/23/2024',y:[28.78,28.80,28.69,28.69]},{ x:'01/24/2024',y:[28.88,28.92,28.88,28.92]},{ x:'01/25/2024',y:[29.00,29.02,29.00,29.01]},{ x:'01/26/2024',y:[29.01,29.01,28.96,28.96]},{ x:'01/29/2024',y:[29.00,29.00,28.95,28.96]},{ x:'01/30/2024',y:[29.09,29.20,29.09,29.20]},{ x:'01/31/2024',y:[28.91,28.91,28.84,28.84]},{ x:'02/01/2024',y:[28.69,28.72,28.69,28.72]},{ x:'02/02/2024',y:[29.14,29.26,29.14,29.23]},{ x:'02/05/2024',y:[29.72,29.72,29.57,29.57]},{ x:'02/15/2024',y:[29.91,30.00,29.90,29.96]},{ x:'02/16/2024',y:[29.94,30.00,29.93,29.97]},{ x:'02/19/2024',y:[29.85,29.85,29.77,29.78]},{ x:'02/20/2024',y:[29.78,29.80,29.71,29.75]},{ x:'02/21/2024',y:[29.52,29.52,29.40,29.48]},{ x:'02/22/2024',y:[29.73,29.76,29.68,29.76]},{ x:'02/23/2024',y:[30.25,30.25,30.21,30.21]},{ x:'02/26/2024',y:[30.16,30.30,30.12,30.13]},{ x:'02/27/2024',y:[30.22,30.23,30.20,30.20]},{ x:'02/29/2024',y:[30.20,30.20,30.13,30.13]},{ x:'03/01/2024',y:[30.30,30.45,30.30,30.45]},{ x:'03/04/2024',y:[30.94,30.94,30.82,30.90]},{ x:'03/05/2024',y:[30.90,30.90,30.70,30.70]},{ x:'03/06/2024',y:[30.36,30.40,30.36,30.40]},{ x:'03/07/2024',y:[30.42,30.44,30.40,30.41]},{ x:'03/08/2024',y:[30.79,30.83,30.73,30.75]},{ x:'03/11/2024',y:[30.55,30.57,30.40,30.40]},{ x:'03/12/2024',y:[30.43,30.50,30.43,30.50]},{ x:'03/13/2024',y:[30.90,31.00,30.90,30.95]},{ x:'03/14/2024',y:[30.94,30.94,30.85,30.85]},{ x:'03/15/2024',y:[30.91,30.91,30.85,30.85]},{ x:'03/18/2024',y:[30.59,30.64,30.54,30.64]},{ x:'03/19/2024',y:[30.58,30.82,30.58,30.74]},{ x:'03/20/2024',y:[30.77,30.80,30.77,30.80]},{ x:'03/21/2024',y:[31.17,31.28,31.17,31.26]},{ x:'03/22/2024',y:[31.36,31.38,31.31,31.31]},{ x:'03/25/2024',y:[31.40,31.53,31.40,31.44]},{ x:'03/26/2024',y:[31.66,31.66,31.45,31.45]},{ x:'03/27/2024',y:[31.40,31.40,31.40,31.40]},{ x:'03/28/2024',y:[31.24,31.41,31.24,31.41]},{ x:'03/29/2024',y:[31.40,31.40,31.32,31.32]},{ x:'04/01/2024',y:[31.38,31.52,31.38,31.47]},{ x:'04/02/2024',y:[31.50,31.50,31.40,31.40]},{ x:'04/03/2024',y:[31.31,31.31,31.20,31.23]},{ x:'04/08/2024',y:[31.11,31.41,31.11,31.35]},{ x:'04/09/2024',y:[31.16,31.34,31.16,31.22]},{ x:'04/10/2024',y:[31.12,31.15,30.81,31.04]},{ x:'04/11/2024',y:[30.88,31.04,30.86,31.04]},{ x:'04/12/2024',y:[31.43,31.50,31.43,31.49]},{ x:'04/15/2024',y:[31.02,31.15,31.02,31.12]},{ x:'04/16/2024',y:[30.41,30.54,30.41,30.46]},{ x:'04/17/2024',y:[30.56,30.63,30.56,30.63]},{ x:'04/18/2024',y:[30.32,30.37,30.27,30.27]},{ x:'04/19/2024',y:[29.87,29.87,29.57,29.73]},{ x:'04/22/2024',y:[29.46,29.56,29.46,29.56]},{ x:'04/23/2024',y:[29.77,29.85,29.77,29.78]},{ x:'04/24/2024',y:[30.41,30.49,30.41,30.49]},{ x:'04/25/2024',y:[29.86,30.01,29.86,30.01]},{ x:'04/26/2024',y:[30.38,30.40,30.38,30.39]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00886 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());