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:'01/04/2023',y:[15.11,15.16,15.05,15.06]},{ x:'01/05/2023',y:[15.15,15.22,15.10,15.10]},{ x:'01/06/2023',y:[15.12,15.25,15.12,15.25]},{ x:'01/09/2023',y:[15.25,15.41,15.25,15.41]},{ x:'01/10/2023',y:[15.41,15.50,15.40,15.44]},{ x:'01/11/2023',y:[15.46,15.47,15.41,15.45]},{ x:'01/12/2023',y:[15.45,15.45,15.35,15.35]},{ x:'01/13/2023',y:[15.41,15.41,15.28,15.28]},{ x:'01/16/2023',y:[15.30,15.30,15.19,15.23]},{ x:'01/17/2023',y:[15.23,15.33,15.23,15.32]},{ x:'01/30/2023',y:[15.50,15.73,15.50,15.73]},{ x:'01/31/2023',y:[15.75,15.80,15.75,15.76]},{ x:'02/01/2023',y:[15.76,15.90,15.76,15.90]},{ x:'02/02/2023',y:[15.93,16.14,15.93,16.14]},{ x:'02/03/2023',y:[17.20,17.30,16.27,16.30]},{ x:'02/06/2023',y:[16.42,16.42,16.07,16.07]},{ x:'02/07/2023',y:[16.10,16.15,16.04,16.14]},{ x:'02/08/2023',y:[16.25,16.42,16.24,16.37]},{ x:'02/09/2023',y:[16.30,16.34,16.30,16.31]},{ x:'02/10/2023',y:[16.25,16.26,16.15,16.19]},{ x:'02/13/2023',y:[16.19,16.19,16.00,16.10]},{ x:'02/14/2023',y:[16.28,16.29,16.20,16.29]},{ x:'02/15/2023',y:[16.29,16.29,16.14,16.17]},{ x:'02/16/2023',y:[16.17,16.33,16.17,16.33]},{ x:'02/17/2023',y:[16.28,16.30,16.22,16.27]},{ x:'02/20/2023',y:[16.30,16.41,16.30,16.38]},{ x:'02/21/2023',y:[16.38,16.56,16.37,16.53]},{ x:'02/22/2023',y:[16.45,16.48,16.37,16.42]},{ x:'02/23/2023',y:[16.43,16.66,16.43,16.64]},{ x:'02/24/2023',y:[16.65,16.80,16.57,16.57]},{ x:'03/01/2023',y:[16.55,16.55,16.34,16.53]},{ x:'03/02/2023',y:[16.63,16.63,16.45,16.62]},{ x:'03/03/2023',y:[16.65,16.69,16.63,16.69]},{ x:'03/06/2023',y:[16.72,16.87,16.72,16.87]},{ x:'03/07/2023',y:[16.87,17.00,16.84,16.99]},{ x:'03/08/2023',y:[16.99,16.99,16.81,16.94]},{ x:'03/09/2023',y:[17.99,17.99,17.01,17.02]},{ x:'03/10/2023',y:[16.90,16.95,16.82,16.84]},{ x:'03/13/2023',y:[16.80,16.85,16.62,16.82]},{ x:'03/14/2023',y:[16.78,16.78,16.54,16.59]},{ x:'03/15/2023',y:[16.61,16.81,16.59,16.59]},{ x:'03/16/2023',y:[16.53,16.55,16.44,16.45]},{ x:'03/17/2023',y:[16.50,16.78,16.36,16.71]},{ x:'03/20/2023',y:[16.75,16.78,16.66,16.66]},{ x:'03/21/2023',y:[16.75,16.76,16.70,16.73]},{ x:'03/22/2023',y:[16.75,16.84,16.75,16.84]},{ x:'03/23/2023',y:[16.84,16.90,16.77,16.88]},{ x:'03/24/2023',y:[16.88,16.96,16.88,16.96]},{ x:'03/27/2023',y:[16.97,17.00,16.94,16.96]},{ x:'03/28/2023',y:[16.96,16.96,16.78,16.81]},{ x:'03/29/2023',y:[16.81,16.83,16.73,16.76]},{ x:'03/30/2023',y:[16.80,16.94,16.80,16.92]},{ x:'03/31/2023',y:[16.96,17.09,16.96,17.01]},{ x:'04/06/2023',y:[17.07,17.07,16.90,16.98]},{ x:'04/07/2023',y:[17.03,17.08,17.02,17.04]},{ x:'04/10/2023',y:[17.14,17.14,17.07,17.13]},{ x:'04/11/2023',y:[17.20,17.28,17.14,17.26]},{ x:'04/12/2023',y:[17.34,17.37,17.32,17.34]},{ x:'04/13/2023',y:[17.44,17.44,17.21,17.22]},{ x:'04/14/2023',y:[17.23,17.34,17.23,17.33]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00918 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());