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:'04/29/2024',y:[42.46,42.58,42.46,42.52]},{ x:'04/30/2024',y:[42.44,42.51,42.44,42.51]},{ x:'05/02/2024',y:[42.52,42.56,42.52,42.56]},{ x:'05/03/2024',y:[42.37,42.37,42.31,42.33]},{ x:'05/06/2024',y:[42.36,42.36,42.18,42.27]},{ x:'05/07/2024',y:[42.29,42.33,42.29,42.33]},{ x:'05/08/2024',y:[42.44,42.44,42.42,42.42]},{ x:'05/09/2024',y:[42.43,42.44,42.43,42.44]},{ x:'05/10/2024',y:[42.43,42.50,42.43,42.50]},{ x:'05/13/2024',y:[42.50,42.51,42.47,42.47]},{ x:'05/14/2024',y:[42.48,42.48,42.45,42.45]},{ x:'05/15/2024',y:[42.52,42.52,42.23,42.25]},{ x:'05/16/2024',y:[42.15,42.15,42.03,42.03]},{ x:'05/17/2024',y:[42.14,42.24,42.14,42.24]},{ x:'05/20/2024',y:[42.22,42.23,42.21,42.23]},{ x:'05/21/2024',y:[42.35,42.35,42.35,42.35]},{ x:'05/22/2024',y:[42.30,42.32,42.28,42.32]},{ x:'05/23/2024',y:[42.30,42.30,42.23,42.23]},{ x:'05/24/2024',y:[42.20,42.25,42.20,42.25]},{ x:'06/11/2024',y:[42.42,42.53,42.42,42.51]},{ x:'06/12/2024',y:[42.52,42.54,42.50,42.52]},{ x:'06/13/2024',y:[42.41,42.45,42.37,42.45]},{ x:'06/14/2024',y:[42.49,42.53,42.48,42.53]},{ x:'06/17/2024',y:[42.51,42.52,42.51,42.51]},{ x:'06/18/2024',y:[42.52,42.57,42.49,42.56]},{ x:'06/19/2024',y:[42.58,42.58,42.55,42.56]},{ x:'06/20/2024',y:[42.58,42.58,42.51,42.51]},{ x:'06/21/2024',y:[42.51,42.53,42.46,42.53]},{ x:'06/24/2024',y:[42.21,42.22,42.15,42.20]},{ x:'06/25/2024',y:[42.26,42.26,42.20,42.23]},{ x:'06/26/2024',y:[42.29,42.38,42.29,42.38]},{ x:'06/27/2024',y:[42.38,42.51,42.38,42.46]},{ x:'06/28/2024',y:[42.49,42.49,42.35,42.36]},{ x:'07/01/2024',y:[42.38,42.42,42.36,42.42]},{ x:'07/02/2024',y:[42.50,42.50,42.50,42.50]},{ x:'07/03/2024',y:[42.53,42.66,42.53,42.66]},{ x:'07/04/2024',y:[42.56,42.56,42.46,42.48]},{ x:'07/05/2024',y:[42.48,42.48,42.31,42.37]},{ x:'07/12/2024',y:[42.45,42.48,42.44,42.48]},{ x:'07/15/2024',y:[42.61,42.62,42.57,42.61]},{ x:'07/16/2024',y:[42.65,42.67,42.65,42.67]},{ x:'07/17/2024',y:[42.67,42.67,42.62,42.62]},{ x:'07/18/2024',y:[42.67,42.67,42.62,42.63]},{ x:'07/19/2024',y:[42.76,42.85,42.76,42.84]},{ x:'07/22/2024',y:[42.85,43.02,42.85,43.02]},{ x:'07/23/2024',y:[42.99,43.00,42.97,42.97]},{ x:'07/26/2024',y:[43.06,43.06,42.95,42.96]},{ x:'07/29/2024',y:[43.05,43.05,42.99,43.04]},{ x:'07/30/2024',y:[43.04,43.09,43.04,43.05]},{ x:'07/31/2024',y:[43.09,43.09,43.03,43.03]},{ x:'08/01/2024',y:[42.91,42.96,42.86,42.96]},{ x:'08/02/2024',y:[43.01,43.10,43.01,43.03]},{ x:'08/05/2024',y:[43.01,43.01,42.88,42.90]},{ x:'08/06/2024',y:[42.77,42.96,42.77,42.94]},{ x:'08/07/2024',y:[42.94,42.94,42.89,42.92]},{ x:'08/08/2024',y:[42.90,42.90,42.73,42.73]},{ x:'08/09/2024',y:[42.64,42.64,42.56,42.62]},{ x:'08/12/2024',y:[42.62,42.62,42.56,42.62]},{ x:'08/13/2024',y:[42.60,42.60,42.51,42.55]},{ x:'08/14/2024',y:[42.46,42.46,42.43,42.43]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00859b 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());