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:[21.48,21.54,21.46,21.52]},{ x:'01/23/2024',y:[21.57,21.63,21.51,21.61]},{ x:'01/24/2024',y:[21.64,21.71,21.64,21.66]},{ x:'01/25/2024',y:[21.70,21.75,21.61,21.75]},{ x:'01/26/2024',y:[21.75,21.75,21.41,21.43]},{ x:'01/29/2024',y:[21.41,21.59,21.39,21.56]},{ x:'01/30/2024',y:[21.60,21.61,21.50,21.54]},{ x:'01/31/2024',y:[21.50,21.50,21.36,21.39]},{ x:'02/01/2024',y:[21.40,21.49,21.40,21.47]},{ x:'02/02/2024',y:[21.49,21.49,21.42,21.43]},{ x:'02/05/2024',y:[21.36,21.42,21.23,21.41]},{ x:'02/15/2024',y:[21.41,21.47,21.33,21.46]},{ x:'02/16/2024',y:[21.51,21.55,21.42,21.53]},{ x:'02/19/2024',y:[21.56,21.67,21.51,21.65]},{ x:'02/20/2024',y:[21.69,21.87,21.69,21.86]},{ x:'02/21/2024',y:[21.87,21.89,21.78,21.79]},{ x:'02/22/2024',y:[21.86,22.10,21.86,22.09]},{ x:'02/23/2024',y:[22.16,22.24,21.91,21.91]},{ x:'02/26/2024',y:[21.90,21.98,21.87,21.97]},{ x:'02/27/2024',y:[21.97,22.07,21.75,21.88]},{ x:'02/29/2024',y:[21.87,22.01,21.83,21.97]},{ x:'03/01/2024',y:[22.30,22.33,22.11,22.24]},{ x:'03/04/2024',y:[22.50,22.50,22.28,22.41]},{ x:'03/05/2024',y:[22.48,22.65,22.45,22.65]},{ x:'03/06/2024',y:[22.62,22.79,22.54,22.68]},{ x:'03/07/2024',y:[22.80,23.03,22.72,23.00]},{ x:'03/08/2024',y:[23.25,23.48,22.92,23.02]},{ x:'03/11/2024',y:[23.04,23.18,23.02,23.08]},{ x:'03/12/2024',y:[23.22,23.70,23.19,23.70]},{ x:'03/13/2024',y:[23.99,24.11,23.84,23.99]},{ x:'03/14/2024',y:[24.03,24.05,23.55,23.61]},{ x:'03/15/2024',y:[23.53,23.63,23.32,23.56]},{ x:'03/18/2024',y:[23.00,23.01,22.85,23.00]},{ x:'03/19/2024',y:[22.98,23.54,22.94,23.51]},{ x:'03/20/2024',y:[23.65,24.03,23.51,23.58]},{ x:'03/21/2024',y:[23.86,23.90,23.63,23.74]},{ x:'03/22/2024',y:[23.74,23.79,23.32,23.45]},{ x:'03/25/2024',y:[23.45,23.54,23.28,23.35]},{ x:'03/26/2024',y:[23.32,23.49,22.80,23.07]},{ x:'03/27/2024',y:[23.05,23.45,23.03,23.39]},{ x:'03/28/2024',y:[23.50,23.67,23.33,23.55]},{ x:'03/29/2024',y:[23.68,23.68,23.40,23.50]},{ x:'04/01/2024',y:[23.55,23.60,23.38,23.38]},{ x:'04/02/2024',y:[23.39,23.58,23.39,23.56]},{ x:'04/03/2024',y:[23.46,23.57,23.32,23.49]},{ x:'04/08/2024',y:[23.49,23.53,23.36,23.51]},{ x:'04/09/2024',y:[23.51,23.62,23.50,23.59]},{ x:'04/10/2024',y:[23.65,23.69,23.59,23.61]},{ x:'04/11/2024',y:[23.55,23.58,23.39,23.56]},{ x:'04/12/2024',y:[23.56,23.64,23.50,23.59]},{ x:'04/15/2024',y:[23.49,23.49,23.32,23.42]},{ x:'04/16/2024',y:[23.20,23.21,22.67,22.87]},{ x:'04/17/2024',y:[22.87,23.11,22.87,23.07]},{ x:'04/18/2024',y:[23.05,23.12,22.92,23.03]},{ x:'04/19/2024',y:[22.93,22.93,22.30,22.65]},{ x:'04/22/2024',y:[22.65,22.74,22.44,22.46]},{ x:'04/23/2024',y:[22.63,22.74,22.46,22.64]},{ x:'04/24/2024',y:[22.87,23.28,22.86,23.24]},{ x:'04/25/2024',y:[23.08,23.18,23.03,23.17]},{ x:'04/26/2024',y:[23.38,23.46,23.30,23.39]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00918 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());