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:'07/01/2022',y:[6.32,6.32,6.05,6.05]},{ x:'07/04/2022',y:[6.00,6.11,6.00,6.11]},{ x:'07/05/2022',y:[6.15,6.15,6.01,6.10]},{ x:'07/06/2022',y:[6.09,6.14,6.09,6.12]},{ x:'07/07/2022',y:[6.13,6.19,6.07,6.07]},{ x:'07/08/2022',y:[6.07,6.30,6.07,6.30]},{ x:'07/11/2022',y:[6.48,6.48,6.10,6.11]},{ x:'07/12/2022',y:[6.11,6.11,6.06,6.07]},{ x:'07/13/2022',y:[6.03,6.14,6.03,6.10]},{ x:'07/14/2022',y:[6.15,6.33,6.15,6.33]},{ x:'07/15/2022',y:[6.33,6.39,6.33,6.39]},{ x:'07/18/2022',y:[6.48,6.48,6.39,6.39]},{ x:'07/19/2022',y:[6.42,6.46,6.21,6.21]},{ x:'07/20/2022',y:[6.16,6.16,6.10,6.11]},{ x:'07/21/2022',y:[6.02,6.10,6.02,6.07]},{ x:'07/22/2022',y:[6.03,6.10,6.03,6.10]},{ x:'07/25/2022',y:[6.13,6.38,6.03,6.38]},{ x:'07/26/2022',y:[6.49,6.49,6.11,6.38]},{ x:'07/27/2022',y:[6.40,6.40,6.20,6.20]},{ x:'07/28/2022',y:[6.11,6.30,6.11,6.30]},{ x:'07/29/2022',y:[6.86,6.86,6.35,6.40]},{ x:'08/01/2022',y:[6.44,6.45,6.44,6.44]},{ x:'08/02/2022',y:[6.98,6.98,6.37,6.44]},{ x:'08/03/2022',y:[6.66,6.66,6.31,6.31]},{ x:'08/04/2022',y:[6.15,6.15,6.10,6.10]},{ x:'08/05/2022',y:[6.12,6.14,6.10,6.14]},{ x:'08/08/2022',y:[6.36,6.36,6.30,6.32]},{ x:'08/09/2022',y:[6.65,6.65,6.30,6.30]},{ x:'08/10/2022',y:[6.10,6.25,6.10,6.25]},{ x:'08/11/2022',y:[6.28,6.28,6.15,6.15]},{ x:'08/12/2022',y:[6.05,6.30,6.05,6.10]},{ x:'08/15/2022',y:[5.49,5.49,5.49,5.49]},{ x:'08/16/2022',y:[4.95,4.95,4.95,4.95]},{ x:'08/17/2022',y:[4.46,4.46,4.46,4.46]},{ x:'08/18/2022',y:[4.02,4.02,4.02,4.02]},{ x:'08/19/2022',y:[3.62,3.62,3.62,3.62]},{ x:'08/22/2022',y:[3.26,3.26,3.26,3.26]},{ x:'08/23/2022',y:[2.94,2.94,2.94,2.94]},{ x:'08/24/2022',y:[2.65,2.65,2.65,2.65]},{ x:'08/25/2022',y:[2.39,2.39,2.39,2.39]},{ x:'08/26/2022',y:[2.16,2.16,2.16,2.16]},{ x:'08/29/2022',y:[1.95,1.95,1.95,1.95]},{ x:'08/30/2022',y:[1.76,1.76,1.76,1.76]},{ x:'08/31/2022',y:[1.59,1.77,1.59,1.75]},{ x:'09/01/2022',y:[1.63,1.63,1.58,1.58]},{ x:'09/02/2022',y:[1.43,1.73,1.43,1.73]},{ x:'09/05/2022',y:[1.89,1.90,1.89,1.90]},{ x:'09/06/2022',y:[2.09,2.09,1.71,1.71]},{ x:'09/07/2022',y:[1.56,1.56,1.54,1.54]},{ x:'09/08/2022',y:[1.56,1.56,1.39,1.39]},{ x:'09/12/2022',y:[1.26,1.42,1.26,1.42]},{ x:'09/13/2022',y:[1.34,1.43,1.34,1.43]},{ x:'09/14/2022',y:[1.36,1.53,1.36,1.53]},{ x:'09/15/2022',y:[1.51,1.68,1.51,1.68]},{ x:'09/16/2022',y:[1.68,1.84,1.68,1.80]},{ x:'09/19/2022',y:[1.71,1.73,1.62,1.73]},{ x:'09/20/2022',y:[1.56,1.66,1.56,1.56]},{ x:'09/21/2022',y:[1.41,1.41,1.41,1.41]},{ x:'09/22/2022',y:[1.42,1.55,1.42,1.55]},{ x:'09/23/2022',y:[1.53,1.70,1.53,1.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3383 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());