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:[36.60,36.67,36.55,36.57]},{ x:'03/19/2024',y:[36.57,36.66,36.54,36.65]},{ x:'03/20/2024',y:[36.72,36.81,36.72,36.80]},{ x:'03/21/2024',y:[36.78,36.78,36.70,36.76]},{ x:'03/22/2024',y:[37.09,37.24,37.01,37.23]},{ x:'03/25/2024',y:[37.35,37.43,37.12,37.18]},{ x:'03/26/2024',y:[37.04,37.13,37.01,37.08]},{ x:'03/27/2024',y:[37.08,37.12,37.07,37.12]},{ x:'03/28/2024',y:[37.25,37.36,37.25,37.29]},{ x:'03/29/2024',y:[37.29,37.43,37.29,37.43]},{ x:'04/01/2024',y:[37.39,37.43,37.37,37.41]},{ x:'04/02/2024',y:[37.14,37.14,37.04,37.04]},{ x:'04/03/2024',y:[36.87,36.96,36.84,36.84]},{ x:'04/08/2024',y:[36.77,36.77,36.62,36.62]},{ x:'04/09/2024',y:[36.73,36.89,36.72,36.84]},{ x:'04/10/2024',y:[36.94,36.96,36.90,36.94]},{ x:'04/11/2024',y:[36.80,36.80,36.41,36.50]},{ x:'04/12/2024',y:[36.50,36.50,36.39,36.39]},{ x:'04/15/2024',y:[36.51,36.53,36.38,36.40]},{ x:'04/16/2024',y:[36.30,36.77,36.14,36.33]},{ x:'04/17/2024',y:[36.04,36.04,35.83,35.89]},{ x:'04/18/2024',y:[36.13,36.19,36.12,36.13]},{ x:'04/19/2024',y:[36.14,36.65,36.14,36.39]},{ x:'04/22/2024',y:[36.12,36.16,36.06,36.16]},{ x:'04/23/2024',y:[36.33,36.43,36.33,36.41]},{ x:'04/24/2024',y:[36.34,36.34,36.23,36.31]},{ x:'04/25/2024',y:[36.24,36.24,36.14,36.15]},{ x:'04/26/2024',y:[36.03,36.03,35.95,36.02]},{ x:'04/29/2024',y:[36.34,36.35,36.27,36.30]},{ x:'04/30/2024',y:[36.40,36.46,36.38,36.45]},{ x:'05/02/2024',y:[36.34,36.40,36.32,36.40]},{ x:'05/03/2024',y:[36.34,36.39,36.31,36.35]},{ x:'05/06/2024',y:[36.60,36.63,36.54,36.63]},{ x:'05/07/2024',y:[36.75,36.96,36.75,36.96]},{ x:'05/08/2024',y:[36.99,37.03,36.92,36.95]},{ x:'05/09/2024',y:[36.83,36.83,36.72,36.74]},{ x:'05/10/2024',y:[36.88,36.99,36.88,36.94]},{ x:'05/13/2024',y:[36.79,36.83,36.78,36.81]},{ x:'05/14/2024',y:[36.81,36.81,36.76,36.79]},{ x:'05/15/2024',y:[36.91,36.91,36.79,36.83]},{ x:'05/16/2024',y:[37.26,37.26,37.14,37.21]},{ x:'05/17/2024',y:[36.63,36.72,36.63,36.67]},{ x:'05/20/2024',y:[36.51,36.52,36.47,36.47]},{ x:'05/21/2024',y:[36.43,36.46,36.40,36.45]},{ x:'05/22/2024',y:[36.52,36.53,36.48,36.48]},{ x:'05/23/2024',y:[36.50,36.51,36.45,36.46]},{ x:'05/24/2024',y:[36.36,36.37,36.28,36.30]},{ x:'06/11/2024',y:[36.59,36.59,36.50,36.57]},{ x:'06/12/2024',y:[36.75,36.75,36.70,36.74]},{ x:'06/13/2024',y:[36.91,37.00,36.91,36.99]},{ x:'06/14/2024',y:[37.19,37.30,37.19,37.21]},{ x:'06/17/2024',y:[37.22,37.28,37.22,37.25]},{ x:'06/18/2024',y:[37.15,37.18,37.14,37.15]},{ x:'06/19/2024',y:[37.33,37.37,37.31,37.36]},{ x:'06/20/2024',y:[37.30,37.31,37.23,37.25]},{ x:'06/21/2024',y:[37.16,37.16,37.07,37.10]},{ x:'06/24/2024',y:[37.20,37.23,37.14,37.16]},{ x:'06/25/2024',y:[37.33,37.38,37.32,37.37]},{ x:'06/26/2024',y:[37.24,37.31,37.21,37.27]},{ x:'06/27/2024',y:[37.03,37.03,36.95,37.02]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00761b 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());