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/18/2024',y:[34.73,34.76,34.73,34.76]},{ x:'03/19/2024',y:[34.88,34.88,34.84,34.84]},{ x:'03/20/2024',y:[35.08,35.08,35.08,35.08]},{ x:'03/21/2024',y:[35.10,35.10,35.10,35.10]},{ x:'03/22/2024',y:[35.30,35.34,35.30,35.34]},{ x:'03/25/2024',y:[35.51,35.51,35.40,35.40]},{ x:'03/26/2024',y:[35.26,35.40,35.26,35.36]},{ x:'03/27/2024',y:[35.50,35.50,35.38,35.42]},{ x:'03/28/2024',y:[35.48,35.48,35.48,35.48]},{ x:'03/29/2024',y:[35.56,35.56,35.56,35.56]},{ x:'04/01/2024',y:[35.53,35.54,35.53,35.54]},{ x:'04/02/2024',y:[35.33,35.43,35.33,35.43]},{ x:'04/03/2024',y:[35.32,35.32,35.31,35.31]},{ x:'04/08/2024',y:[35.38,35.44,35.38,35.44]},{ x:'04/09/2024',y:[35.41,35.45,35.41,35.42]},{ x:'04/10/2024',y:[35.40,35.44,35.40,35.44]},{ x:'04/11/2024',y:[35.38,35.38,35.26,35.26]},{ x:'04/12/2024',y:[35.30,35.32,35.30,35.32]},{ x:'04/15/2024',y:[35.42,35.45,35.41,35.45]},{ x:'04/16/2024',y:[35.32,35.37,35.32,35.37]},{ x:'04/17/2024',y:[35.20,35.20,35.13,35.13]},{ x:'04/18/2024',y:[35.31,35.31,35.17,35.17]},{ x:'04/19/2024',y:[35.35,35.42,35.31,35.31]},{ x:'04/22/2024',y:[35.38,35.53,35.38,35.50]},{ x:'04/23/2024',y:[35.58,35.58,35.56,35.57]},{ x:'04/24/2024',y:[35.61,35.61,35.61,35.61]},{ x:'04/25/2024',y:[35.61,35.61,35.58,35.60]},{ x:'04/26/2024',y:[35.44,35.45,35.42,35.45]},{ x:'04/29/2024',y:[35.61,35.66,35.56,35.59]},{ x:'04/30/2024',y:[35.66,35.75,35.66,35.75]},{ x:'05/02/2024',y:[35.68,35.72,35.68,35.70]},{ x:'05/03/2024',y:[35.74,36.00,35.72,36.00]},{ x:'05/06/2024',y:[35.70,35.75,35.70,35.73]},{ x:'05/07/2024',y:[35.80,35.84,35.80,35.83]},{ x:'05/08/2024',y:[36.03,36.03,35.99,35.99]},{ x:'05/09/2024',y:[35.99,35.99,35.91,35.92]},{ x:'05/10/2024',y:[35.92,36.02,35.92,36.02]},{ x:'05/13/2024',y:[35.96,35.99,35.94,35.99]},{ x:'05/14/2024',y:[35.98,35.98,35.97,35.98]},{ x:'05/15/2024',y:[36.00,36.00,35.93,35.93]},{ x:'05/16/2024',y:[36.06,36.08,36.03,36.08]},{ x:'05/17/2024',y:[35.72,35.81,35.72,35.78]},{ x:'05/20/2024',y:[35.78,35.78,35.68,35.72]},{ x:'05/21/2024',y:[35.70,35.83,35.70,35.72]},{ x:'05/22/2024',y:[35.79,35.82,35.79,35.82]},{ x:'05/23/2024',y:[35.83,35.83,35.77,35.77]},{ x:'05/24/2024',y:[35.71,35.71,35.65,35.65]},{ x:'06/11/2024',y:[35.80,35.86,35.80,35.81]},{ x:'06/12/2024',y:[35.81,35.83,35.81,35.83]},{ x:'06/13/2024',y:[35.89,35.98,35.89,35.94]},{ x:'06/14/2024',y:[36.14,36.21,36.14,36.18]},{ x:'06/17/2024',y:[36.04,36.13,36.02,36.09]},{ x:'06/18/2024',y:[35.94,35.94,35.90,35.90]},{ x:'06/19/2024',y:[36.09,36.09,36.05,36.05]},{ x:'06/20/2024',y:[35.96,35.96,35.96,35.96]},{ x:'06/21/2024',y:[36.00,36.01,36.00,36.01]},{ x:'06/24/2024',y:[35.96,36.01,35.96,36.01]},{ x:'06/25/2024',y:[35.97,36.04,35.97,36.04]},{ x:'06/26/2024',y:[36.04,36.10,36.04,36.10]},{ x:'06/27/2024',y:[36.00,36.00,35.98,35.98]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00846b 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());