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:[28.13,28.15,28.11,28.14]},{ x:'01/24/2024',y:[28.30,28.33,28.27,28.32]},{ x:'01/25/2024',y:[28.36,28.36,28.25,28.28]},{ x:'01/26/2024',y:[28.28,28.28,28.21,28.21]},{ x:'01/29/2024',y:[28.21,28.27,28.21,28.25]},{ x:'01/30/2024',y:[28.37,28.42,28.36,28.40]},{ x:'01/31/2024',y:[28.34,28.34,28.24,28.32]},{ x:'02/01/2024',y:[28.18,28.18,28.09,28.14]},{ x:'02/02/2024',y:[28.28,28.55,28.28,28.49]},{ x:'02/05/2024',y:[28.70,28.88,28.65,28.85]},{ x:'02/15/2024',y:[28.98,29.16,28.98,29.13]},{ x:'02/16/2024',y:[29.14,29.43,29.14,29.41]},{ x:'02/19/2024',y:[29.40,29.40,29.30,29.33]},{ x:'02/20/2024',y:[29.33,29.33,29.28,29.32]},{ x:'02/21/2024',y:[29.27,29.27,29.07,29.13]},{ x:'02/22/2024',y:[29.22,29.45,29.16,29.44]},{ x:'02/23/2024',y:[29.84,30.15,29.84,30.13]},{ x:'02/26/2024',y:[30.11,30.13,30.00,30.05]},{ x:'02/27/2024',y:[30.03,30.03,29.96,29.99]},{ x:'02/29/2024',y:[29.99,30.03,29.82,30.02]},{ x:'03/01/2024',y:[30.02,30.23,30.02,30.18]},{ x:'03/04/2024',y:[30.26,30.37,30.26,30.33]},{ x:'03/05/2024',y:[30.32,30.32,30.18,30.28]},{ x:'03/06/2024',y:[30.16,30.16,30.00,30.11]},{ x:'03/07/2024',y:[30.11,30.11,30.00,30.03]},{ x:'03/08/2024',y:[30.33,30.49,30.33,30.40]},{ x:'03/11/2024',y:[30.23,30.23,30.06,30.06]},{ x:'03/12/2024',y:[30.05,30.15,30.05,30.15]},{ x:'03/13/2024',y:[30.37,30.47,30.28,30.43]},{ x:'03/14/2024',y:[30.45,30.50,30.40,30.40]},{ x:'03/15/2024',y:[30.42,30.43,30.36,30.40]},{ x:'03/18/2024',y:[30.37,30.39,30.30,30.37]},{ x:'03/19/2024',y:[30.43,30.52,30.43,30.50]},{ x:'03/20/2024',y:[30.70,30.88,30.70,30.88]},{ x:'03/21/2024',y:[31.18,31.38,31.17,31.38]},{ x:'03/22/2024',y:[31.38,31.40,31.33,31.39]},{ x:'03/25/2024',y:[31.44,31.47,31.23,31.30]},{ x:'03/26/2024',y:[31.30,31.34,31.26,31.32]},{ x:'03/27/2024',y:[31.29,31.32,31.27,31.32]},{ x:'03/28/2024',y:[31.39,31.39,31.37,31.38]},{ x:'03/29/2024',y:[31.52,31.52,31.44,31.44]},{ x:'04/01/2024',y:[31.44,31.50,31.44,31.47]},{ x:'04/02/2024',y:[31.38,31.47,31.35,31.46]},{ x:'04/03/2024',y:[31.38,31.41,31.30,31.30]},{ x:'04/08/2024',y:[31.30,31.45,31.27,31.35]},{ x:'04/09/2024',y:[31.35,31.45,31.35,31.38]},{ x:'04/10/2024',y:[31.33,31.33,31.24,31.31]},{ x:'04/11/2024',y:[31.26,31.29,31.13,31.29]},{ x:'04/12/2024',y:[31.37,31.53,31.37,31.53]},{ x:'04/15/2024',y:[31.25,31.31,31.25,31.27]},{ x:'04/16/2024',y:[31.00,31.00,30.78,30.84]},{ x:'04/17/2024',y:[30.84,30.91,30.84,30.91]},{ x:'04/18/2024',y:[30.67,30.74,30.57,30.63]},{ x:'04/19/2024',y:[30.50,30.50,30.16,30.22]},{ x:'04/22/2024',y:[30.22,30.29,30.20,30.28]},{ x:'04/23/2024',y:[30.50,30.65,30.50,30.55]},{ x:'04/24/2024',y:[30.92,31.06,30.91,31.05]},{ x:'04/25/2024',y:[30.85,30.85,30.60,30.62]},{ x:'04/26/2024',y:[30.99,30.99,30.82,30.99]},{ x:'04/29/2024',y:[30.99,31.11,30.99,31.06]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00858 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());