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/23/2024',y:[15.16,15.16,15.16,15.16]},{ x:'01/24/2024',y:[15.17,15.18,15.17,15.18]},{ x:'01/25/2024',y:[15.31,15.31,15.31,15.31]},{ x:'01/26/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/29/2024',y:[15.28,15.30,15.28,15.30]},{ x:'01/30/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/31/2024',y:[15.31,15.31,15.31,15.31]},{ x:'02/01/2024',y:[15.12,15.12,15.10,15.12]},{ x:'02/02/2024',y:[0.00,0.00,0.00,0.00]},{ x:'02/05/2024',y:[0.00,0.00,0.00,0.00]},{ x:'02/15/2024',y:[15.81,15.84,15.81,15.84]},{ x:'02/16/2024',y:[15.88,15.88,15.82,15.82]},{ x:'02/19/2024',y:[15.82,15.83,15.82,15.83]},{ x:'02/20/2024',y:[15.93,15.94,15.93,15.94]},{ x:'02/21/2024',y:[0.00,0.00,0.00,0.00]},{ x:'02/22/2024',y:[15.90,16.10,15.90,16.10]},{ x:'02/23/2024',y:[16.25,16.41,16.25,16.38]},{ x:'02/26/2024',y:[16.42,16.48,16.42,16.48]},{ x:'02/27/2024',y:[16.52,16.52,16.23,16.37]},{ x:'02/29/2024',y:[16.37,16.40,16.31,16.39]},{ x:'03/01/2024',y:[16.46,16.48,16.32,16.32]},{ x:'03/04/2024',y:[16.55,16.71,16.55,16.71]},{ x:'03/05/2024',y:[16.79,16.80,16.79,16.80]},{ x:'03/06/2024',y:[16.96,17.01,16.96,17.01]},{ x:'03/07/2024',y:[17.05,17.27,17.05,17.27]},{ x:'03/08/2024',y:[17.27,17.40,17.27,17.40]},{ x:'03/11/2024',y:[17.40,17.40,17.31,17.32]},{ x:'03/12/2024',y:[17.40,17.40,17.40,17.40]},{ x:'03/13/2024',y:[0.00,0.00,0.00,0.00]},{ x:'03/14/2024',y:[0.00,0.00,0.00,0.00]},{ x:'03/15/2024',y:[17.04,17.04,17.04,17.04]},{ x:'03/18/2024',y:[17.13,17.21,17.13,17.21]},{ x:'03/19/2024',y:[17.34,17.34,17.34,17.34]},{ x:'03/20/2024',y:[17.37,17.37,17.37,17.37]},{ x:'03/21/2024',y:[17.44,17.50,17.44,17.49]},{ x:'03/22/2024',y:[17.44,17.44,17.44,17.44]},{ x:'03/25/2024',y:[0.00,0.00,0.00,0.00]},{ x:'03/26/2024',y:[0.00,0.00,0.00,0.00]},{ x:'03/27/2024',y:[0.00,0.00,0.00,0.00]},{ x:'03/28/2024',y:[17.35,17.46,17.35,17.43]},{ x:'03/29/2024',y:[17.52,17.69,17.51,17.69]},{ x:'04/01/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/02/2024',y:[17.59,17.59,17.59,17.59]},{ x:'04/03/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/08/2024',y:[17.54,17.54,17.54,17.54]},{ x:'04/09/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/10/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/11/2024',y:[17.80,17.80,17.80,17.80]},{ x:'04/12/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/15/2024',y:[17.60,17.60,17.60,17.60]},{ x:'04/16/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/17/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/18/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/19/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/22/2024',y:[16.12,16.12,16.12,16.12]},{ x:'04/23/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/24/2024',y:[16.62,16.62,16.62,16.62]},{ x:'04/25/2024',y:[16.49,16.49,16.49,16.49]},{ x:'04/26/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/29/2024',y:[0.00,0.00,0.00,0.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020019 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());