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:[20.64,20.64,20.52,20.57]},{ x:'01/24/2024',y:[20.58,20.65,20.58,20.60]},{ x:'01/25/2024',y:[20.57,20.58,20.49,20.54]},{ x:'01/26/2024',y:[20.25,20.29,20.21,20.24]},{ x:'01/29/2024',y:[20.31,20.40,20.31,20.35]},{ x:'01/30/2024',y:[20.54,20.69,20.54,20.67]},{ x:'01/31/2024',y:[20.48,20.48,20.35,20.39]},{ x:'02/01/2024',y:[20.35,20.45,20.35,20.43]},{ x:'02/02/2024',y:[20.75,20.81,20.75,20.78]},{ x:'02/05/2024',y:[20.85,21.07,20.85,21.04]},{ x:'02/15/2024',y:[21.50,22.26,21.50,22.26]},{ x:'02/16/2024',y:[22.37,22.45,22.37,22.43]},{ x:'02/19/2024',y:[22.43,22.43,22.29,22.33]},{ x:'02/20/2024',y:[22.30,22.33,22.25,22.27]},{ x:'02/21/2024',y:[21.84,21.87,21.82,21.86]},{ x:'02/22/2024',y:[22.40,22.59,22.40,22.57]},{ x:'02/23/2024',y:[23.22,23.30,23.22,23.29]},{ x:'02/26/2024',y:[23.25,23.25,23.02,23.10]},{ x:'02/27/2024',y:[23.11,23.22,23.11,23.21]},{ x:'02/29/2024',y:[23.19,23.25,23.11,23.24]},{ x:'03/01/2024',y:[23.54,23.72,23.54,23.70]},{ x:'03/04/2024',y:[24.08,24.23,24.08,24.20]},{ x:'03/05/2024',y:[24.21,24.25,24.17,24.20]},{ x:'03/06/2024',y:[23.97,24.18,23.97,24.17]},{ x:'03/07/2024',y:[24.35,24.43,24.34,24.37]},{ x:'03/08/2024',y:[24.80,25.22,24.80,24.99]},{ x:'03/11/2024',y:[24.26,24.26,24.00,24.01]},{ x:'03/12/2024',y:[24.00,24.19,24.00,24.19]},{ x:'03/13/2024',y:[24.65,24.78,24.65,24.74]},{ x:'03/14/2024',y:[24.35,24.41,24.32,24.40]},{ x:'03/15/2024',y:[24.00,24.00,23.86,23.86]},{ x:'03/18/2024',y:[23.86,24.10,23.86,24.10]},{ x:'03/19/2024',y:[24.10,24.12,24.00,24.12]},{ x:'03/20/2024',y:[24.23,24.31,24.22,24.24]},{ x:'03/21/2024',y:[24.74,24.90,24.74,24.89]},{ x:'03/22/2024',y:[24.90,24.93,24.86,24.93]},{ x:'03/25/2024',y:[25.06,25.10,24.95,24.98]},{ x:'03/26/2024',y:[25.00,25.12,25.00,25.11]},{ x:'03/27/2024',y:[25.04,25.06,24.93,25.00]},{ x:'03/28/2024',y:[24.91,24.91,24.81,24.83]},{ x:'03/29/2024',y:[24.78,24.78,24.74,24.77]},{ x:'04/01/2024',y:[24.90,24.90,24.75,24.75]},{ x:'04/02/2024',y:[24.76,24.77,24.70,24.70]},{ x:'04/03/2024',y:[24.50,24.50,24.34,24.34]},{ x:'04/08/2024',y:[24.33,24.46,24.33,24.42]},{ x:'04/09/2024',y:[24.44,24.65,24.44,24.64]},{ x:'04/10/2024',y:[24.62,24.62,24.51,24.55]},{ x:'04/11/2024',y:[24.55,24.59,24.51,24.58]},{ x:'04/12/2024',y:[24.94,25.00,24.91,24.95]},{ x:'04/15/2024',y:[24.60,24.62,24.55,24.59]},{ x:'04/16/2024',y:[24.19,24.19,23.95,24.01]},{ x:'04/17/2024',y:[24.10,24.18,24.10,24.12]},{ x:'04/18/2024',y:[23.78,23.78,23.59,23.70]},{ x:'04/19/2024',y:[23.37,23.37,22.88,23.06]},{ x:'04/22/2024',y:[22.44,22.62,22.43,22.56]},{ x:'04/23/2024',y:[22.73,22.85,22.73,22.81]},{ x:'04/24/2024',y:[23.75,23.91,23.73,23.89]},{ x:'04/25/2024',y:[23.60,23.60,23.21,23.22]},{ x:'04/26/2024',y:[23.93,24.02,23.93,24.00]},{ x:'04/29/2024',y:[24.26,24.50,24.26,24.43]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00895 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());