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/01/2023',y:[13.68,13.73,13.65,13.68]},{ x:'06/02/2023',y:[13.76,13.93,13.76,13.86]},{ x:'06/05/2023',y:[13.87,13.94,13.86,13.89]},{ x:'06/06/2023',y:[13.89,13.95,13.87,13.90]},{ x:'06/07/2023',y:[13.94,14.11,13.94,14.11]},{ x:'06/08/2023',y:[14.07,14.07,13.87,13.89]},{ x:'06/09/2023',y:[13.96,14.08,13.96,14.05]},{ x:'06/12/2023',y:[14.14,14.27,14.14,14.20]},{ x:'06/13/2023',y:[14.40,14.59,14.35,14.56]},{ x:'06/14/2023',y:[14.50,14.57,14.49,14.55]},{ x:'06/15/2023',y:[14.59,14.74,14.59,14.69]},{ x:'06/16/2023',y:[14.72,14.73,14.59,14.65]},{ x:'06/19/2023',y:[14.62,14.71,14.58,14.67]},{ x:'06/20/2023',y:[14.65,14.70,14.56,14.60]},{ x:'06/21/2023',y:[14.60,14.61,14.52,14.58]},{ x:'06/26/2023',y:[14.44,14.46,14.37,14.40]},{ x:'06/27/2023',y:[14.37,14.40,14.25,14.26]},{ x:'06/28/2023',y:[14.36,14.38,14.30,14.32]},{ x:'06/29/2023',y:[14.41,14.49,14.31,14.35]},{ x:'06/30/2023',y:[14.34,14.41,14.27,14.41]},{ x:'07/03/2023',y:[14.49,14.67,14.49,14.64]},{ x:'07/04/2023',y:[14.68,14.80,14.66,14.78]},{ x:'07/05/2023',y:[14.80,14.80,14.66,14.68]},{ x:'07/06/2023',y:[14.55,14.63,14.42,14.45]},{ x:'07/07/2023',y:[14.37,14.44,14.28,14.33]},{ x:'07/10/2023',y:[14.37,14.44,14.29,14.31]},{ x:'07/11/2023',y:[14.47,14.58,14.47,14.56]},{ x:'07/12/2023',y:[14.56,14.70,14.56,14.69]},{ x:'07/13/2023',y:[14.83,15.09,14.83,14.92]},{ x:'07/14/2023',y:[15.02,15.15,14.94,15.13]},{ x:'07/17/2023',y:[15.13,15.13,15.04,15.05]},{ x:'07/18/2023',y:[15.07,15.21,14.96,15.02]},{ x:'07/19/2023',y:[15.11,15.11,14.89,14.89]},{ x:'07/20/2023',y:[14.89,14.96,14.88,14.91]},{ x:'07/21/2023',y:[14.64,14.85,14.58,14.84]},{ x:'07/24/2023',y:[14.85,14.97,14.80,14.93]},{ x:'07/25/2023',y:[15.07,15.19,15.04,15.04]},{ x:'07/26/2023',y:[15.06,15.13,14.94,14.95]},{ x:'07/27/2023',y:[15.04,15.08,14.98,15.00]},{ x:'07/28/2023',y:[14.97,15.14,14.94,15.14]},{ x:'07/31/2023',y:[15.35,15.39,14.91,14.96]},{ x:'08/01/2023',y:[15.01,15.11,14.91,15.03]},{ x:'08/02/2023',y:[15.01,15.06,14.63,14.64]},{ x:'08/04/2023',y:[14.59,14.71,14.50,14.65]},{ x:'08/07/2023',y:[14.72,14.91,14.72,14.86]},{ x:'08/08/2023',y:[14.83,14.84,14.59,14.70]},{ x:'08/09/2023',y:[14.64,14.77,14.60,14.69]},{ x:'08/10/2023',y:[14.63,14.63,14.37,14.44]},{ x:'08/11/2023',y:[14.57,14.58,14.42,14.44]},{ x:'08/14/2023',y:[14.34,14.43,14.29,14.31]},{ x:'08/15/2023',y:[14.47,14.53,14.43,14.46]},{ x:'08/16/2023',y:[14.44,14.47,14.37,14.44]},{ x:'08/17/2023',y:[14.38,14.59,14.35,14.59]},{ x:'08/18/2023',y:[14.57,14.59,14.35,14.41]},{ x:'08/21/2023',y:[14.50,14.51,14.36,14.42]},{ x:'08/22/2023',y:[14.55,14.59,14.50,14.57]},{ x:'08/23/2023',y:[14.55,14.66,14.55,14.66]},{ x:'08/24/2023',y:[14.91,15.03,14.86,14.95]},{ x:'08/25/2023',y:[14.76,14.76,14.59,14.60]},{ x:'08/28/2023',y:[14.69,14.70,14.61,14.63]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00901 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());