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:[28.54,28.57,28.38,28.40]},{ x:'05/12/2023',y:[28.37,28.47,28.19,28.45]},{ x:'05/15/2023',y:[28.41,28.45,28.30,28.42]},{ x:'05/16/2023',y:[28.43,28.71,28.43,28.65]},{ x:'05/17/2023',y:[28.65,28.83,28.62,28.76]},{ x:'05/18/2023',y:[28.85,29.11,28.85,29.05]},{ x:'05/19/2023',y:[29.13,29.35,29.08,29.31]},{ x:'05/22/2023',y:[29.32,29.44,29.31,29.35]},{ x:'05/23/2023',y:[29.37,29.44,29.24,29.37]},{ x:'05/24/2023',y:[29.33,29.44,29.26,29.43]},{ x:'05/25/2023',y:[29.70,29.82,29.59,29.78]},{ x:'05/26/2023',y:[29.91,30.25,29.91,30.13]},{ x:'05/29/2023',y:[30.60,30.74,30.55,30.65]},{ x:'05/30/2023',y:[30.69,30.76,30.44,30.52]},{ x:'05/31/2023',y:[30.52,30.60,30.43,30.49]},{ x:'06/01/2023',y:[30.47,30.47,30.35,30.47]},{ x:'06/02/2023',y:[30.60,31.14,30.60,30.93]},{ x:'06/05/2023',y:[30.95,31.13,30.88,31.10]},{ x:'06/06/2023',y:[31.10,31.21,31.01,31.15]},{ x:'06/07/2023',y:[31.16,31.50,31.16,31.46]},{ x:'06/08/2023',y:[31.46,31.48,31.22,31.24]},{ x:'06/09/2023',y:[31.40,31.80,31.40,31.78]},{ x:'06/12/2023',y:[31.85,32.05,31.69,31.78]},{ x:'06/13/2023',y:[31.96,32.25,31.95,32.20]},{ x:'06/14/2023',y:[32.20,32.46,32.17,32.32]},{ x:'06/15/2023',y:[32.45,32.80,32.45,32.69]},{ x:'06/16/2023',y:[32.77,32.99,32.52,32.78]},{ x:'06/19/2023',y:[32.77,32.79,32.60,32.73]},{ x:'06/20/2023',y:[32.68,32.69,32.35,32.48]},{ x:'06/21/2023',y:[32.48,32.87,32.43,32.83]},{ x:'06/26/2023',y:[32.70,32.80,32.50,32.77]},{ x:'06/27/2023',y:[32.64,32.64,32.13,32.18]},{ x:'06/28/2023',y:[32.28,32.48,32.28,32.30]},{ x:'06/29/2023',y:[32.47,32.67,32.40,32.53]},{ x:'06/30/2023',y:[32.53,32.67,32.42,32.67]},{ x:'07/03/2023',y:[32.89,33.33,32.89,33.24]},{ x:'07/04/2023',y:[33.51,34.00,33.45,33.91]},{ x:'07/05/2023',y:[33.99,33.99,33.53,33.71]},{ x:'07/06/2023',y:[33.42,33.74,33.25,33.34]},{ x:'07/07/2023',y:[33.17,33.30,32.87,33.08]},{ x:'07/10/2023',y:[33.08,33.33,33.08,33.18]},{ x:'07/11/2023',y:[33.42,33.82,33.42,33.80]},{ x:'07/12/2023',y:[33.95,34.35,33.93,34.30]},{ x:'07/13/2023',y:[34.85,35.46,34.62,34.82]},{ x:'07/14/2023',y:[35.35,35.60,34.88,35.54]},{ x:'07/17/2023',y:[35.55,35.96,35.55,35.94]},{ x:'07/18/2023',y:[35.64,35.70,34.61,35.11]},{ x:'07/19/2023',y:[35.29,35.50,34.24,34.36]},{ x:'07/20/2023',y:[34.34,34.82,34.25,34.71]},{ x:'07/21/2023',y:[34.26,35.40,34.25,35.26]},{ x:'07/24/2023',y:[35.54,36.04,35.27,35.99]},{ x:'07/25/2023',y:[36.25,36.60,36.04,36.05]},{ x:'07/26/2023',y:[36.05,36.30,35.73,36.02]},{ x:'07/27/2023',y:[36.34,36.53,36.02,36.10]},{ x:'07/28/2023',y:[36.18,36.60,35.82,36.58]},{ x:'07/31/2023',y:[36.66,37.25,35.61,35.74]},{ x:'08/01/2023',y:[35.66,35.97,35.15,35.73]},{ x:'08/02/2023',y:[35.73,35.96,34.45,34.51]},{ x:'08/04/2023',y:[34.40,35.04,34.17,34.74]},{ x:'08/07/2023',y:[34.80,35.70,34.80,35.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0056 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());