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/06/2023',y:[32.72,32.72,32.72,32.72]},{ x:'04/07/2023',y:[32.94,32.94,32.84,32.84]},{ x:'04/10/2023',y:[32.68,32.68,32.68,32.68]},{ x:'04/11/2023',y:[32.56,32.56,32.56,32.56]},{ x:'04/12/2023',y:[32.53,32.53,32.45,32.52]},{ x:'04/13/2023',y:[32.50,32.50,32.50,32.50]},{ x:'04/14/2023',y:[32.27,32.27,32.27,32.27]},{ x:'04/17/2023',y:[32.21,32.22,32.21,32.22]},{ x:'04/18/2023',y:[31.89,31.89,31.89,31.89]},{ x:'04/19/2023',y:[32.03,32.03,32.03,32.03]},{ x:'04/20/2023',y:[32.09,32.09,32.09,32.09]},{ x:'04/21/2023',y:[32.25,32.25,32.19,32.19]},{ x:'04/24/2023',y:[32.13,32.13,32.13,32.13]},{ x:'04/25/2023',y:[32.54,32.54,32.54,32.54]},{ x:'04/26/2023',y:[32.85,32.85,32.85,32.85]},{ x:'04/27/2023',y:[32.75,32.75,32.60,32.64]},{ x:'04/28/2023',y:[32.47,32.51,32.47,32.51]},{ x:'05/02/2023',y:[32.40,32.40,32.14,32.15]},{ x:'05/03/2023',y:[32.33,32.41,32.33,32.41]},{ x:'05/04/2023',y:[32.44,32.44,32.44,32.44]},{ x:'05/05/2023',y:[32.09,32.15,32.09,32.15]},{ x:'05/08/2023',y:[32.15,32.15,32.15,32.15]},{ x:'05/09/2023',y:[31.84,31.85,31.84,31.85]},{ x:'05/10/2023',y:[31.80,31.80,31.76,31.76]},{ x:'05/11/2023',y:[31.99,31.99,31.99,31.99]},{ x:'05/12/2023',y:[32.26,32.30,32.26,32.30]},{ x:'05/15/2023',y:[32.20,32.20,32.14,32.20]},{ x:'05/16/2023',y:[31.92,31.92,31.83,31.84]},{ x:'05/17/2023',y:[31.30,31.35,31.29,31.29]},{ x:'05/18/2023',y:[31.29,31.29,31.25,31.25]},{ x:'05/19/2023',y:[31.04,31.05,31.01,31.05]},{ x:'05/22/2023',y:[30.89,30.91,30.86,30.91]},{ x:'05/23/2023',y:[30.79,30.85,30.79,30.85]},{ x:'05/24/2023',y:[30.99,30.99,30.96,30.96]},{ x:'05/25/2023',y:[30.81,30.82,30.81,30.82]},{ x:'05/26/2023',y:[30.75,30.75,30.73,30.73]},{ x:'05/29/2023',y:[30.82,30.82,30.82,30.82]},{ x:'05/30/2023',y:[30.95,30.95,30.95,30.95]},{ x:'05/31/2023',y:[31.28,31.28,31.28,31.28]},{ x:'06/01/2023',y:[31.27,31.34,31.27,31.34]},{ x:'06/02/2023',y:[31.45,31.45,31.45,31.45]},{ x:'06/05/2023',y:[31.30,31.30,31.30,31.30]},{ x:'06/06/2023',y:[31.30,31.30,31.30,31.30]},{ x:'06/07/2023',y:[31.54,31.54,31.54,31.54]},{ x:'06/08/2023',y:[31.08,31.08,31.08,31.08]},{ x:'06/09/2023',y:[31.33,31.33,31.33,31.33]},{ x:'06/12/2023',y:[31.32,31.32,31.32,31.32]},{ x:'06/13/2023',y:[31.47,31.47,31.41,31.41]},{ x:'06/14/2023',y:[31.25,31.25,31.25,31.25]},{ x:'06/15/2023',y:[31.37,31.37,31.37,31.37]},{ x:'06/16/2023',y:[31.68,31.68,31.68,31.68]},{ x:'06/19/2023',y:[31.80,31.80,31.80,31.80]},{ x:'06/20/2023',y:[31.74,31.74,31.74,31.74]},{ x:'06/21/2023',y:[32.06,32.11,32.06,32.11]},{ x:'06/26/2023',y:[32.18,32.18,32.18,32.18]},{ x:'06/27/2023',y:[32.04,32.09,32.04,32.09]},{ x:'06/28/2023',y:[32.04,32.04,32.04,32.04]},{ x:'06/29/2023',y:[32.19,32.19,32.19,32.19]},{ x:'06/30/2023',y:[31.86,31.86,31.86,31.86]},{ x:'07/03/2023',y:[32.22,32.22,32.22,32.22]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00841b 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());