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/20/2023',y:[38.74,38.87,38.67,38.83]},{ x:'02/21/2023',y:[38.91,38.96,38.80,38.91]},{ x:'02/22/2023',y:[38.79,38.91,38.61,38.88]},{ x:'02/23/2023',y:[39.01,39.19,39.01,39.14]},{ x:'02/24/2023',y:[39.25,39.32,39.17,39.26]},{ x:'03/01/2023',y:[39.24,39.25,38.88,39.17]},{ x:'03/02/2023',y:[39.26,39.38,39.06,39.34]},{ x:'03/03/2023',y:[39.60,39.70,39.51,39.67]},{ x:'03/06/2023',y:[39.96,40.12,39.85,40.05]},{ x:'03/07/2023',y:[40.15,40.21,40.05,40.16]},{ x:'03/08/2023',y:[40.12,40.15,40.01,40.15]},{ x:'03/09/2023',y:[40.28,40.28,40.06,40.10]},{ x:'03/10/2023',y:[39.95,39.96,39.70,39.87]},{ x:'03/13/2023',y:[39.72,39.75,39.39,39.67]},{ x:'03/14/2023',y:[39.52,39.55,39.36,39.40]},{ x:'03/15/2023',y:[39.60,39.67,39.46,39.46]},{ x:'03/16/2023',y:[39.40,39.41,39.22,39.30]},{ x:'03/17/2023',y:[38.89,38.91,38.67,38.80]},{ x:'03/20/2023',y:[39.00,39.01,38.83,38.87]},{ x:'03/21/2023',y:[39.00,39.24,38.99,39.13]},{ x:'03/22/2023',y:[39.30,39.45,39.26,39.44]},{ x:'03/23/2023',y:[39.45,39.69,39.36,39.61]},{ x:'03/24/2023',y:[39.71,39.72,39.59,39.69]},{ x:'03/27/2023',y:[39.65,39.86,39.65,39.84]},{ x:'03/28/2023',y:[39.88,39.88,39.62,39.71]},{ x:'03/29/2023',y:[39.71,39.83,39.64,39.73]},{ x:'03/30/2023',y:[39.80,40.00,39.80,39.99]},{ x:'03/31/2023',y:[40.13,40.23,40.10,40.12]},{ x:'04/06/2023',y:[40.19,40.23,39.97,40.21]},{ x:'04/07/2023',y:[40.25,40.40,40.19,40.22]},{ x:'04/10/2023',y:[40.22,40.44,40.20,40.42]},{ x:'04/11/2023',y:[40.50,40.68,40.42,40.65]},{ x:'04/12/2023',y:[40.70,40.93,40.67,40.88]},{ x:'04/13/2023',y:[40.91,40.92,40.70,40.71]},{ x:'04/14/2023',y:[40.73,40.86,40.68,40.81]},{ x:'04/17/2023',y:[40.81,40.89,40.78,40.88]},{ x:'04/18/2023',y:[40.88,40.90,40.65,40.72]},{ x:'04/19/2023',y:[40.72,41.00,40.71,40.72]},{ x:'04/20/2023',y:[40.70,40.70,40.48,40.51]},{ x:'04/21/2023',y:[40.51,40.62,40.33,40.35]},{ x:'04/24/2023',y:[40.30,40.53,40.24,40.47]},{ x:'04/25/2023',y:[40.52,40.58,40.00,40.02]},{ x:'04/26/2023',y:[39.98,40.27,39.95,40.25]},{ x:'04/27/2023',y:[40.26,40.53,40.20,40.43]},{ x:'04/28/2023',y:[40.75,40.78,40.57,40.66]},{ x:'05/02/2023',y:[40.67,41.03,40.67,41.03]},{ x:'05/03/2023',y:[40.99,41.02,40.85,41.00]},{ x:'05/04/2023',y:[41.00,41.15,40.86,41.15]},{ x:'05/05/2023',y:[41.22,41.23,41.04,41.09]},{ x:'05/08/2023',y:[41.20,41.34,41.19,41.28]},{ x:'05/09/2023',y:[41.33,41.37,41.14,41.32]},{ x:'05/10/2023',y:[41.32,41.32,40.92,41.01]},{ x:'05/11/2023',y:[41.16,41.16,40.89,40.94]},{ x:'05/12/2023',y:[40.90,41.13,40.66,41.11]},{ x:'05/15/2023',y:[41.08,41.17,40.88,41.05]},{ x:'05/16/2023',y:[41.25,41.29,41.07,41.29]},{ x:'05/17/2023',y:[41.37,41.68,41.27,41.65]},{ x:'05/18/2023',y:[41.83,42.02,41.75,41.93]},{ x:'05/19/2023',y:[42.00,42.31,41.95,42.26]},{ x:'05/22/2023',y:[42.26,42.46,42.24,42.32]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00713 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());