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:'06/15/2023',y:[16.98,17.14,16.98,17.11]},{ x:'06/16/2023',y:[17.11,17.12,16.97,17.05]},{ x:'06/19/2023',y:[17.03,17.13,16.97,17.11]},{ x:'06/20/2023',y:[17.08,17.10,16.90,16.96]},{ x:'06/21/2023',y:[16.95,17.03,16.90,16.98]},{ x:'06/26/2023',y:[16.76,16.88,16.74,16.82]},{ x:'06/27/2023',y:[16.77,16.83,16.66,16.67]},{ x:'06/28/2023',y:[16.75,16.83,16.71,16.73]},{ x:'06/29/2023',y:[16.80,16.93,16.73,16.76]},{ x:'06/30/2023',y:[16.75,16.82,16.64,16.82]},{ x:'07/03/2023',y:[16.90,17.13,16.90,17.08]},{ x:'07/04/2023',y:[17.14,17.34,17.14,17.30]},{ x:'07/05/2023',y:[17.30,17.33,17.18,17.22]},{ x:'07/06/2023',y:[17.08,17.16,16.91,16.93]},{ x:'07/07/2023',y:[16.85,16.96,16.75,16.84]},{ x:'07/10/2023',y:[16.84,16.95,16.76,16.79]},{ x:'07/11/2023',y:[16.92,17.11,16.92,17.11]},{ x:'07/12/2023',y:[17.11,17.32,17.11,17.31]},{ x:'07/13/2023',y:[17.50,17.82,17.49,17.59]},{ x:'07/14/2023',y:[17.70,17.88,17.61,17.83]},{ x:'07/17/2023',y:[17.82,17.91,17.78,17.85]},{ x:'07/18/2023',y:[17.90,18.10,17.75,17.90]},{ x:'07/19/2023',y:[18.00,18.08,17.66,17.68]},{ x:'07/20/2023',y:[17.66,17.78,17.64,17.73]},{ x:'07/21/2023',y:[17.44,17.67,17.27,17.65]},{ x:'07/24/2023',y:[17.63,17.89,17.63,17.88]},{ x:'07/25/2023',y:[17.93,18.14,17.93,17.98]},{ x:'07/26/2023',y:[17.99,18.07,17.85,17.91]},{ x:'07/27/2023',y:[17.99,18.07,17.91,17.92]},{ x:'07/28/2023',y:[17.92,18.09,17.83,18.06]},{ x:'07/31/2023',y:[18.15,18.39,17.79,17.84]},{ x:'08/01/2023',y:[17.84,18.00,17.73,17.92]},{ x:'08/02/2023',y:[17.92,17.99,17.43,17.47]},{ x:'08/04/2023',y:[17.35,17.53,17.29,17.44]},{ x:'08/07/2023',y:[17.53,17.81,17.53,17.76]},{ x:'08/08/2023',y:[17.77,17.82,17.48,17.62]},{ x:'08/09/2023',y:[17.57,17.67,17.41,17.55]},{ x:'08/10/2023',y:[17.43,17.43,17.15,17.20]},{ x:'08/11/2023',y:[17.24,17.38,17.19,17.23]},{ x:'08/14/2023',y:[17.18,17.23,17.05,17.12]},{ x:'08/15/2023',y:[17.27,17.42,17.24,17.25]},{ x:'08/16/2023',y:[16.81,16.92,16.73,16.92]},{ x:'08/17/2023',y:[16.86,17.05,16.79,17.02]},{ x:'08/18/2023',y:[16.98,17.06,16.71,16.79]},{ x:'08/21/2023',y:[16.89,16.93,16.72,16.74]},{ x:'08/22/2023',y:[16.93,16.99,16.85,16.87]},{ x:'08/23/2023',y:[16.88,17.02,16.88,17.02]},{ x:'08/24/2023',y:[17.30,17.46,17.21,17.33]},{ x:'08/25/2023',y:[17.10,17.10,16.87,16.88]},{ x:'08/28/2023',y:[16.90,17.00,16.89,16.92]},{ x:'08/29/2023',y:[17.00,17.00,16.86,16.99]},{ x:'08/30/2023',y:[17.14,17.21,17.07,17.09]},{ x:'08/31/2023',y:[17.08,17.11,17.00,17.07]},{ x:'09/01/2023',y:[17.07,17.11,16.99,17.01]},{ x:'09/04/2023',y:[17.01,17.12,16.96,17.12]},{ x:'09/05/2023',y:[17.11,17.16,17.08,17.16]},{ x:'09/06/2023',y:[17.18,17.25,17.16,17.18]},{ x:'09/07/2023',y:[17.11,17.13,17.04,17.04]},{ x:'09/08/2023',y:[16.98,16.98,16.85,16.90]},{ x:'09/11/2023',y:[16.90,16.92,16.64,16.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00881 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());