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:'05/11/2023',y:[34.96,35.02,34.96,35.02]},{ x:'05/12/2023',y:[35.36,35.36,35.36,35.36]},{ x:'05/15/2023',y:[35.16,35.16,35.11,35.11]},{ x:'05/16/2023',y:[34.87,34.87,34.70,34.71]},{ x:'05/17/2023',y:[34.53,34.53,34.51,34.52]},{ x:'05/18/2023',y:[34.51,34.51,34.51,34.51]},{ x:'05/19/2023',y:[34.29,34.29,34.19,34.28]},{ x:'05/22/2023',y:[34.12,34.15,34.12,34.15]},{ x:'05/23/2023',y:[34.06,34.06,34.06,34.06]},{ x:'05/24/2023',y:[34.29,34.29,34.26,34.26]},{ x:'05/25/2023',y:[34.05,34.05,34.05,34.05]},{ x:'05/26/2023',y:[33.91,33.94,33.91,33.92]},{ x:'05/29/2023',y:[34.03,34.03,34.01,34.01]},{ x:'05/30/2023',y:[34.18,34.18,34.18,34.18]},{ x:'05/31/2023',y:[34.30,34.49,34.30,34.49]},{ x:'06/01/2023',y:[34.57,34.63,34.57,34.63]},{ x:'06/02/2023',y:[34.76,34.76,34.74,34.74]},{ x:'06/05/2023',y:[34.65,34.65,34.65,34.65]},{ x:'06/06/2023',y:[34.63,34.63,34.63,34.63]},{ x:'06/07/2023',y:[34.86,34.88,34.86,34.88]},{ x:'06/08/2023',y:[34.85,34.85,34.37,34.37]},{ x:'06/09/2023',y:[34.55,34.58,34.55,34.58]},{ x:'06/12/2023',y:[34.65,34.65,34.63,34.63]},{ x:'06/13/2023',y:[34.85,34.85,34.82,34.82]},{ x:'06/14/2023',y:[34.66,34.66,34.64,34.64]},{ x:'06/15/2023',y:[34.70,34.80,34.70,34.75]},{ x:'06/16/2023',y:[34.73,34.73,34.73,34.73]},{ x:'06/19/2023',y:[34.87,34.88,34.87,34.88]},{ x:'06/20/2023',y:[34.84,34.84,34.84,34.84]},{ x:'06/21/2023',y:[35.19,35.24,35.19,35.23]},{ x:'06/26/2023',y:[35.21,35.26,35.20,35.26]},{ x:'06/27/2023',y:[35.17,35.17,35.17,35.17]},{ x:'06/28/2023',y:[35.14,35.17,35.10,35.17]},{ x:'06/29/2023',y:[35.36,35.36,35.36,35.36]},{ x:'06/30/2023',y:[35.10,35.10,35.07,35.07]},{ x:'07/03/2023',y:[35.37,35.37,35.30,35.30]},{ x:'07/04/2023',y:[35.45,35.45,35.45,35.45]},{ x:'07/05/2023',y:[35.38,35.45,35.38,35.45]},{ x:'07/06/2023',y:[35.07,35.08,35.07,35.08]},{ x:'07/07/2023',y:[34.71,34.72,34.70,34.72]},{ x:'07/10/2023',y:[34.52,34.54,34.52,34.54]},{ x:'07/11/2023',y:[34.72,34.79,34.72,34.79]},{ x:'07/12/2023',y:[34.90,34.94,34.85,34.85]},{ x:'07/13/2023',y:[35.15,35.15,35.15,35.15]},{ x:'07/14/2023',y:[35.11,35.11,35.11,35.11]},{ x:'07/17/2023',y:[35.03,35.10,35.03,35.10]},{ x:'07/18/2023',y:[35.06,35.07,35.06,35.07]},{ x:'07/19/2023',y:[35.31,35.37,35.31,35.31]},{ x:'07/20/2023',y:[35.54,35.54,35.52,35.52]},{ x:'07/21/2023',y:[35.32,35.42,35.32,35.42]},{ x:'07/24/2023',y:[35.53,35.74,35.53,35.63]},{ x:'07/25/2023',y:[35.62,35.62,35.62,35.62]},{ x:'07/26/2023',y:[35.50,35.50,35.50,35.50]},{ x:'07/27/2023',y:[35.52,35.52,35.52,35.52]},{ x:'07/28/2023',y:[35.26,35.26,35.11,35.20]},{ x:'07/31/2023',y:[35.32,35.33,35.32,35.33]},{ x:'08/01/2023',y:[35.55,35.68,35.55,35.68]},{ x:'08/02/2023',y:[35.31,35.31,35.23,35.23]},{ x:'08/04/2023',y:[34.61,34.61,34.21,34.33]},{ x:'08/07/2023',y:[34.74,34.74,34.70,34.74]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00777b 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());