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/05/2023',y:[7.35,7.46,7.30,7.41]},{ x:'06/06/2023',y:[7.46,7.95,7.39,7.76]},{ x:'06/07/2023',y:[7.74,7.93,7.72,7.80]},{ x:'06/08/2023',y:[7.80,7.84,7.62,7.68]},{ x:'06/09/2023',y:[7.87,8.00,7.80,7.93]},{ x:'06/12/2023',y:[7.90,8.04,7.78,7.93]},{ x:'06/13/2023',y:[7.76,7.81,7.70,7.76]},{ x:'06/14/2023',y:[7.96,7.96,7.81,7.81]},{ x:'06/15/2023',y:[7.74,7.77,7.70,7.77]},{ x:'06/16/2023',y:[7.75,7.78,7.67,7.77]},{ x:'06/19/2023',y:[7.67,7.72,7.66,7.70]},{ x:'06/20/2023',y:[7.69,7.69,7.57,7.63]},{ x:'06/21/2023',y:[7.59,7.69,7.59,7.60]},{ x:'06/26/2023',y:[7.55,7.55,7.41,7.48]},{ x:'06/27/2023',y:[7.55,7.66,7.55,7.60]},{ x:'06/28/2023',y:[7.56,7.98,7.55,7.81]},{ x:'06/29/2023',y:[7.80,8.10,7.72,8.03]},{ x:'06/30/2023',y:[8.00,8.09,7.81,8.03]},{ x:'07/03/2023',y:[7.82,7.89,7.76,7.89]},{ x:'07/04/2023',y:[7.85,7.89,7.74,7.86]},{ x:'07/05/2023',y:[7.84,7.84,7.70,7.72]},{ x:'07/06/2023',y:[7.62,7.79,7.51,7.75]},{ x:'07/07/2023',y:[7.77,7.77,7.61,7.61]},{ x:'07/10/2023',y:[7.57,7.76,7.35,7.49]},{ x:'07/11/2023',y:[7.52,7.63,7.52,7.57]},{ x:'07/12/2023',y:[7.60,7.67,7.51,7.67]},{ x:'07/13/2023',y:[7.43,7.67,7.43,7.64]},{ x:'07/14/2023',y:[7.68,7.69,7.52,7.68]},{ x:'07/17/2023',y:[7.68,7.68,7.53,7.65]},{ x:'07/18/2023',y:[7.54,7.69,7.54,7.66]},{ x:'07/19/2023',y:[7.65,7.66,7.53,7.53]},{ x:'07/20/2023',y:[7.51,7.53,7.41,7.53]},{ x:'07/21/2023',y:[7.55,7.55,7.47,7.47]},{ x:'07/24/2023',y:[7.50,7.50,7.42,7.42]},{ x:'07/25/2023',y:[7.51,7.51,7.40,7.50]},{ x:'07/26/2023',y:[7.50,7.50,7.41,7.49]},{ x:'07/27/2023',y:[7.50,7.50,7.49,7.50]},{ x:'07/28/2023',y:[7.32,7.50,7.32,7.47]},{ x:'07/31/2023',y:[7.31,7.40,7.28,7.40]},{ x:'08/01/2023',y:[7.30,7.30,7.27,7.27]},{ x:'08/02/2023',y:[7.27,7.42,7.15,7.19]},{ x:'08/04/2023',y:[7.29,7.30,7.14,7.24]},{ x:'08/07/2023',y:[7.24,7.25,7.16,7.25]},{ x:'08/08/2023',y:[7.16,7.24,7.04,7.06]},{ x:'08/09/2023',y:[7.05,7.56,7.00,7.50]},{ x:'08/10/2023',y:[7.45,7.54,7.11,7.54]},{ x:'08/11/2023',y:[7.49,7.52,7.33,7.46]},{ x:'08/14/2023',y:[7.39,7.48,7.13,7.47]},{ x:'08/15/2023',y:[7.40,7.47,7.34,7.36]},{ x:'08/16/2023',y:[7.36,7.38,7.36,7.38]},{ x:'08/17/2023',y:[7.38,7.41,7.28,7.30]},{ x:'08/18/2023',y:[7.38,7.40,7.23,7.37]},{ x:'08/21/2023',y:[7.37,7.38,7.16,7.32]},{ x:'08/22/2023',y:[7.29,7.30,7.27,7.27]},{ x:'08/23/2023',y:[7.27,7.30,7.17,7.27]},{ x:'08/24/2023',y:[7.18,7.27,7.18,7.27]},{ x:'08/25/2023',y:[7.18,7.28,7.15,7.27]},{ x:'08/28/2023',y:[7.15,7.26,7.15,7.25]},{ x:'08/29/2023',y:[7.25,7.26,7.15,7.16]},{ x:'08/30/2023',y:[7.28,7.29,7.16,7.23]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6264 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());