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/18/2024',y:[40.30,40.30,40.22,40.23]},{ x:'03/19/2024',y:[40.37,40.46,40.37,40.46]},{ x:'03/20/2024',y:[40.50,40.60,40.50,40.60]},{ x:'03/21/2024',y:[40.65,40.65,40.54,40.62]},{ x:'03/22/2024',y:[40.67,40.79,40.67,40.79]},{ x:'03/25/2024',y:[40.89,40.89,40.62,40.69]},{ x:'03/26/2024',y:[40.63,40.80,40.63,40.80]},{ x:'03/27/2024',y:[40.80,40.90,40.80,40.88]},{ x:'03/28/2024',y:[40.86,40.89,40.82,40.82]},{ x:'03/29/2024',y:[40.90,41.03,40.87,40.94]},{ x:'04/01/2024',y:[40.91,40.91,40.85,40.86]},{ x:'04/02/2024',y:[40.96,40.96,40.92,40.94]},{ x:'04/03/2024',y:[40.90,40.99,40.89,40.92]},{ x:'04/08/2024',y:[41.02,41.02,40.91,40.94]},{ x:'04/09/2024',y:[40.95,40.96,40.94,40.94]},{ x:'04/10/2024',y:[40.90,40.90,40.82,40.83]},{ x:'04/11/2024',y:[40.87,40.98,40.87,40.97]},{ x:'04/12/2024',y:[40.90,41.09,40.90,41.05]},{ x:'04/15/2024',y:[41.05,41.22,41.05,41.15]},{ x:'04/16/2024',y:[41.27,41.47,41.27,41.47]},{ x:'04/17/2024',y:[41.36,41.37,41.30,41.31]},{ x:'04/18/2024',y:[41.07,41.07,40.95,40.95]},{ x:'04/19/2024',y:[41.13,41.27,41.13,41.16]},{ x:'04/22/2024',y:[41.08,41.23,41.08,41.20]},{ x:'04/23/2024',y:[41.20,41.31,41.20,41.26]},{ x:'04/24/2024',y:[41.25,41.25,41.13,41.14]},{ x:'04/25/2024',y:[41.14,41.34,41.14,41.25]},{ x:'04/26/2024',y:[41.15,41.23,41.15,41.22]},{ x:'04/29/2024',y:[41.20,41.28,41.20,41.23]},{ x:'04/30/2024',y:[41.18,41.26,41.17,41.26]},{ x:'05/02/2024',y:[41.26,41.26,41.25,41.25]},{ x:'05/03/2024',y:[41.15,41.15,41.08,41.10]},{ x:'05/06/2024',y:[41.10,41.14,41.07,41.12]},{ x:'05/07/2024',y:[41.14,41.24,41.14,41.24]},{ x:'05/08/2024',y:[41.32,41.32,41.27,41.27]},{ x:'05/09/2024',y:[41.25,41.25,41.23,41.25]},{ x:'05/10/2024',y:[41.30,41.33,41.30,41.31]},{ x:'05/13/2024',y:[41.30,41.30,41.29,41.30]},{ x:'05/14/2024',y:[41.25,41.29,41.25,41.25]},{ x:'05/15/2024',y:[41.24,41.24,41.04,41.04]},{ x:'05/16/2024',y:[40.98,41.02,40.94,40.95]},{ x:'05/17/2024',y:[40.88,41.11,40.88,41.09]},{ x:'05/20/2024',y:[41.09,41.10,41.09,41.09]},{ x:'05/21/2024',y:[41.17,41.19,41.15,41.18]},{ x:'05/22/2024',y:[41.19,41.19,41.15,41.16]},{ x:'05/23/2024',y:[41.18,41.18,41.09,41.09]},{ x:'05/24/2024',y:[41.08,41.10,41.08,41.10]},{ x:'06/11/2024',y:[41.21,41.36,41.21,41.31]},{ x:'06/12/2024',y:[41.37,41.38,41.35,41.35]},{ x:'06/13/2024',y:[41.29,41.35,41.29,41.34]},{ x:'06/14/2024',y:[41.46,41.49,41.44,41.47]},{ x:'06/17/2024',y:[41.37,41.46,41.37,41.43]},{ x:'06/18/2024',y:[41.41,41.47,41.40,41.45]},{ x:'06/19/2024',y:[41.47,41.49,41.47,41.47]},{ x:'06/20/2024',y:[41.47,41.47,41.43,41.43]},{ x:'06/21/2024',y:[41.47,41.47,41.43,41.43]},{ x:'06/24/2024',y:[41.43,41.49,41.43,41.48]},{ x:'06/25/2024',y:[41.62,41.62,41.52,41.58]},{ x:'06/26/2024',y:[41.58,41.71,41.58,41.67]},{ x:'06/27/2024',y:[41.70,41.74,41.70,41.72]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00694b 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());