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:[39.54,39.75,39.54,39.72]},{ x:'01/23/2024',y:[39.79,39.79,39.52,39.55]},{ x:'01/24/2024',y:[39.44,39.76,39.44,39.76]},{ x:'01/25/2024',y:[40.16,40.27,39.85,40.02]},{ x:'01/26/2024',y:[40.00,40.00,39.38,39.44]},{ x:'01/29/2024',y:[39.44,39.44,39.36,39.37]},{ x:'01/30/2024',y:[39.76,39.81,39.70,39.79]},{ x:'01/31/2024',y:[39.67,39.67,39.06,39.15]},{ x:'02/01/2024',y:[39.12,39.12,38.97,39.01]},{ x:'02/02/2024',y:[39.40,39.50,39.40,39.40]},{ x:'02/05/2024',y:[39.50,40.12,39.50,40.11]},{ x:'02/15/2024',y:[40.55,41.43,40.55,41.43]},{ x:'02/16/2024',y:[41.49,41.50,41.34,41.39]},{ x:'02/19/2024',y:[40.93,40.93,40.74,40.81]},{ x:'02/20/2024',y:[40.81,40.81,40.63,40.74]},{ x:'02/21/2024',y:[40.60,40.60,40.03,40.08]},{ x:'02/22/2024',y:[41.23,41.23,40.45,40.60]},{ x:'02/23/2024',y:[41.39,41.39,41.10,41.30]},{ x:'02/26/2024',y:[41.23,41.23,41.05,41.14]},{ x:'02/27/2024',y:[40.99,41.12,40.03,41.10]},{ x:'02/29/2024',y:[41.10,41.10,41.00,41.08]},{ x:'03/01/2024',y:[41.34,41.68,41.34,41.63]},{ x:'03/04/2024',y:[42.26,42.39,42.23,42.34]},{ x:'03/05/2024',y:[42.40,42.50,42.32,42.38]},{ x:'03/06/2024',y:[42.05,42.05,41.67,41.82]},{ x:'03/07/2024',y:[41.93,41.97,41.86,41.91]},{ x:'03/08/2024',y:[42.25,43.07,42.25,42.77]},{ x:'03/11/2024',y:[42.46,42.46,41.82,41.92]},{ x:'03/12/2024',y:[41.91,41.93,41.85,41.93]},{ x:'03/13/2024',y:[42.01,42.42,42.01,42.40]},{ x:'03/14/2024',y:[42.38,42.38,41.80,42.05]},{ x:'03/15/2024',y:[41.80,41.81,41.70,41.76]},{ x:'03/18/2024',y:[41.54,41.54,41.03,41.27]},{ x:'03/19/2024',y:[41.27,41.63,41.27,41.62]},{ x:'03/20/2024',y:[41.62,41.62,41.56,41.59]},{ x:'03/21/2024',y:[42.00,42.46,42.00,42.46]},{ x:'03/22/2024',y:[42.46,42.78,42.46,42.77]},{ x:'03/25/2024',y:[42.77,42.77,42.46,42.58]},{ x:'03/26/2024',y:[42.58,42.70,42.55,42.70]},{ x:'03/27/2024',y:[42.68,42.74,42.66,42.73]},{ x:'03/28/2024',y:[42.76,42.76,42.70,42.75]},{ x:'03/29/2024',y:[42.69,42.69,42.45,42.54]},{ x:'04/01/2024',y:[42.57,42.62,42.57,42.57]},{ x:'04/02/2024',y:[42.57,42.57,42.53,42.53]},{ x:'04/03/2024',y:[42.44,42.44,42.20,42.20]},{ x:'04/08/2024',y:[42.00,42.14,42.00,42.02]},{ x:'04/09/2024',y:[42.15,42.28,42.15,42.28]},{ x:'04/10/2024',y:[42.29,42.40,42.29,42.39]},{ x:'04/11/2024',y:[42.29,42.29,42.20,42.28]},{ x:'04/12/2024',y:[42.75,42.92,42.75,42.90]},{ x:'04/15/2024',y:[42.64,42.64,42.24,42.32]},{ x:'04/16/2024',y:[41.85,41.85,41.55,41.65]},{ x:'04/17/2024',y:[41.64,41.71,41.64,41.66]},{ x:'04/18/2024',y:[40.94,40.94,40.87,40.94]},{ x:'04/19/2024',y:[40.80,40.80,40.00,40.21]},{ x:'04/22/2024',y:[38.67,39.73,38.67,39.72]},{ x:'04/23/2024',y:[39.72,39.90,39.72,39.83]},{ x:'04/24/2024',y:[40.78,40.93,40.78,40.91]},{ x:'04/25/2024',y:[40.79,40.79,40.30,40.30]},{ x:'04/26/2024',y:[41.17,41.20,41.15,41.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00851 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());