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:[16.90,17.01,16.85,16.99]},{ x:'03/20/2024',y:[17.05,17.12,16.94,16.95]},{ x:'03/21/2024',y:[17.05,17.32,17.04,17.29]},{ x:'03/22/2024',y:[17.29,17.35,17.24,17.35]},{ x:'03/25/2024',y:[17.40,17.44,17.32,17.43]},{ x:'03/26/2024',y:[17.45,17.66,17.20,17.37]},{ x:'03/27/2024',y:[17.40,17.40,17.30,17.35]},{ x:'03/28/2024',y:[17.34,17.39,17.28,17.37]},{ x:'03/29/2024',y:[17.37,17.40,17.31,17.35]},{ x:'04/01/2024',y:[17.37,17.45,17.35,17.40]},{ x:'04/02/2024',y:[17.47,17.57,17.45,17.56]},{ x:'04/03/2024',y:[17.52,17.54,17.39,17.48]},{ x:'04/08/2024',y:[17.50,17.67,17.50,17.62]},{ x:'04/09/2024',y:[17.68,17.89,17.68,17.88]},{ x:'04/10/2024',y:[17.88,17.95,17.79,17.79]},{ x:'04/11/2024',y:[17.71,17.71,17.56,17.61]},{ x:'04/12/2024',y:[17.59,17.76,17.58,17.71]},{ x:'04/15/2024',y:[17.70,17.73,17.42,17.44]},{ x:'04/16/2024',y:[17.26,17.26,16.86,16.96]},{ x:'04/17/2024',y:[17.00,17.28,17.00,17.26]},{ x:'04/18/2024',y:[17.23,17.38,17.18,17.34]},{ x:'04/19/2024',y:[17.16,17.16,16.55,16.86]},{ x:'04/22/2024',y:[16.85,16.93,16.65,16.65]},{ x:'04/23/2024',y:[16.77,16.89,16.68,16.75]},{ x:'04/24/2024',y:[16.96,17.14,16.93,17.13]},{ x:'04/25/2024',y:[17.03,17.03,16.87,16.90]},{ x:'04/26/2024',y:[17.02,17.20,17.02,17.09]},{ x:'04/29/2024',y:[17.17,17.40,17.17,17.34]},{ x:'04/30/2024',y:[17.34,17.36,17.27,17.27]},{ x:'05/02/2024',y:[17.17,17.17,17.04,17.09]},{ x:'05/03/2024',y:[17.29,17.36,17.13,17.15]},{ x:'05/06/2024',y:[17.28,17.42,17.28,17.33]},{ x:'05/07/2024',y:[17.37,17.43,17.26,17.36]},{ x:'05/08/2024',y:[17.32,17.46,17.32,17.43]},{ x:'05/09/2024',y:[17.40,17.45,17.32,17.32]},{ x:'05/10/2024',y:[17.32,17.36,17.20,17.34]},{ x:'05/13/2024',y:[17.38,17.40,17.29,17.31]},{ x:'05/14/2024',y:[17.38,17.44,17.35,17.39]},{ x:'05/15/2024',y:[17.41,17.60,17.41,17.47]},{ x:'05/16/2024',y:[17.55,17.69,17.55,17.56]},{ x:'05/17/2024',y:[17.56,17.58,17.49,17.50]},{ x:'05/20/2024',y:[17.55,17.62,17.47,17.53]},{ x:'05/21/2024',y:[17.53,17.56,17.44,17.51]},{ x:'05/22/2024',y:[17.57,17.68,17.57,17.65]},{ x:'05/23/2024',y:[17.66,17.70,17.56,17.66]},{ x:'05/24/2024',y:[17.60,17.71,17.51,17.69]},{ x:'06/11/2024',y:[17.92,17.96,17.85,17.91]},{ x:'06/12/2024',y:[17.92,18.02,17.92,18.01]},{ x:'06/13/2024',y:[18.18,18.33,18.18,18.31]},{ x:'06/14/2024',y:[18.31,18.49,18.30,18.48]},{ x:'06/17/2024',y:[18.50,18.64,18.50,18.62]},{ x:'06/18/2024',y:[18.69,18.78,18.66,18.76]},{ x:'06/19/2024',y:[18.46,18.56,18.46,18.50]},{ x:'06/20/2024',y:[18.52,18.73,18.52,18.70]},{ x:'06/21/2024',y:[18.65,18.76,18.57,18.71]},{ x:'06/24/2024',y:[18.66,18.66,18.31,18.35]},{ x:'06/25/2024',y:[18.30,18.39,18.06,18.37]},{ x:'06/26/2024',y:[18.45,18.51,18.33,18.37]},{ x:'06/27/2024',y:[18.30,18.34,18.24,18.32]},{ x:'06/28/2024',y:[18.36,18.54,18.36,18.46]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00896 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());