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:[40.71,40.78,40.71,40.78]},{ x:'01/23/2024',y:[40.74,40.77,40.74,40.77]},{ x:'01/24/2024',y:[40.83,40.84,40.82,40.83]},{ x:'01/25/2024',y:[40.75,40.76,40.75,40.76]},{ x:'01/26/2024',y:[40.78,40.79,40.75,40.79]},{ x:'01/29/2024',y:[40.83,40.83,40.72,40.72]},{ x:'01/30/2024',y:[40.62,40.62,40.55,40.60]},{ x:'01/31/2024',y:[40.75,40.75,40.70,40.70]},{ x:'02/01/2024',y:[40.82,40.87,40.82,40.83]},{ x:'02/02/2024',y:[40.67,40.74,40.67,40.69]},{ x:'02/05/2024',y:[40.88,40.89,40.84,40.84]},{ x:'02/15/2024',y:[40.84,40.90,40.84,40.90]},{ x:'02/16/2024',y:[40.89,40.96,40.89,40.96]},{ x:'02/19/2024',y:[40.97,40.99,40.96,40.98]},{ x:'02/20/2024',y:[41.08,41.13,41.03,41.10]},{ x:'02/21/2024',y:[41.16,41.16,41.11,41.14]},{ x:'02/22/2024',y:[41.17,41.22,41.17,41.22]},{ x:'02/23/2024',y:[41.22,41.22,41.22,41.22]},{ x:'02/26/2024',y:[41.25,41.26,41.24,41.24]},{ x:'02/27/2024',y:[41.27,41.34,41.27,41.34]},{ x:'02/29/2024',y:[41.42,41.47,41.42,41.46]},{ x:'03/01/2024',y:[41.42,41.42,41.34,41.34]},{ x:'03/04/2024',y:[41.34,41.34,41.28,41.28]},{ x:'03/05/2024',y:[41.28,41.30,41.28,41.28]},{ x:'03/06/2024',y:[41.36,41.38,41.35,41.38]},{ x:'03/07/2024',y:[41.34,41.34,41.22,41.28]},{ x:'03/08/2024',y:[41.22,41.22,41.11,41.13]},{ x:'03/11/2024',y:[41.11,41.11,41.03,41.11]},{ x:'03/12/2024',y:[41.10,41.12,41.10,41.11]},{ x:'03/13/2024',y:[41.06,41.13,41.06,41.13]},{ x:'03/14/2024',y:[41.23,41.23,41.19,41.23]},{ x:'03/15/2024',y:[41.30,41.40,41.30,41.40]},{ x:'03/18/2024',y:[41.08,41.08,40.99,41.00]},{ x:'03/19/2024',y:[41.17,41.20,41.17,41.20]},{ x:'03/20/2024',y:[41.28,41.30,41.28,41.30]},{ x:'03/21/2024',y:[41.30,41.30,41.25,41.27]},{ x:'03/22/2024',y:[41.44,41.52,41.44,41.50]},{ x:'03/25/2024',y:[41.53,41.53,41.28,41.33]},{ x:'03/26/2024',y:[41.32,41.51,41.32,41.51]},{ x:'03/27/2024',y:[41.50,41.62,41.50,41.61]},{ x:'03/28/2024',y:[41.70,41.70,41.58,41.59]},{ x:'03/29/2024',y:[41.59,41.59,41.58,41.59]},{ x:'04/01/2024',y:[41.52,41.56,41.50,41.53]},{ x:'04/02/2024',y:[41.64,41.69,41.64,41.69]},{ x:'04/03/2024',y:[41.71,41.71,41.68,41.68]},{ x:'04/08/2024',y:[41.78,41.79,41.74,41.76]},{ x:'04/09/2024',y:[41.74,41.79,41.74,41.78]},{ x:'04/10/2024',y:[41.77,41.77,41.67,41.72]},{ x:'04/11/2024',y:[41.80,41.95,41.79,41.93]},{ x:'04/12/2024',y:[42.00,42.07,42.00,42.05]},{ x:'04/15/2024',y:[42.11,42.19,42.11,42.16]},{ x:'04/16/2024',y:[42.18,42.44,42.18,42.42]},{ x:'04/17/2024',y:[42.38,42.38,42.28,42.28]},{ x:'04/18/2024',y:[42.32,42.32,42.15,42.16]},{ x:'04/19/2024',y:[42.19,42.48,42.19,42.38]},{ x:'04/22/2024',y:[42.38,42.49,42.38,42.49]},{ x:'04/23/2024',y:[42.49,42.57,42.49,42.56]},{ x:'04/24/2024',y:[42.49,42.49,42.40,42.45]},{ x:'04/25/2024',y:[42.58,42.58,42.50,42.50]},{ x:'04/26/2024',y:[42.50,42.53,42.45,42.47]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00859b 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());