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/03/2022',y:[4.19,4.19,4.13,4.14]},{ x:'01/04/2022',y:[4.10,4.10,4.00,4.01]},{ x:'01/05/2022',y:[3.99,3.99,3.91,3.99]},{ x:'01/06/2022',y:[3.99,4.11,3.99,4.10]},{ x:'01/07/2022',y:[3.76,4.10,3.76,4.05]},{ x:'01/10/2022',y:[3.99,3.99,3.93,3.93]},{ x:'01/11/2022',y:[3.93,3.93,3.84,3.85]},{ x:'01/12/2022',y:[3.85,3.98,3.85,3.88]},{ x:'01/13/2022',y:[3.88,3.88,3.85,3.85]},{ x:'01/14/2022',y:[3.85,3.88,3.85,3.86]},{ x:'01/17/2022',y:[3.86,3.98,3.86,3.90]},{ x:'01/18/2022',y:[3.94,3.95,3.87,3.87]},{ x:'01/19/2022',y:[3.90,3.90,3.80,3.88]},{ x:'01/20/2022',y:[3.90,3.93,3.89,3.93]},{ x:'01/21/2022',y:[3.90,3.94,3.89,3.90]},{ x:'01/24/2022',y:[3.90,3.95,3.80,3.88]},{ x:'01/25/2022',y:[3.88,3.90,3.82,3.86]},{ x:'01/26/2022',y:[3.83,3.99,3.83,3.96]},{ x:'02/07/2022',y:[3.98,4.03,3.95,4.00]},{ x:'02/08/2022',y:[3.88,4.00,3.88,3.95]},{ x:'02/09/2022',y:[3.56,3.56,3.56,3.56]},{ x:'02/10/2022',y:[3.21,3.58,3.21,3.58]},{ x:'02/11/2022',y:[3.55,3.61,3.55,3.61]},{ x:'02/14/2022',y:[3.61,3.63,3.61,3.63]},{ x:'02/15/2022',y:[3.64,3.73,3.64,3.70]},{ x:'02/16/2022',y:[3.34,3.60,3.34,3.57]},{ x:'02/17/2022',y:[3.42,3.42,3.22,3.25]},{ x:'02/18/2022',y:[3.26,3.42,3.26,3.30]},{ x:'02/21/2022',y:[2.99,3.39,2.99,3.25]},{ x:'02/22/2022',y:[3.20,3.24,3.20,3.24]},{ x:'02/23/2022',y:[3.24,3.28,3.24,3.27]},{ x:'02/24/2022',y:[3.26,3.26,3.19,3.19]},{ x:'02/25/2022',y:[3.13,3.19,3.13,3.19]},{ x:'03/01/2022',y:[2.92,2.92,2.88,2.89]},{ x:'03/02/2022',y:[3.05,3.17,3.05,3.17]},{ x:'03/03/2022',y:[3.30,3.48,3.30,3.48]},{ x:'03/04/2022',y:[3.61,3.82,3.61,3.82]},{ x:'03/07/2022',y:[3.97,3.97,3.54,3.54]},{ x:'03/08/2022',y:[3.48,3.80,3.48,3.80]},{ x:'03/09/2022',y:[4.04,4.04,3.80,3.80]},{ x:'03/10/2022',y:[3.52,3.75,3.52,3.62]},{ x:'03/11/2022',y:[3.88,3.88,3.65,3.70]},{ x:'03/14/2022',y:[3.66,3.70,3.66,3.66]},{ x:'03/15/2022',y:[3.60,3.66,3.60,3.66]},{ x:'03/16/2022',y:[3.66,3.66,3.58,3.60]},{ x:'03/17/2022',y:[3.60,3.60,3.58,3.58]},{ x:'03/18/2022',y:[3.80,3.80,3.61,3.61]},{ x:'03/21/2022',y:[3.61,3.61,3.52,3.52]},{ x:'03/22/2022',y:[3.52,3.52,3.30,3.38]},{ x:'03/23/2022',y:[3.42,3.55,3.42,3.50]},{ x:'03/24/2022',y:[3.59,3.59,3.50,3.50]},{ x:'03/25/2022',y:[3.50,3.50,3.45,3.49]},{ x:'03/28/2022',y:[3.49,3.49,3.46,3.46]},{ x:'03/29/2022',y:[3.40,3.45,3.40,3.43]},{ x:'03/30/2022',y:[3.41,3.41,3.36,3.36]},{ x:'03/31/2022',y:[3.36,3.36,3.30,3.30]},{ x:'04/01/2022',y:[3.12,3.12,2.97,2.97]},{ x:'04/06/2022',y:[2.68,2.70,2.68,2.68]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2841 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());