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/22/2024',y:[32.52,32.52,32.52,32.52]},{ x:'01/23/2024',y:[32.50,32.50,32.48,32.48]},{ x:'01/24/2024',y:[0.00,0.00,0.00,0.00]},{ x:'01/25/2024',y:[32.83,32.99,32.83,32.99]},{ x:'01/26/2024',y:[33.20,33.20,33.18,33.19]},{ x:'01/29/2024',y:[33.33,33.44,33.25,33.44]},{ x:'01/30/2024',y:[33.66,33.66,33.66,33.66]},{ x:'01/31/2024',y:[33.66,33.66,33.48,33.48]},{ x:'02/01/2024',y:[33.53,33.53,33.53,33.53]},{ x:'02/02/2024',y:[33.72,33.72,33.72,33.72]},{ x:'02/05/2024',y:[33.54,33.54,33.37,33.52]},{ x:'02/15/2024',y:[33.81,34.13,33.81,34.11]},{ x:'02/16/2024',y:[34.27,34.27,34.06,34.24]},{ x:'02/19/2024',y:[34.20,34.20,33.99,34.12]},{ x:'02/20/2024',y:[34.12,34.12,34.11,34.11]},{ x:'02/21/2024',y:[34.20,34.20,34.20,34.20]},{ x:'02/22/2024',y:[34.37,34.58,34.37,34.58]},{ x:'02/23/2024',y:[34.76,34.94,34.76,34.93]},{ x:'02/26/2024',y:[34.79,34.98,34.79,34.98]},{ x:'02/27/2024',y:[34.80,34.92,34.80,34.92]},{ x:'02/29/2024',y:[34.86,35.12,34.86,35.12]},{ x:'03/01/2024',y:[35.02,35.20,35.02,35.20]},{ x:'03/04/2024',y:[35.20,35.20,35.05,35.05]},{ x:'03/05/2024',y:[35.06,35.21,35.06,35.21]},{ x:'03/06/2024',y:[35.05,35.16,34.93,35.16]},{ x:'03/07/2024',y:[35.26,35.31,35.24,35.31]},{ x:'03/08/2024',y:[35.81,35.81,35.70,35.70]},{ x:'03/11/2024',y:[35.28,35.30,35.27,35.30]},{ x:'03/12/2024',y:[35.34,35.51,35.34,35.51]},{ x:'03/13/2024',y:[35.68,35.74,35.63,35.74]},{ x:'03/14/2024',y:[35.90,35.92,35.90,35.92]},{ x:'03/15/2024',y:[35.77,35.92,35.76,35.92]},{ x:'03/18/2024',y:[35.94,36.00,35.90,35.90]},{ x:'03/19/2024',y:[35.93,35.93,35.80,35.80]},{ x:'03/20/2024',y:[35.99,35.99,35.99,35.99]},{ x:'03/21/2024',y:[36.27,36.49,36.27,36.34]},{ x:'03/22/2024',y:[36.34,36.34,36.33,36.33]},{ x:'03/25/2024',y:[36.27,36.27,36.21,36.21]},{ x:'03/26/2024',y:[36.37,36.37,36.30,36.30]},{ x:'03/27/2024',y:[36.56,36.56,36.56,36.56]},{ x:'03/28/2024',y:[36.82,36.83,36.71,36.71]},{ x:'03/29/2024',y:[36.82,36.82,36.71,36.71]},{ x:'04/01/2024',y:[36.71,36.76,36.52,36.52]},{ x:'04/02/2024',y:[36.72,36.81,36.56,36.56]},{ x:'04/03/2024',y:[36.40,36.44,36.25,36.25]},{ x:'04/08/2024',y:[36.24,36.27,36.19,36.20]},{ x:'04/09/2024',y:[36.20,36.30,36.20,36.20]},{ x:'04/10/2024',y:[36.30,36.30,36.12,36.12]},{ x:'04/11/2024',y:[36.10,36.14,36.10,36.13]},{ x:'04/12/2024',y:[36.11,36.11,35.98,35.98]},{ x:'04/15/2024',y:[35.81,35.81,35.69,35.80]},{ x:'04/16/2024',y:[35.46,35.54,35.46,35.54]},{ x:'04/17/2024',y:[35.54,35.72,35.52,35.52]},{ x:'04/18/2024',y:[35.52,35.56,35.52,35.56]},{ x:'04/19/2024',y:[35.28,35.28,34.80,35.23]},{ x:'04/22/2024',y:[35.43,35.48,34.90,35.22]},{ x:'04/23/2024',y:[35.58,35.65,35.49,35.64]},{ x:'04/24/2024',y:[36.18,36.18,36.00,36.00]},{ x:'04/25/2024',y:[35.91,35.91,35.70,35.70]},{ x:'04/26/2024',y:[35.70,35.81,35.70,35.75]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00660 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());