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/22/2022',y:[2.65,2.65,2.55,2.55]},{ x:'06/23/2022',y:[2.55,2.55,2.50,2.50]},{ x:'06/24/2022',y:[2.50,2.65,2.50,2.65]},{ x:'06/27/2022',y:[2.55,2.78,2.55,2.78]},{ x:'06/28/2022',y:[2.78,2.78,2.72,2.72]},{ x:'06/29/2022',y:[2.72,2.72,2.58,2.72]},{ x:'06/30/2022',y:[2.72,2.72,2.60,2.72]},{ x:'07/01/2022',y:[2.72,2.72,2.57,2.57]},{ x:'07/04/2022',y:[2.57,2.76,2.50,2.76]},{ x:'07/05/2022',y:[2.76,2.76,2.57,2.61]},{ x:'07/06/2022',y:[2.61,2.61,2.51,2.54]},{ x:'07/07/2022',y:[2.54,2.66,2.34,2.61]},{ x:'07/08/2022',y:[2.61,2.61,2.51,2.51]},{ x:'07/11/2022',y:[2.51,2.59,2.51,2.59]},{ x:'07/12/2022',y:[2.59,2.59,2.50,2.50]},{ x:'07/13/2022',y:[2.50,2.50,2.31,2.36]},{ x:'07/14/2022',y:[2.36,2.36,2.31,2.35]},{ x:'07/15/2022',y:[2.35,2.40,2.35,2.40]},{ x:'07/18/2022',y:[2.40,2.40,2.16,2.29]},{ x:'07/19/2022',y:[2.29,2.30,2.29,2.30]},{ x:'07/20/2022',y:[2.30,2.31,2.30,2.31]},{ x:'07/21/2022',y:[2.31,2.32,2.31,2.32]},{ x:'07/22/2022',y:[2.32,2.38,2.32,2.38]},{ x:'07/25/2022',y:[2.38,2.52,2.38,2.52]},{ x:'07/26/2022',y:[2.51,2.51,2.44,2.45]},{ x:'07/27/2022',y:[2.45,2.60,2.45,2.60]},{ x:'07/28/2022',y:[2.60,2.66,2.60,2.66]},{ x:'07/29/2022',y:[2.92,2.92,2.76,2.84]},{ x:'08/01/2022',y:[2.80,2.80,2.69,2.70]},{ x:'08/02/2022',y:[2.71,2.71,2.70,2.70]},{ x:'08/03/2022',y:[2.69,2.69,2.59,2.60]},{ x:'08/04/2022',y:[2.60,2.60,2.52,2.53]},{ x:'08/05/2022',y:[2.52,2.70,2.52,2.54]},{ x:'08/08/2022',y:[2.54,2.64,2.54,2.57]},{ x:'08/09/2022',y:[2.82,2.82,2.71,2.71]},{ x:'08/10/2022',y:[2.75,2.75,2.73,2.74]},{ x:'08/11/2022',y:[2.74,2.74,2.57,2.72]},{ x:'08/12/2022',y:[2.72,2.72,2.62,2.64]},{ x:'08/15/2022',y:[2.38,2.38,2.38,2.38]},{ x:'08/16/2022',y:[2.15,2.15,2.15,2.15]},{ x:'08/17/2022',y:[1.94,1.94,1.94,1.94]},{ x:'08/18/2022',y:[1.75,1.75,1.75,1.75]},{ x:'08/19/2022',y:[1.58,1.58,1.58,1.58]},{ x:'08/22/2022',y:[1.43,1.43,1.43,1.43]},{ x:'08/23/2022',y:[1.29,1.29,1.29,1.29]},{ x:'08/24/2022',y:[1.17,1.17,1.17,1.17]},{ x:'08/25/2022',y:[1.06,1.06,1.06,1.06]},{ x:'08/26/2022',y:[0.96,0.96,0.96,0.96]},{ x:'08/29/2022',y:[0.87,0.87,0.87,0.87]},{ x:'08/30/2022',y:[0.79,0.79,0.79,0.79]},{ x:'08/31/2022',y:[0.72,0.86,0.72,0.86]},{ x:'09/01/2022',y:[0.78,0.94,0.78,0.94]},{ x:'09/02/2022',y:[0.97,1.03,0.97,1.03]},{ x:'09/05/2022',y:[1.13,1.13,1.13,1.13]},{ x:'09/06/2022',y:[1.24,1.24,1.03,1.13]},{ x:'09/19/2022',y:[2.04,2.04,2.04,2.04]},{ x:'09/20/2022',y:[1.84,1.84,1.84,1.84]},{ x:'09/21/2022',y:[1.66,1.66,1.66,1.66]},{ x:'09/22/2022',y:[1.50,1.50,1.50,1.50]},{ x:'09/23/2022',y:[1.35,1.35,1.35,1.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6289 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());