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:'04/26/2024',y:[23.02,23.21,23.02,23.21]},{ x:'04/29/2024',y:[23.59,23.61,23.59,23.61]},{ x:'04/30/2024',y:[23.61,23.61,23.61,23.61]},{ x:'05/02/2024',y:[23.60,23.62,23.60,23.62]},{ x:'05/03/2024',y:[23.66,23.73,23.66,23.73]},{ x:'05/06/2024',y:[23.66,23.66,23.60,23.62]},{ x:'05/07/2024',y:[23.61,23.61,23.61,23.61]},{ x:'05/08/2024',y:[23.74,23.74,23.48,23.48]},{ x:'05/09/2024',y:[23.60,23.72,23.57,23.57]},{ x:'05/10/2024',y:[23.56,23.88,23.56,23.88]},{ x:'05/13/2024',y:[24.00,24.28,24.00,24.20]},{ x:'05/14/2024',y:[24.49,24.60,24.49,24.52]},{ x:'05/15/2024',y:[24.66,24.90,24.64,24.67]},{ x:'05/16/2024',y:[24.96,25.00,24.84,24.88]},{ x:'05/17/2024',y:[24.94,24.94,24.62,24.68]},{ x:'05/20/2024',y:[24.51,24.52,24.51,24.52]},{ x:'05/21/2024',y:[24.49,24.54,24.47,24.54]},{ x:'05/22/2024',y:[24.74,24.82,24.74,24.82]},{ x:'05/23/2024',y:[24.88,24.88,24.61,24.69]},{ x:'05/24/2024',y:[24.59,24.79,24.59,24.77]},{ x:'06/11/2024',y:[24.58,24.58,24.54,24.54]},{ x:'06/12/2024',y:[24.50,24.52,24.32,24.38]},{ x:'06/13/2024',y:[24.70,24.70,24.62,24.66]},{ x:'06/14/2024',y:[24.92,24.92,24.90,24.90]},{ x:'06/17/2024',y:[24.83,24.92,24.83,24.92]},{ x:'06/18/2024',y:[25.00,25.00,25.00,25.00]},{ x:'06/19/2024',y:[25.11,25.11,25.11,25.11]},{ x:'06/20/2024',y:[0.00,0.00,0.00,0.00]},{ x:'06/21/2024',y:[25.48,25.48,25.48,25.48]},{ x:'06/24/2024',y:[25.41,25.41,25.16,25.16]},{ x:'06/25/2024',y:[24.99,25.18,24.99,25.18]},{ x:'06/26/2024',y:[25.38,25.38,25.26,25.26]},{ x:'06/27/2024',y:[25.31,25.31,25.31,25.31]},{ x:'06/28/2024',y:[0.00,0.00,0.00,0.00]},{ x:'07/01/2024',y:[25.43,25.43,25.36,25.36]},{ x:'07/02/2024',y:[25.36,25.36,25.34,25.34]},{ x:'07/03/2024',y:[25.50,25.65,25.50,25.65]},{ x:'07/04/2024',y:[0.00,0.00,0.00,0.00]},{ x:'07/05/2024',y:[0.00,0.00,0.00,0.00]},{ x:'07/12/2024',y:[25.86,25.86,25.86,25.86]},{ x:'07/15/2024',y:[25.69,25.69,25.69,25.69]},{ x:'07/16/2024',y:[25.68,25.68,25.68,25.68]},{ x:'07/17/2024',y:[26.00,26.00,26.00,26.00]},{ x:'07/18/2024',y:[25.71,25.79,25.71,25.79]},{ x:'07/19/2024',y:[0.00,0.00,0.00,0.00]},{ x:'07/22/2024',y:[24.60,24.60,24.55,24.60]},{ x:'07/23/2024',y:[24.68,24.68,24.68,24.68]},{ x:'07/26/2024',y:[24.91,24.91,24.91,24.91]},{ x:'07/29/2024',y:[25.00,25.00,25.00,25.00]},{ x:'07/30/2024',y:[24.93,24.93,24.92,24.92]},{ x:'07/31/2024',y:[24.92,24.92,24.92,24.92]},{ x:'08/01/2024',y:[25.84,26.11,25.84,26.11]},{ x:'08/02/2024',y:[0.00,0.00,0.00,0.00]},{ x:'08/05/2024',y:[25.00,25.00,23.46,23.49]},{ x:'08/06/2024',y:[22.83,22.83,22.83,22.83]},{ x:'08/07/2024',y:[24.24,24.25,24.24,24.25]},{ x:'08/08/2024',y:[0.00,0.00,0.00,0.00]},{ x:'08/09/2024',y:[24.42,24.42,24.42,24.42]},{ x:'08/12/2024',y:[24.57,24.57,24.57,24.57]},{ x:'08/13/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: "020018 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());