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:[17.42,17.42,17.35,17.38]},{ x:'01/23/2024',y:[17.43,17.43,17.36,17.42]},{ x:'01/24/2024',y:[17.42,17.50,17.42,17.46]},{ x:'01/25/2024',y:[17.51,17.52,17.45,17.45]},{ x:'01/26/2024',y:[17.45,17.48,17.42,17.44]},{ x:'01/29/2024',y:[17.44,17.60,17.44,17.60]},{ x:'01/30/2024',y:[17.60,17.60,17.50,17.51]},{ x:'01/31/2024',y:[17.50,17.50,17.42,17.45]},{ x:'02/01/2024',y:[17.47,17.57,17.47,17.57]},{ x:'02/02/2024',y:[17.57,17.60,17.55,17.55]},{ x:'02/05/2024',y:[17.55,17.55,17.35,17.44]},{ x:'02/15/2024',y:[17.47,17.55,17.41,17.53]},{ x:'02/16/2024',y:[17.55,17.69,17.55,17.68]},{ x:'02/19/2024',y:[17.72,17.87,17.72,17.87]},{ x:'02/20/2024',y:[17.87,17.96,17.87,17.95]},{ x:'02/21/2024',y:[17.94,17.98,17.90,17.90]},{ x:'02/22/2024',y:[17.93,17.98,17.88,17.96]},{ x:'02/23/2024',y:[18.00,18.00,17.93,17.94]},{ x:'02/26/2024',y:[17.95,18.11,17.95,18.10]},{ x:'02/27/2024',y:[18.10,18.10,17.91,18.01]},{ x:'02/29/2024',y:[18.00,18.20,17.97,18.20]},{ x:'03/01/2024',y:[18.20,18.24,18.17,18.19]},{ x:'03/04/2024',y:[18.20,18.31,18.20,18.21]},{ x:'03/05/2024',y:[18.21,18.29,18.19,18.19]},{ x:'03/06/2024',y:[18.19,18.26,18.16,18.19]},{ x:'03/07/2024',y:[18.25,18.30,18.15,18.28]},{ x:'03/08/2024',y:[18.28,18.29,18.11,18.16]},{ x:'03/11/2024',y:[18.10,18.22,18.10,18.20]},{ x:'03/12/2024',y:[18.24,18.39,18.24,18.37]},{ x:'03/13/2024',y:[18.43,18.43,18.32,18.34]},{ x:'03/14/2024',y:[18.40,18.44,18.35,18.37]},{ x:'03/15/2024',y:[18.38,18.38,18.24,18.29]},{ x:'03/18/2024',y:[18.37,18.45,18.34,18.44]},{ x:'03/19/2024',y:[18.44,18.46,18.37,18.42]},{ x:'03/20/2024',y:[18.47,18.48,18.39,18.40]},{ x:'03/21/2024',y:[18.32,18.37,18.21,18.30]},{ x:'03/22/2024',y:[18.29,18.29,18.20,18.26]},{ x:'03/25/2024',y:[18.25,18.34,18.25,18.28]},{ x:'03/26/2024',y:[18.29,18.47,18.14,18.21]},{ x:'03/27/2024',y:[18.23,18.38,18.23,18.37]},{ x:'03/28/2024',y:[18.39,18.44,18.35,18.36]},{ x:'03/29/2024',y:[18.38,18.47,18.36,18.40]},{ x:'04/01/2024',y:[18.45,18.54,18.45,18.49]},{ x:'04/02/2024',y:[18.50,18.52,18.46,18.49]},{ x:'04/03/2024',y:[18.49,18.49,18.35,18.41]},{ x:'04/08/2024',y:[18.44,18.53,18.41,18.52]},{ x:'04/09/2024',y:[18.54,18.70,18.52,18.68]},{ x:'04/10/2024',y:[18.70,18.79,18.70,18.77]},{ x:'04/11/2024',y:[18.77,18.77,18.64,18.67]},{ x:'04/12/2024',y:[18.67,18.77,18.60,18.73]},{ x:'04/15/2024',y:[18.80,18.88,18.77,18.78]},{ x:'04/16/2024',y:[18.75,18.75,18.27,18.35]},{ x:'04/17/2024',y:[18.37,18.61,18.37,18.60]},{ x:'04/18/2024',y:[18.61,18.82,18.61,18.79]},{ x:'04/19/2024',y:[18.75,18.75,18.16,18.46]},{ x:'04/22/2024',y:[18.47,18.70,18.47,18.52]},{ x:'04/23/2024',y:[18.64,18.70,18.51,18.62]},{ x:'04/24/2024',y:[18.75,18.91,18.75,18.88]},{ x:'04/25/2024',y:[18.88,18.89,18.80,18.82]},{ x:'04/26/2024',y:[18.83,18.98,18.83,18.94]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00921 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());