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:[46.60,46.66,46.43,46.54]},{ x:'01/23/2024',y:[46.68,47.18,46.50,46.65]},{ x:'01/24/2024',y:[46.42,46.44,46.10,46.16]},{ x:'01/25/2024',y:[46.13,46.31,45.86,46.31]},{ x:'01/26/2024',y:[45.88,45.97,45.62,45.68]},{ x:'01/29/2024',y:[45.79,46.22,45.79,46.06]},{ x:'01/30/2024',y:[46.18,46.26,46.09,46.12]},{ x:'01/31/2024',y:[45.75,46.21,45.70,46.21]},{ x:'02/01/2024',y:[46.03,46.08,45.84,45.88]},{ x:'02/02/2024',y:[46.25,46.47,46.09,46.26]},{ x:'02/05/2024',y:[46.33,46.54,46.29,46.51]},{ x:'02/15/2024',y:[47.10,49.10,47.10,48.63]},{ x:'02/16/2024',y:[49.39,49.43,48.85,49.08]},{ x:'02/19/2024',y:[48.99,48.99,48.72,48.88]},{ x:'02/20/2024',y:[49.05,49.30,48.82,48.90]},{ x:'02/21/2024',y:[48.72,48.79,48.58,48.77]},{ x:'02/22/2024',y:[49.47,49.68,49.40,49.62]},{ x:'02/23/2024',y:[50.00,50.20,50.00,50.10]},{ x:'02/26/2024',y:[50.10,50.20,49.94,49.99]},{ x:'02/27/2024',y:[50.00,50.20,49.77,49.97]},{ x:'02/29/2024',y:[49.88,49.94,49.63,49.83]},{ x:'03/01/2024',y:[50.35,50.90,50.35,50.90]},{ x:'03/04/2024',y:[51.20,51.45,51.15,51.15]},{ x:'03/05/2024',y:[51.05,51.45,50.95,51.40]},{ x:'03/06/2024',y:[51.20,51.40,51.05,51.35]},{ x:'03/07/2024',y:[51.45,51.45,50.75,50.75]},{ x:'03/08/2024',y:[50.90,51.25,50.75,50.80]},{ x:'03/11/2024',y:[49.69,49.80,49.43,49.48]},{ x:'03/12/2024',y:[49.12,49.57,49.06,49.56]},{ x:'03/13/2024',y:[49.67,49.73,49.36,49.67]},{ x:'03/14/2024',y:[49.31,49.73,49.25,49.67]},{ x:'03/15/2024',y:[49.54,49.69,49.43,49.54]},{ x:'03/18/2024',y:[50.55,50.75,50.50,50.75]},{ x:'03/19/2024',y:[50.60,51.15,50.40,51.05]},{ x:'03/20/2024',y:[51.40,51.50,51.40,51.45]},{ x:'03/21/2024',y:[51.90,52.40,51.60,52.30]},{ x:'03/22/2024',y:[52.50,52.55,52.05,52.40]},{ x:'03/25/2024',y:[52.30,52.30,51.75,51.75]},{ x:'03/26/2024',y:[51.75,51.75,51.45,51.55]},{ x:'03/27/2024',y:[51.70,52.25,51.70,52.25]},{ x:'03/28/2024',y:[51.95,51.95,51.50,51.50]},{ x:'03/29/2024',y:[51.65,51.90,51.65,51.80]},{ x:'04/01/2024',y:[51.85,51.85,50.95,51.15]},{ x:'04/02/2024',y:[51.30,51.35,51.15,51.20]},{ x:'04/03/2024',y:[50.90,51.00,50.55,50.85]},{ x:'04/08/2024',y:[50.75,50.95,50.50,50.60]},{ x:'04/09/2024',y:[50.75,51.10,50.75,51.10]},{ x:'04/10/2024',y:[51.10,51.10,50.95,51.00]},{ x:'04/11/2024',y:[50.75,50.80,50.50,50.75]},{ x:'04/12/2024',y:[50.90,51.10,50.75,50.90]},{ x:'04/15/2024',y:[50.20,50.40,50.05,50.30]},{ x:'04/16/2024',y:[49.66,49.66,49.29,49.63]},{ x:'04/17/2024',y:[49.22,49.52,49.11,49.19]},{ x:'04/18/2024',y:[48.73,49.13,48.61,48.99]},{ x:'04/19/2024',y:[48.02,48.02,47.33,47.86]},{ x:'04/22/2024',y:[47.86,48.09,47.80,47.90]},{ x:'04/23/2024',y:[48.36,48.48,48.16,48.35]},{ x:'04/24/2024',y:[49.20,49.39,49.10,49.39]},{ x:'04/25/2024',y:[48.93,48.93,48.45,48.50]},{ x:'04/26/2024',y:[48.49,49.02,48.42,48.94]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00661 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());