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:'03/19/2024',y:[18.25,18.25,18.05,18.21]},{ x:'03/20/2024',y:[18.21,18.40,17.96,18.00]},{ x:'03/21/2024',y:[18.27,18.28,18.13,18.21]},{ x:'03/22/2024',y:[18.22,18.29,18.01,18.13]},{ x:'03/25/2024',y:[18.13,18.20,18.07,18.07]},{ x:'03/26/2024',y:[18.14,18.32,17.85,18.05]},{ x:'03/27/2024',y:[18.02,18.09,17.92,18.04]},{ x:'03/28/2024',y:[18.05,18.09,17.84,18.03]},{ x:'03/29/2024',y:[18.02,18.27,17.98,18.23]},{ x:'04/01/2024',y:[18.26,18.29,18.04,18.04]},{ x:'04/02/2024',y:[18.09,18.27,18.09,18.17]},{ x:'04/03/2024',y:[18.09,18.18,17.98,18.12]},{ x:'04/08/2024',y:[18.15,18.18,18.01,18.04]},{ x:'04/09/2024',y:[18.07,18.23,18.07,18.20]},{ x:'04/10/2024',y:[18.20,18.47,18.20,18.44]},{ x:'04/11/2024',y:[18.40,18.48,18.30,18.39]},{ x:'04/12/2024',y:[18.40,18.45,18.34,18.38]},{ x:'04/15/2024',y:[18.24,18.24,17.93,18.00]},{ x:'04/16/2024',y:[17.80,17.80,17.36,17.46]},{ x:'04/17/2024',y:[17.50,17.65,17.49,17.60]},{ x:'04/18/2024',y:[17.54,17.68,17.40,17.66]},{ x:'04/19/2024',y:[17.31,17.31,16.59,16.81]},{ x:'04/22/2024',y:[16.73,16.78,16.42,16.42]},{ x:'04/23/2024',y:[16.64,16.66,16.48,16.53]},{ x:'04/24/2024',y:[16.80,17.16,16.80,17.12]},{ x:'04/25/2024',y:[16.90,16.90,16.70,16.72]},{ x:'04/26/2024',y:[16.95,17.13,16.93,17.00]},{ x:'04/29/2024',y:[17.14,17.40,17.14,17.29]},{ x:'04/30/2024',y:[17.30,17.37,17.23,17.30]},{ x:'05/02/2024',y:[17.22,17.30,17.06,17.25]},{ x:'05/03/2024',y:[17.47,17.52,17.34,17.40]},{ x:'05/06/2024',y:[17.65,17.65,17.36,17.41]},{ x:'05/07/2024',y:[17.45,17.52,17.32,17.41]},{ x:'05/08/2024',y:[17.41,17.52,17.34,17.49]},{ x:'05/09/2024',y:[17.49,17.52,17.37,17.38]},{ x:'05/10/2024',y:[17.42,17.48,17.28,17.40]},{ x:'05/13/2024',y:[17.52,17.58,17.41,17.51]},{ x:'05/14/2024',y:[17.51,17.75,17.51,17.74]},{ x:'05/15/2024',y:[17.88,18.03,17.88,17.91]},{ x:'05/16/2024',y:[18.08,18.22,18.06,18.11]},{ x:'05/17/2024',y:[17.72,17.72,17.59,17.66]},{ x:'05/20/2024',y:[17.63,17.77,17.58,17.71]},{ x:'05/21/2024',y:[17.71,17.73,17.57,17.67]},{ x:'05/22/2024',y:[17.70,17.89,17.68,17.86]},{ x:'05/23/2024',y:[17.95,18.04,17.83,18.01]},{ x:'05/24/2024',y:[17.83,18.05,17.82,18.00]},{ x:'06/11/2024',y:[18.51,18.58,18.39,18.45]},{ x:'06/12/2024',y:[18.48,18.78,18.48,18.77]},{ x:'06/13/2024',y:[19.02,19.39,18.96,19.30]},{ x:'06/14/2024',y:[19.30,19.38,19.22,19.38]},{ x:'06/17/2024',y:[19.36,19.44,19.27,19.35]},{ x:'06/18/2024',y:[19.46,19.72,19.46,19.70]},{ x:'06/19/2024',y:[19.85,20.33,19.84,20.31]},{ x:'06/20/2024',y:[20.33,20.44,20.28,20.40]},{ x:'06/21/2024',y:[20.20,20.32,20.06,20.21]},{ x:'06/24/2024',y:[20.05,20.05,19.65,19.68]},{ x:'06/25/2024',y:[19.47,19.59,19.25,19.54]},{ x:'06/26/2024',y:[19.70,19.89,19.64,19.80]},{ x:'06/27/2024',y:[19.60,19.72,19.52,19.67]},{ x:'06/28/2024',y:[19.66,19.83,19.65,19.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00891 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());