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:'03/03/2022',y:[40.55,40.55,40.51,40.55]},{ x:'03/04/2022',y:[40.55,40.55,40.55,40.55]},{ x:'03/07/2022',y:[40.80,40.80,40.60,40.71]},{ x:'03/08/2022',y:[40.83,40.85,40.83,40.85]},{ x:'03/09/2022',y:[40.83,40.85,40.82,40.85]},{ x:'03/10/2022',y:[40.82,40.82,40.82,40.82]},{ x:'03/11/2022',y:[40.77,40.81,40.52,40.81]},{ x:'03/14/2022',y:[41.13,41.13,40.70,40.80]},{ x:'03/15/2022',y:[40.81,40.81,40.81,40.81]},{ x:'03/16/2022',y:[40.78,40.92,40.78,40.92]},{ x:'03/17/2022',y:[41.11,41.11,41.11,41.11]},{ x:'03/18/2022',y:[40.53,40.55,40.53,40.55]},{ x:'03/21/2022',y:[40.72,40.99,40.72,40.99]},{ x:'03/22/2022',y:[41.07,41.11,41.07,41.08]},{ x:'03/23/2022',y:[40.91,40.91,40.91,40.91]},{ x:'03/24/2022',y:[40.97,40.97,40.97,40.97]},{ x:'03/25/2022',y:[41.15,41.15,41.15,41.15]},{ x:'03/28/2022',y:[41.15,41.24,41.15,41.24]},{ x:'03/29/2022',y:[41.34,41.38,41.34,41.38]},{ x:'03/30/2022',y:[41.30,41.30,41.19,41.19]},{ x:'03/31/2022',y:[41.22,41.34,41.22,41.33]},{ x:'04/01/2022',y:[41.43,41.43,41.43,41.43]},{ x:'04/06/2022',y:[41.53,41.53,41.51,41.51]},{ x:'04/07/2022',y:[41.54,41.66,41.54,41.63]},{ x:'04/08/2022',y:[41.87,41.87,41.85,41.86]},{ x:'04/11/2022',y:[41.88,41.96,41.88,41.93]},{ x:'04/12/2022',y:[42.18,42.21,42.17,42.21]},{ x:'04/13/2022',y:[42.21,42.21,41.99,41.99]},{ x:'04/14/2022',y:[41.96,41.96,41.96,41.96]},{ x:'04/15/2022',y:[41.96,42.12,41.96,42.12]},{ x:'04/18/2022',y:[42.17,42.23,42.17,42.23]},{ x:'04/19/2022',y:[42.18,42.18,42.09,42.17]},{ x:'04/20/2022',y:[41.82,41.95,41.82,41.95]},{ x:'04/21/2022',y:[41.63,41.63,41.51,41.51]},{ x:'04/22/2022',y:[41.45,41.45,41.45,41.45]},{ x:'04/25/2022',y:[41.09,41.09,41.09,41.09]},{ x:'04/26/2022',y:[41.01,41.09,41.01,41.09]},{ x:'04/27/2022',y:[41.03,41.03,41.03,41.03]},{ x:'04/28/2022',y:[40.92,40.92,40.90,40.91]},{ x:'04/29/2022',y:[40.69,40.69,40.43,40.62]},{ x:'05/03/2022',y:[40.88,40.88,40.79,40.79]},{ x:'05/04/2022',y:[40.81,40.81,40.81,40.81]},{ x:'05/05/2022',y:[40.74,40.77,40.74,40.77]},{ x:'05/06/2022',y:[40.70,40.70,40.53,40.60]},{ x:'05/09/2022',y:[40.51,40.54,40.41,40.42]},{ x:'05/10/2022',y:[40.34,40.37,40.34,40.37]},{ x:'05/11/2022',y:[40.33,40.42,40.33,40.42]},{ x:'05/12/2022',y:[40.40,40.40,40.40,40.40]},{ x:'05/13/2022',y:[40.19,40.19,40.14,40.14]},{ x:'05/16/2022',y:[40.19,40.19,40.19,40.19]},{ x:'05/17/2022',y:[40.17,40.17,40.10,40.10]},{ x:'05/18/2022',y:[40.28,40.28,40.28,40.28]},{ x:'05/19/2022',y:[40.40,40.40,40.40,40.40]},{ x:'05/20/2022',y:[40.49,40.49,40.49,40.49]},{ x:'05/23/2022',y:[40.60,40.68,40.60,40.68]},{ x:'05/24/2022',y:[40.77,40.77,40.71,40.71]},{ x:'05/25/2022',y:[40.71,40.71,40.71,40.71]},{ x:'05/26/2022',y:[40.33,40.33,40.33,40.33]},{ x:'05/27/2022',y:[40.16,40.16,40.05,40.05]},{ x:'05/30/2022',y:[40.33,40.38,40.33,40.38]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00838b 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());