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:[10.75,10.75,10.72,10.74]},{ x:'02/21/2023',y:[10.75,10.76,10.73,10.75]},{ x:'02/22/2023',y:[10.50,10.54,10.45,10.51]},{ x:'02/23/2023',y:[10.51,10.51,10.47,10.49]},{ x:'02/24/2023',y:[10.51,10.52,10.47,10.52]},{ x:'03/01/2023',y:[10.45,10.45,10.35,10.39]},{ x:'03/02/2023',y:[10.23,10.23,10.15,10.20]},{ x:'03/03/2023',y:[10.20,10.20,10.15,10.18]},{ x:'03/06/2023',y:[10.22,10.35,10.22,10.34]},{ x:'03/07/2023',y:[10.36,10.37,10.34,10.37]},{ x:'03/08/2023',y:[10.23,10.28,10.19,10.26]},{ x:'03/09/2023',y:[10.26,10.26,10.22,10.24]},{ x:'03/10/2023',y:[10.05,10.17,9.92,10.13]},{ x:'03/13/2023',y:[9.96,10.04,9.95,9.99]},{ x:'03/14/2023',y:[9.96,9.96,9.93,9.94]},{ x:'03/15/2023',y:[9.84,9.93,9.83,9.91]},{ x:'03/16/2023',y:[9.85,9.86,9.80,9.80]},{ x:'03/17/2023',y:[9.81,9.88,9.81,9.85]},{ x:'03/20/2023',y:[9.84,9.94,9.81,9.92]},{ x:'03/21/2023',y:[9.68,9.80,9.67,9.76]},{ x:'03/22/2023',y:[9.83,9.83,9.79,9.81]},{ x:'03/23/2023',y:[9.80,9.80,9.76,9.76]},{ x:'03/24/2023',y:[9.71,9.71,9.62,9.64]},{ x:'03/27/2023',y:[9.64,9.68,9.64,9.65]},{ x:'03/28/2023',y:[9.66,9.66,9.61,9.63]},{ x:'03/29/2023',y:[9.63,9.65,9.63,9.65]},{ x:'03/30/2023',y:[9.69,9.73,9.67,9.72]},{ x:'03/31/2023',y:[9.73,9.73,9.68,9.69]},{ x:'04/06/2023',y:[9.70,9.72,9.66,9.66]},{ x:'04/07/2023',y:[9.66,9.66,9.52,9.54]},{ x:'04/10/2023',y:[9.50,9.59,9.42,9.48]},{ x:'04/11/2023',y:[9.28,9.34,9.16,9.33]},{ x:'04/12/2023',y:[9.21,9.24,9.18,9.22]},{ x:'04/13/2023',y:[9.08,9.11,9.06,9.09]},{ x:'04/14/2023',y:[9.07,9.11,9.06,9.11]},{ x:'04/17/2023',y:[9.06,9.06,9.01,9.01]},{ x:'04/18/2023',y:[9.12,9.13,9.09,9.11]},{ x:'04/19/2023',y:[9.08,9.08,9.03,9.03]},{ x:'04/20/2023',y:[9.10,9.15,9.10,9.14]},{ x:'04/21/2023',y:[9.12,9.15,9.11,9.15]},{ x:'04/24/2023',y:[9.16,9.19,9.15,9.15]},{ x:'04/25/2023',y:[9.14,9.14,9.10,9.11]},{ x:'04/26/2023',y:[8.97,9.02,8.95,8.98]},{ x:'04/27/2023',y:[8.96,8.97,8.95,8.96]},{ x:'04/28/2023',y:[9.18,9.19,9.13,9.18]},{ x:'05/02/2023',y:[9.13,9.13,9.07,9.12]},{ x:'05/03/2023',y:[8.91,8.92,8.86,8.88]},{ x:'05/04/2023',y:[8.85,8.86,8.76,8.79]},{ x:'05/05/2023',y:[8.60,8.62,8.58,8.60]},{ x:'05/08/2023',y:[8.79,8.80,8.77,8.78]},{ x:'05/09/2023',y:[8.79,8.80,8.78,8.78]},{ x:'05/10/2023',y:[8.76,8.76,8.72,8.72]},{ x:'05/11/2023',y:[8.76,8.76,8.72,8.74]},{ x:'05/12/2023',y:[8.77,8.79,8.76,8.79]},{ x:'05/15/2023',y:[8.77,8.77,8.74,8.76]},{ x:'05/16/2023',y:[8.79,8.82,8.79,8.82]},{ x:'05/17/2023',y:[8.72,8.74,8.71,8.73]},{ x:'05/18/2023',y:[8.87,8.89,8.85,8.88]},{ x:'05/19/2023',y:[8.97,9.00,8.97,8.99]},{ x:'05/22/2023',y:[8.99,8.99,8.92,8.94]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00712 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());