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/24/2024',y:[27.28,27.28,27.20,27.26]},{ x:'04/25/2024',y:[27.15,27.15,27.10,27.11]},{ x:'04/26/2024',y:[27.01,27.05,27.01,27.05]},{ x:'04/29/2024',y:[27.22,27.25,27.21,27.21]},{ x:'04/30/2024',y:[27.30,27.34,27.30,27.34]},{ x:'05/02/2024',y:[27.25,27.31,27.25,27.31]},{ x:'05/03/2024',y:[27.20,27.25,27.20,27.25]},{ x:'05/06/2024',y:[27.33,27.35,27.33,27.35]},{ x:'05/07/2024',y:[27.51,27.59,27.51,27.59]},{ x:'05/08/2024',y:[27.68,27.68,27.64,27.67]},{ x:'05/09/2024',y:[27.51,27.54,27.51,27.52]},{ x:'05/10/2024',y:[27.69,27.73,27.69,27.73]},{ x:'05/13/2024',y:[27.65,27.65,27.63,27.63]},{ x:'05/14/2024',y:[27.67,27.67,27.65,27.67]},{ x:'05/15/2024',y:[27.72,27.72,27.67,27.67]},{ x:'05/16/2024',y:[27.87,27.92,27.87,27.92]},{ x:'05/17/2024',y:[27.57,27.59,27.55,27.55]},{ x:'05/20/2024',y:[27.45,27.48,27.44,27.47]},{ x:'05/21/2024',y:[27.46,27.47,27.44,27.44]},{ x:'05/22/2024',y:[27.54,27.54,27.51,27.51]},{ x:'05/23/2024',y:[27.53,27.53,27.50,27.50]},{ x:'05/24/2024',y:[27.40,27.40,27.38,27.40]},{ x:'06/11/2024',y:[27.56,27.58,27.54,27.54]},{ x:'06/12/2024',y:[27.66,27.69,27.66,27.69]},{ x:'06/13/2024',y:[27.82,27.84,27.81,27.84]},{ x:'06/14/2024',y:[28.08,28.14,28.08,28.12]},{ x:'06/17/2024',y:[28.16,28.20,28.15,28.15]},{ x:'06/18/2024',y:[28.15,28.17,28.11,28.17]},{ x:'06/19/2024',y:[28.26,28.32,28.26,28.31]},{ x:'06/20/2024',y:[28.23,28.23,28.18,28.21]},{ x:'06/21/2024',y:[28.12,28.15,28.12,28.15]},{ x:'06/24/2024',y:[28.22,28.25,28.15,28.19]},{ x:'06/25/2024',y:[28.28,28.33,28.28,28.32]},{ x:'06/26/2024',y:[28.25,28.26,28.25,28.26]},{ x:'06/27/2024',y:[28.06,28.06,28.03,28.06]},{ x:'06/28/2024',y:[28.11,28.11,28.03,28.03]},{ x:'07/01/2024',y:[27.64,27.68,27.64,27.67]},{ x:'07/02/2024',y:[27.61,27.69,27.61,27.67]},{ x:'07/03/2024',y:[27.73,27.78,27.73,27.75]},{ x:'07/04/2024',y:[27.85,27.85,27.83,27.83]},{ x:'07/05/2024',y:[27.74,27.76,27.73,27.76]},{ x:'07/12/2024',y:[28.25,28.31,28.25,28.31]},{ x:'07/15/2024',y:[28.21,28.22,28.21,28.22]},{ x:'07/16/2024',y:[28.31,28.37,28.31,28.37]},{ x:'07/17/2024',y:[28.58,28.58,28.55,28.57]},{ x:'07/18/2024',y:[28.53,28.53,28.53,28.53]},{ x:'07/19/2024',y:[28.54,28.55,28.50,28.55]},{ x:'07/22/2024',y:[28.52,28.61,28.52,28.61]},{ x:'07/23/2024',y:[28.47,28.48,28.46,28.48]},{ x:'07/26/2024',y:[28.35,28.37,28.35,28.36]},{ x:'07/29/2024',y:[28.55,28.60,28.54,28.54]},{ x:'07/30/2024',y:[28.66,28.70,28.63,28.68]},{ x:'07/31/2024',y:[28.69,28.73,28.69,28.71]},{ x:'08/01/2024',y:[28.92,28.98,28.92,28.96]},{ x:'08/02/2024',y:[29.13,29.26,29.13,29.19]},{ x:'08/05/2024',y:[29.83,29.83,29.69,29.79]},{ x:'08/06/2024',y:[29.55,29.58,29.48,29.55]},{ x:'08/07/2024',y:[29.33,29.33,29.26,29.30]},{ x:'08/08/2024',y:[29.08,29.08,29.04,29.04]},{ x:'08/09/2024',y:[28.91,28.91,28.80,28.84]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00847b 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());