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:[38.10,38.19,38.05,38.16]},{ x:'01/23/2024',y:[38.16,38.17,37.95,38.10]},{ x:'01/24/2024',y:[38.19,38.39,38.19,38.36]},{ x:'01/25/2024',y:[38.59,38.59,38.43,38.50]},{ x:'01/26/2024',y:[38.45,38.45,38.21,38.28]},{ x:'01/29/2024',y:[38.28,38.28,38.17,38.17]},{ x:'01/30/2024',y:[38.69,38.69,38.62,38.67]},{ x:'01/31/2024',y:[38.08,38.14,37.86,38.14]},{ x:'02/01/2024',y:[37.86,37.99,37.73,37.96]},{ x:'02/02/2024',y:[38.51,38.52,38.42,38.46]},{ x:'02/05/2024',y:[38.50,39.19,38.50,38.99]},{ x:'02/15/2024',y:[39.84,41.20,39.83,40.18]},{ x:'02/16/2024',y:[40.25,40.25,40.09,40.10]},{ x:'02/19/2024',y:[39.79,39.79,39.50,39.65]},{ x:'02/20/2024',y:[39.71,39.83,39.65,39.70]},{ x:'02/21/2024',y:[39.31,39.31,39.10,39.14]},{ x:'02/22/2024',y:[39.60,39.95,39.60,39.82]},{ x:'02/23/2024',y:[40.56,40.65,40.53,40.65]},{ x:'02/26/2024',y:[40.62,40.62,40.48,40.50]},{ x:'02/27/2024',y:[40.53,40.73,40.47,40.53]},{ x:'02/29/2024',y:[40.39,40.45,40.27,40.29]},{ x:'03/01/2024',y:[40.80,41.09,40.77,41.08]},{ x:'03/04/2024',y:[41.80,41.90,41.70,41.78]},{ x:'03/05/2024',y:[41.78,41.80,41.59,41.72]},{ x:'03/06/2024',y:[41.31,41.35,40.98,41.31]},{ x:'03/07/2024',y:[41.43,41.49,41.33,41.34]},{ x:'03/08/2024',y:[42.09,42.20,42.00,42.12]},{ x:'03/11/2024',y:[41.90,41.90,41.22,41.43]},{ x:'03/12/2024',y:[41.39,41.59,41.39,41.55]},{ x:'03/13/2024',y:[42.22,42.22,42.06,42.10]},{ x:'03/14/2024',y:[41.99,41.99,41.77,41.80]},{ x:'03/15/2024',y:[41.50,41.61,41.43,41.43]},{ x:'03/18/2024',y:[41.39,41.39,41.13,41.36]},{ x:'03/19/2024',y:[41.36,41.48,41.34,41.43]},{ x:'03/20/2024',y:[41.80,41.80,41.65,41.65]},{ x:'03/21/2024',y:[42.40,42.75,42.30,42.74]},{ x:'03/22/2024',y:[42.80,42.80,42.64,42.78]},{ x:'03/25/2024',y:[42.78,42.88,42.64,42.74]},{ x:'03/26/2024',y:[42.66,42.75,42.63,42.73]},{ x:'03/27/2024',y:[42.65,42.71,42.59,42.67]},{ x:'03/28/2024',y:[42.65,42.67,42.61,42.63]},{ x:'03/29/2024',y:[42.65,42.65,42.55,42.57]},{ x:'04/01/2024',y:[42.63,42.75,42.57,42.57]},{ x:'04/02/2024',y:[42.60,42.75,42.59,42.64]},{ x:'04/03/2024',y:[42.49,42.49,42.24,42.26]},{ x:'04/08/2024',y:[42.44,42.58,42.29,42.35]},{ x:'04/09/2024',y:[42.48,42.50,42.45,42.48]},{ x:'04/10/2024',y:[42.51,42.57,42.48,42.53]},{ x:'04/11/2024',y:[42.45,42.49,42.30,42.45]},{ x:'04/12/2024',y:[43.05,43.27,43.04,43.18]},{ x:'04/15/2024',y:[42.79,42.79,42.59,42.60]},{ x:'04/16/2024',y:[41.94,41.94,41.63,41.74]},{ x:'04/17/2024',y:[41.81,42.06,41.81,41.88]},{ x:'04/18/2024',y:[41.60,41.60,41.30,41.35]},{ x:'04/19/2024',y:[41.18,41.18,40.26,40.69]},{ x:'04/22/2024',y:[40.50,40.50,40.22,40.38]},{ x:'04/23/2024',y:[40.50,40.72,40.50,40.63]},{ x:'04/24/2024',y:[41.50,41.65,41.46,41.65]},{ x:'04/25/2024',y:[41.23,41.23,40.57,40.59]},{ x:'04/26/2024',y:[41.45,41.80,41.45,41.72]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00770 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());