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:'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]},{ x:'07/01/2024',y:[18.46,18.58,18.45,18.46]},{ x:'07/02/2024',y:[18.45,18.45,18.26,18.30]},{ x:'07/03/2024',y:[18.42,18.49,18.40,18.44]},{ x:'07/04/2024',y:[18.64,18.82,18.64,18.80]},{ x:'07/05/2024',y:[18.82,18.83,18.71,18.72]},{ x:'07/12/2024',y:[19.10,19.13,18.98,18.98]},{ x:'07/15/2024',y:[19.10,19.10,18.95,19.05]},{ x:'07/16/2024',y:[19.07,19.21,19.05,19.06]},{ x:'07/17/2024',y:[19.10,19.11,18.95,18.97]},{ x:'07/18/2024',y:[18.77,18.80,18.52,18.76]},{ x:'07/19/2024',y:[18.72,18.72,18.46,18.52]},{ x:'07/22/2024',y:[18.51,18.51,17.96,18.08]},{ x:'07/23/2024',y:[18.23,18.39,18.23,18.37]},{ x:'07/26/2024',y:[18.05,18.05,17.77,17.93]},{ x:'07/29/2024',y:[18.10,18.25,17.89,17.89]},{ x:'07/30/2024',y:[17.80,17.95,17.60,17.92]},{ x:'07/31/2024',y:[17.88,18.01,17.79,17.91]},{ x:'08/01/2024',y:[18.15,18.22,18.11,18.18]},{ x:'08/02/2024',y:[17.96,17.96,17.46,17.49]},{ x:'08/05/2024',y:[16.84,16.84,15.90,15.91]},{ x:'08/06/2024',y:[16.03,16.57,15.78,16.33]},{ x:'08/07/2024',y:[16.34,16.98,16.34,16.95]},{ x:'08/08/2024',y:[16.90,16.90,16.49,16.63]},{ x:'08/09/2024',y:[16.90,17.16,16.77,16.98]} ] }], 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());