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:'02/06/2023',y:[22.13,22.22,22.12,22.16]},{ x:'02/07/2023',y:[22.17,22.23,22.15,22.18]},{ x:'02/08/2023',y:[22.22,22.22,22.13,22.15]},{ x:'02/09/2023',y:[22.12,22.19,22.09,22.17]},{ x:'02/10/2023',y:[22.14,22.24,22.10,22.21]},{ x:'02/13/2023',y:[22.23,22.33,22.15,22.31]},{ x:'02/14/2023',y:[22.35,22.45,22.35,22.40]},{ x:'02/15/2023',y:[22.40,22.40,22.30,22.31]},{ x:'02/16/2023',y:[22.31,22.52,22.31,22.48]},{ x:'02/17/2023',y:[22.44,22.46,22.38,22.43]},{ x:'02/20/2023',y:[22.43,22.59,22.41,22.53]},{ x:'02/21/2023',y:[22.50,22.50,22.42,22.47]},{ x:'02/22/2023',y:[22.40,22.48,22.27,22.45]},{ x:'02/23/2023',y:[22.45,22.60,22.45,22.57]},{ x:'02/24/2023',y:[22.56,22.57,22.48,22.48]},{ x:'03/01/2023',y:[22.40,22.41,22.25,22.36]},{ x:'03/02/2023',y:[22.33,22.42,22.25,22.38]},{ x:'03/03/2023',y:[22.41,22.49,22.41,22.45]},{ x:'03/06/2023',y:[22.46,22.68,22.46,22.59]},{ x:'03/07/2023',y:[22.59,22.73,22.57,22.71]},{ x:'03/08/2023',y:[22.69,22.69,22.60,22.67]},{ x:'03/09/2023',y:[22.67,22.67,22.50,22.51]},{ x:'03/10/2023',y:[22.48,22.48,22.32,22.35]},{ x:'03/13/2023',y:[22.30,22.42,22.22,22.33]},{ x:'03/14/2023',y:[22.25,22.29,22.17,22.24]},{ x:'03/15/2023',y:[22.24,22.34,22.20,22.22]},{ x:'03/16/2023',y:[22.20,22.20,22.04,22.07]},{ x:'03/17/2023',y:[22.07,22.26,22.07,22.25]},{ x:'03/20/2023',y:[22.25,22.27,22.16,22.18]},{ x:'03/21/2023',y:[22.18,22.43,22.18,22.38]},{ x:'03/22/2023',y:[22.44,22.50,22.40,22.48]},{ x:'03/23/2023',y:[22.45,22.64,22.42,22.55]},{ x:'03/24/2023',y:[22.57,22.70,22.55,22.68]},{ x:'03/27/2023',y:[22.68,22.72,22.66,22.66]},{ x:'03/28/2023',y:[22.66,22.70,22.60,22.64]},{ x:'03/29/2023',y:[22.64,22.70,22.63,22.69]},{ x:'03/30/2023',y:[22.70,22.77,22.70,22.72]},{ x:'03/31/2023',y:[22.75,22.92,22.75,22.81]},{ x:'04/06/2023',y:[22.81,22.88,22.77,22.82]},{ x:'04/07/2023',y:[22.88,22.88,22.76,22.78]},{ x:'04/10/2023',y:[22.80,22.89,22.80,22.88]},{ x:'04/11/2023',y:[22.89,23.03,22.89,22.98]},{ x:'04/12/2023',y:[22.99,23.05,22.99,23.01]},{ x:'04/13/2023',y:[23.01,23.09,23.00,23.05]},{ x:'04/14/2023',y:[23.05,23.13,23.04,23.11]},{ x:'04/17/2023',y:[23.11,23.15,23.09,23.13]},{ x:'04/18/2023',y:[23.13,23.17,23.10,23.13]},{ x:'04/19/2023',y:[23.13,23.24,23.11,23.11]},{ x:'04/20/2023',y:[23.11,23.11,23.01,23.01]},{ x:'04/21/2023',y:[23.01,23.11,23.01,23.05]},{ x:'04/24/2023',y:[23.04,23.16,23.02,23.14]},{ x:'04/25/2023',y:[23.14,23.20,22.98,22.98]},{ x:'04/26/2023',y:[22.97,23.09,22.97,23.05]},{ x:'04/27/2023',y:[23.05,23.09,23.02,23.06]},{ x:'04/28/2023',y:[23.09,23.18,23.07,23.11]},{ x:'05/02/2023',y:[23.12,23.29,23.12,23.27]},{ x:'05/03/2023',y:[23.20,23.25,23.20,23.24]},{ x:'05/04/2023',y:[23.24,23.28,23.17,23.27]},{ x:'05/05/2023',y:[23.27,23.34,23.25,23.27]},{ x:'05/08/2023',y:[23.29,23.40,23.29,23.38]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00701 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());