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/23/2024',y:[47.09,47.20,47.03,47.14]},{ x:'01/24/2024',y:[47.45,47.45,47.29,47.33]},{ x:'01/25/2024',y:[47.25,47.30,47.18,47.20]},{ x:'01/26/2024',y:[47.38,47.43,47.27,47.29]},{ x:'01/29/2024',y:[47.31,47.38,47.23,47.25]},{ x:'01/30/2024',y:[47.51,47.74,47.51,47.74]},{ x:'01/31/2024',y:[47.50,47.79,47.46,47.79]},{ x:'02/01/2024',y:[47.38,47.44,47.26,47.38]},{ x:'02/02/2024',y:[47.87,48.05,47.87,48.01]},{ x:'02/05/2024',y:[48.22,48.45,48.19,48.44]},{ x:'02/15/2024',y:[48.69,48.96,48.69,48.96]},{ x:'02/16/2024',y:[49.13,49.33,49.09,49.33]},{ x:'02/19/2024',y:[49.16,49.20,49.00,49.15]},{ x:'02/20/2024',y:[49.11,49.11,48.91,49.00]},{ x:'02/21/2024',y:[48.83,48.83,48.72,48.76]},{ x:'02/22/2024',y:[49.10,49.42,49.10,49.41]},{ x:'02/23/2024',y:[49.80,50.25,49.80,50.25]},{ x:'02/26/2024',y:[50.10,50.15,50.00,50.10]},{ x:'02/27/2024',y:[49.94,49.98,49.86,49.95]},{ x:'02/29/2024',y:[49.94,50.10,49.93,50.05]},{ x:'03/01/2024',y:[50.15,50.35,50.15,50.30]},{ x:'03/04/2024',y:[50.40,50.60,50.40,50.55]},{ x:'03/05/2024',y:[50.40,50.45,50.30,50.40]},{ x:'03/06/2024',y:[50.00,50.15,50.00,50.10]},{ x:'03/07/2024',y:[50.15,50.15,49.96,50.15]},{ x:'03/08/2024',y:[50.55,50.65,50.45,50.50]},{ x:'03/11/2024',y:[50.15,50.25,50.10,50.20]},{ x:'03/12/2024',y:[50.20,50.35,50.15,50.35]},{ x:'03/13/2024',y:[50.55,50.75,50.55,50.75]},{ x:'03/14/2024',y:[50.75,50.80,50.60,50.80]},{ x:'03/15/2024',y:[50.65,50.85,50.65,50.85]},{ x:'03/18/2024',y:[50.55,50.65,50.40,50.60]},{ x:'03/19/2024',y:[50.70,50.90,50.70,50.80]},{ x:'03/20/2024',y:[51.15,51.35,51.15,51.35]},{ x:'03/21/2024',y:[51.80,52.05,51.80,52.00]},{ x:'03/22/2024',y:[52.10,52.30,52.10,52.30]},{ x:'03/25/2024',y:[52.20,52.25,51.75,51.85]},{ x:'03/26/2024',y:[51.80,51.95,51.75,51.95]},{ x:'03/27/2024',y:[51.85,51.90,51.75,51.90]},{ x:'03/28/2024',y:[52.00,52.30,52.00,52.20]},{ x:'03/29/2024',y:[52.20,52.55,52.10,52.55]},{ x:'04/01/2024',y:[52.40,52.55,52.35,52.40]},{ x:'04/02/2024',y:[52.25,52.35,52.10,52.25]},{ x:'04/03/2024',y:[51.90,52.00,51.80,51.90]},{ x:'04/08/2024',y:[51.90,52.10,51.80,51.90]},{ x:'04/09/2024',y:[52.00,52.05,51.90,52.00]},{ x:'04/10/2024',y:[52.10,52.10,51.70,51.75]},{ x:'04/11/2024',y:[51.50,51.65,51.45,51.60]},{ x:'04/12/2024',y:[52.05,52.25,52.00,52.20]},{ x:'04/15/2024',y:[51.60,51.75,51.50,51.70]},{ x:'04/16/2024',y:[51.10,51.15,50.90,51.15]},{ x:'04/17/2024',y:[51.05,51.15,51.05,51.15]},{ x:'04/18/2024',y:[50.95,50.95,50.60,50.75]},{ x:'04/19/2024',y:[50.50,50.50,49.90,50.10]},{ x:'04/22/2024',y:[50.15,50.50,50.15,50.50]},{ x:'04/23/2024',y:[50.75,50.85,50.70,50.80]},{ x:'04/24/2024',y:[51.40,51.50,51.30,51.45]},{ x:'04/25/2024',y:[51.15,51.20,51.00,51.00]},{ x:'04/26/2024',y:[51.35,51.65,51.35,51.65]},{ x:'04/29/2024',y:[51.70,52.00,51.70,51.90]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00646 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());