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:'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]},{ x:'04/29/2024',y:[49.29,49.70,49.29,49.55]},{ x:'04/30/2024',y:[49.50,49.55,49.15,49.15]},{ x:'05/02/2024',y:[49.13,49.32,49.07,49.27]},{ x:'05/03/2024',y:[49.00,49.00,48.77,48.77]},{ x:'05/06/2024',y:[49.42,49.68,49.42,49.66]},{ x:'05/07/2024',y:[49.69,49.91,49.58,49.80]},{ x:'05/08/2024',y:[49.58,49.58,49.15,49.27]},{ x:'05/09/2024',y:[49.28,49.45,49.16,49.16]},{ x:'05/10/2024',y:[49.72,49.72,49.06,49.06]},{ x:'05/13/2024',y:[49.05,49.14,48.83,48.99]},{ x:'05/14/2024',y:[49.18,49.18,48.95,49.14]},{ x:'05/15/2024',y:[49.49,49.60,49.33,49.33]},{ x:'05/16/2024',y:[49.55,49.86,49.55,49.83]},{ x:'05/17/2024',y:[49.64,49.90,49.50,49.50]},{ x:'05/20/2024',y:[50.30,50.50,50.05,50.05]},{ x:'05/21/2024',y:[50.10,50.35,50.10,50.10]},{ x:'05/22/2024',y:[49.60,49.84,49.60,49.67]},{ x:'05/23/2024',y:[49.72,50.25,49.72,50.10]},{ x:'05/24/2024',y:[49.72,49.72,49.51,49.66]},{ x:'06/11/2024',y:[50.25,50.35,50.15,50.25]},{ x:'06/12/2024',y:[49.96,49.96,49.79,49.95]},{ x:'06/13/2024',y:[49.95,49.96,49.66,49.82]},{ x:'06/14/2024',y:[49.67,50.10,49.59,49.91]},{ x:'06/17/2024',y:[49.29,49.29,48.75,48.94]},{ x:'06/18/2024',y:[49.21,49.41,49.20,49.22]},{ x:'06/19/2024',y:[49.60,49.67,49.33,49.35]},{ x:'06/20/2024',y:[49.22,49.45,49.12,49.45]},{ x:'06/21/2024',y:[49.47,49.60,49.35,49.45]},{ x:'06/24/2024',y:[49.50,49.76,49.33,49.74]},{ x:'06/25/2024',y:[49.73,50.10,49.60,50.05]},{ x:'06/26/2024',y:[50.35,51.00,50.35,50.80]},{ x:'06/27/2024',y:[50.35,50.35,50.20,50.25]},{ x:'06/28/2024',y:[50.60,50.90,50.60,50.60]},{ x:'07/01/2024',y:[50.85,50.85,50.55,50.55]} ] }], 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());