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/07/2023',y:[42.94,43.19,42.70,42.86]},{ x:'02/08/2023',y:[42.86,43.35,42.71,43.10]},{ x:'02/09/2023',y:[43.38,43.39,42.90,43.30]},{ x:'02/10/2023',y:[43.27,43.27,42.86,43.12]},{ x:'02/13/2023',y:[43.12,43.24,42.62,42.80]},{ x:'02/14/2023',y:[43.13,43.15,42.87,43.07]},{ x:'02/15/2023',y:[43.22,43.60,43.14,43.56]},{ x:'02/16/2023',y:[43.94,44.58,43.94,44.53]},{ x:'02/17/2023',y:[43.80,44.05,43.68,43.93]},{ x:'02/20/2023',y:[43.68,43.90,43.50,43.74]},{ x:'02/21/2023',y:[43.65,43.65,43.17,43.43]},{ x:'02/22/2023',y:[43.01,43.01,42.30,42.35]},{ x:'02/23/2023',y:[42.14,42.14,41.39,41.80]},{ x:'02/24/2023',y:[41.80,41.94,41.57,41.58]},{ x:'03/01/2023',y:[40.88,41.17,40.54,41.09]},{ x:'03/02/2023',y:[41.38,41.38,40.71,40.87]},{ x:'03/03/2023',y:[40.86,41.73,40.86,41.73]},{ x:'03/06/2023',y:[42.00,42.78,42.00,42.73]},{ x:'03/07/2023',y:[42.50,42.86,42.38,42.66]},{ x:'03/08/2023',y:[42.26,42.44,41.99,42.39]},{ x:'03/09/2023',y:[42.55,42.71,42.10,42.31]},{ x:'03/10/2023',y:[41.67,41.67,40.50,40.96]},{ x:'03/13/2023',y:[40.72,41.33,40.55,40.95]},{ x:'03/14/2023',y:[39.96,39.98,39.34,39.39]},{ x:'03/15/2023',y:[40.08,40.08,39.48,39.50]},{ x:'03/16/2023',y:[38.83,39.09,38.40,39.09]},{ x:'03/17/2023',y:[39.38,39.64,39.22,39.26]},{ x:'03/20/2023',y:[39.63,39.63,38.38,38.63]},{ x:'03/21/2023',y:[39.10,39.33,39.01,39.22]},{ x:'03/22/2023',y:[39.60,39.80,39.43,39.50]},{ x:'03/23/2023',y:[39.35,39.62,39.02,39.49]},{ x:'03/24/2023',y:[39.31,39.31,38.71,38.90]},{ x:'03/27/2023',y:[38.70,39.04,38.50,38.82]},{ x:'03/28/2023',y:[38.87,39.15,38.60,38.60]},{ x:'03/29/2023',y:[38.62,39.03,38.62,38.89]},{ x:'03/30/2023',y:[39.16,39.31,39.04,39.14]},{ x:'03/31/2023',y:[39.45,40.04,39.40,39.88]},{ x:'04/06/2023',y:[40.78,41.25,40.78,41.25]},{ x:'04/07/2023',y:[41.31,41.59,41.31,41.52]},{ x:'04/10/2023',y:[41.57,41.57,41.29,41.31]},{ x:'04/11/2023',y:[41.44,41.93,41.44,41.76]},{ x:'04/12/2023',y:[41.94,42.06,41.83,41.96]},{ x:'04/13/2023',y:[42.10,42.27,41.95,41.95]},{ x:'04/14/2023',y:[42.14,42.45,42.09,42.15]},{ x:'04/17/2023',y:[42.01,42.06,41.21,41.58]},{ x:'04/18/2023',y:[41.55,41.75,41.32,41.50]},{ x:'04/19/2023',y:[41.41,41.48,41.27,41.33]},{ x:'04/20/2023',y:[41.40,41.65,41.15,41.20]},{ x:'04/21/2023',y:[41.40,41.44,41.11,41.12]},{ x:'04/24/2023',y:[41.39,41.60,41.25,41.32]},{ x:'04/25/2023',y:[41.96,41.96,41.67,41.86]},{ x:'04/26/2023',y:[41.70,41.85,41.67,41.82]},{ x:'04/27/2023',y:[41.99,42.20,41.91,42.15]},{ x:'04/28/2023',y:[42.70,42.93,42.49,42.70]},{ x:'05/02/2023',y:[43.36,43.78,43.36,43.69]},{ x:'05/03/2023',y:[43.40,43.42,43.15,43.39]},{ x:'05/04/2023',y:[43.00,43.45,42.92,43.45]},{ x:'05/05/2023',y:[43.70,43.79,43.36,43.72]},{ x:'05/08/2023',y:[43.45,43.92,43.24,43.87]},{ x:'05/09/2023',y:[43.99,44.37,43.99,44.36]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00653l 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());