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:[16.05,16.29,16.05,16.29]},{ x:'01/23/2024',y:[16.31,16.42,16.31,16.35]},{ x:'01/24/2024',y:[16.36,16.38,16.25,16.25]},{ x:'01/25/2024',y:[16.32,16.38,16.26,16.27]},{ x:'01/26/2024',y:[16.23,16.27,16.18,16.22]},{ x:'01/29/2024',y:[16.24,16.43,16.24,16.43]},{ x:'01/30/2024',y:[16.44,16.70,16.44,16.67]},{ x:'01/31/2024',y:[16.60,16.61,16.54,16.56]},{ x:'02/01/2024',y:[16.52,16.57,16.46,16.57]},{ x:'02/02/2024',y:[16.75,16.92,16.74,16.86]},{ x:'02/05/2024',y:[16.87,16.89,16.75,16.80]},{ x:'02/15/2024',y:[17.40,17.54,17.27,17.51]},{ x:'02/16/2024',y:[17.52,17.57,17.35,17.38]},{ x:'02/19/2024',y:[17.37,17.40,17.24,17.27]},{ x:'02/20/2024',y:[17.28,17.53,17.28,17.47]},{ x:'02/21/2024',y:[17.38,17.40,17.27,17.27]},{ x:'02/22/2024',y:[17.39,17.59,17.39,17.54]},{ x:'02/23/2024',y:[17.67,17.85,17.65,17.75]},{ x:'02/26/2024',y:[17.75,17.81,17.63,17.80]},{ x:'02/27/2024',y:[17.75,17.85,17.45,17.63]},{ x:'02/29/2024',y:[17.60,17.83,17.53,17.82]},{ x:'03/01/2024',y:[17.92,18.06,17.90,17.98]},{ x:'03/04/2024',y:[18.16,18.36,18.16,18.29]},{ x:'03/05/2024',y:[18.31,18.49,18.25,18.48]},{ x:'03/06/2024',y:[18.38,18.71,18.34,18.67]},{ x:'03/07/2024',y:[18.87,19.06,18.68,18.82]},{ x:'03/08/2024',y:[19.05,19.22,18.54,18.67]},{ x:'03/11/2024',y:[18.66,18.77,18.57,18.63]},{ x:'03/12/2024',y:[18.61,18.76,18.61,18.71]},{ x:'03/13/2024',y:[18.86,19.01,18.55,18.58]},{ x:'03/14/2024',y:[18.58,18.59,18.25,18.44]},{ x:'03/15/2024',y:[18.28,18.52,18.28,18.32]},{ x:'03/18/2024',y:[18.36,18.63,18.36,18.63]},{ x:'03/19/2024',y:[18.57,18.57,18.38,18.44]},{ x:'03/20/2024',y:[18.45,18.57,18.32,18.34]},{ x:'03/21/2024',y:[18.59,18.74,18.56,18.69]},{ x:'03/22/2024',y:[18.69,18.84,18.69,18.84]},{ x:'03/25/2024',y:[18.82,18.94,18.82,18.83]},{ x:'03/26/2024',y:[18.89,19.05,18.46,18.60]},{ x:'03/27/2024',y:[18.64,18.72,18.54,18.61]},{ x:'03/28/2024',y:[18.61,18.61,18.40,18.49]},{ x:'03/29/2024',y:[18.57,18.72,18.57,18.67]},{ x:'04/01/2024',y:[18.77,18.85,18.75,18.79]},{ x:'04/02/2024',y:[18.97,19.03,18.93,19.00]},{ x:'04/03/2024',y:[18.92,19.17,18.87,19.13]},{ x:'04/08/2024',y:[19.15,19.33,19.15,19.15]},{ x:'04/09/2024',y:[19.32,19.43,19.22,19.40]},{ x:'04/10/2024',y:[19.40,19.43,19.32,19.32]},{ x:'04/11/2024',y:[19.27,19.30,19.15,19.18]},{ x:'04/12/2024',y:[19.29,19.37,19.29,19.32]},{ x:'04/15/2024',y:[19.23,19.23,18.83,18.89]},{ x:'04/16/2024',y:[18.86,18.86,18.23,18.30]},{ x:'04/17/2024',y:[18.38,18.63,18.38,18.63]},{ x:'04/18/2024',y:[18.50,18.90,18.45,18.87]},{ x:'04/19/2024',y:[18.43,18.48,17.62,17.89]},{ x:'04/22/2024',y:[17.89,17.89,17.30,17.30]},{ x:'04/23/2024',y:[17.61,17.62,17.37,17.44]},{ x:'04/24/2024',y:[17.93,18.20,17.93,18.17]},{ x:'04/25/2024',y:[17.96,18.02,17.77,17.77]},{ x:'04/26/2024',y:[18.10,18.41,18.09,18.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00894 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());