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/15/2024',y:[36.41,36.55,36.41,36.54]},{ x:'03/18/2024',y:[36.54,36.57,36.50,36.50]},{ x:'03/19/2024',y:[36.50,36.63,36.50,36.63]},{ x:'03/20/2024',y:[36.80,36.80,36.74,36.80]},{ x:'03/21/2024',y:[36.80,36.85,36.80,36.85]},{ x:'03/22/2024',y:[37.00,37.09,37.00,37.08]},{ x:'03/25/2024',y:[37.16,37.20,36.96,37.04]},{ x:'03/26/2024',y:[36.96,37.07,36.92,37.07]},{ x:'03/27/2024',y:[37.07,37.11,37.03,37.11]},{ x:'03/28/2024',y:[37.15,37.15,37.12,37.12]},{ x:'03/29/2024',y:[37.18,37.20,37.17,37.17]},{ x:'04/01/2024',y:[37.17,37.23,37.17,37.22]},{ x:'04/02/2024',y:[37.23,37.23,37.15,37.17]},{ x:'04/03/2024',y:[37.12,37.12,36.96,36.96]},{ x:'04/08/2024',y:[36.89,36.89,36.85,36.88]},{ x:'04/09/2024',y:[36.89,37.00,36.89,36.94]},{ x:'04/10/2024',y:[36.95,36.99,36.94,36.96]},{ x:'04/11/2024',y:[36.79,36.83,36.79,36.83]},{ x:'04/12/2024',y:[36.78,36.86,36.78,36.85]},{ x:'04/15/2024',y:[36.85,36.94,36.85,36.87]},{ x:'04/16/2024',y:[36.87,36.91,36.87,36.89]},{ x:'04/17/2024',y:[36.72,36.72,36.67,36.67]},{ x:'04/18/2024',y:[36.72,36.79,36.71,36.71]},{ x:'04/19/2024',y:[36.97,37.15,36.95,36.95]},{ x:'04/22/2024',y:[36.79,36.82,36.79,36.82]},{ x:'04/23/2024',y:[37.00,37.10,37.00,37.08]},{ x:'04/24/2024',y:[36.95,37.03,36.95,37.03]},{ x:'04/25/2024',y:[37.04,37.04,36.99,36.99]},{ x:'04/26/2024',y:[36.81,36.81,36.81,36.81]},{ x:'04/29/2024',y:[37.10,37.10,36.97,36.99]},{ x:'04/30/2024',y:[36.99,37.07,36.98,37.06]},{ x:'05/02/2024',y:[37.06,37.09,37.06,37.09]},{ x:'05/03/2024',y:[37.09,37.09,37.05,37.05]},{ x:'05/06/2024',y:[37.05,37.19,37.05,37.17]},{ x:'05/07/2024',y:[37.30,37.40,37.30,37.40]},{ x:'05/08/2024',y:[37.39,37.39,37.37,37.37]},{ x:'05/09/2024',y:[37.23,37.29,37.23,37.26]},{ x:'05/10/2024',y:[37.41,37.44,37.39,37.39]},{ x:'05/13/2024',y:[37.39,37.39,37.33,37.33]},{ x:'05/14/2024',y:[37.32,37.32,37.32,37.32]},{ x:'05/15/2024',y:[37.33,37.33,37.19,37.19]},{ x:'05/16/2024',y:[37.36,37.38,37.36,37.37]},{ x:'05/17/2024',y:[37.10,37.10,37.08,37.08]},{ x:'05/20/2024',y:[37.03,37.04,37.03,37.04]},{ x:'05/21/2024',y:[37.05,37.10,37.04,37.09]},{ x:'05/22/2024',y:[37.11,37.12,37.08,37.08]},{ x:'05/23/2024',y:[37.05,37.05,36.99,37.03]},{ x:'05/24/2024',y:[37.00,37.00,36.93,36.95]},{ x:'06/11/2024',y:[37.12,37.18,37.12,37.14]},{ x:'06/12/2024',y:[37.24,37.25,37.23,37.25]},{ x:'06/13/2024',y:[37.40,37.43,37.40,37.42]},{ x:'06/14/2024',y:[37.57,37.64,37.57,37.64]},{ x:'06/17/2024',y:[37.56,37.56,37.51,37.52]},{ x:'06/18/2024',y:[37.57,37.57,37.52,37.52]},{ x:'06/19/2024',y:[37.64,37.66,37.62,37.65]},{ x:'06/20/2024',y:[37.60,37.61,37.57,37.57]},{ x:'06/21/2024',y:[37.55,37.55,37.52,37.53]},{ x:'06/24/2024',y:[37.57,37.57,37.52,37.56]},{ x:'06/25/2024',y:[37.61,37.68,37.61,37.67]},{ x:'06/26/2024',y:[37.63,37.72,37.63,37.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00780b 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());