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/11/2023',y:[28.34,28.38,28.33,28.37]},{ x:'04/12/2023',y:[28.36,28.39,28.34,28.37]},{ x:'04/13/2023',y:[28.43,28.46,28.37,28.41]},{ x:'04/14/2023',y:[28.18,28.19,28.13,28.14]},{ x:'04/17/2023',y:[27.92,27.94,27.89,27.91]},{ x:'04/18/2023',y:[27.64,27.67,27.63,27.63]},{ x:'04/19/2023',y:[27.66,27.69,27.63,27.69]},{ x:'04/20/2023',y:[27.68,27.77,27.68,27.76]},{ x:'04/21/2023',y:[27.96,28.04,27.92,28.04]},{ x:'04/24/2023',y:[27.98,27.99,27.90,27.91]},{ x:'04/25/2023',y:[28.19,28.23,28.18,28.23]},{ x:'04/26/2023',y:[28.41,28.55,28.41,28.53]},{ x:'04/27/2023',y:[28.29,28.29,28.20,28.21]},{ x:'04/28/2023',y:[28.01,28.10,27.98,28.09]},{ x:'05/02/2023',y:[28.00,28.00,27.94,27.95]},{ x:'05/03/2023',y:[28.41,28.41,28.34,28.35]},{ x:'05/04/2023',y:[28.62,28.62,28.52,28.59]},{ x:'05/05/2023',y:[28.32,28.32,28.26,28.28]},{ x:'05/08/2023',y:[28.17,28.19,28.16,28.18]},{ x:'05/09/2023',y:[28.00,28.07,27.88,27.89]},{ x:'05/10/2023',y:[27.82,27.82,27.77,27.78]},{ x:'05/11/2023',y:[27.92,27.95,27.85,27.91]},{ x:'05/12/2023',y:[28.22,28.25,28.20,28.24]},{ x:'05/15/2023',y:[28.11,28.12,28.02,28.03]},{ x:'05/16/2023',y:[27.88,27.88,27.83,27.87]},{ x:'05/17/2023',y:[27.77,27.79,27.74,27.79]},{ x:'05/18/2023',y:[27.75,27.75,27.68,27.73]},{ x:'05/19/2023',y:[27.53,27.55,27.49,27.49]},{ x:'05/22/2023',y:[27.27,27.27,27.17,27.24]},{ x:'05/23/2023',y:[27.09,27.09,27.04,27.05]},{ x:'05/24/2023',y:[27.11,27.18,27.11,27.16]},{ x:'05/25/2023',y:[27.09,27.09,27.01,27.03]},{ x:'05/26/2023',y:[26.99,26.99,26.89,26.95]},{ x:'05/29/2023',y:[27.07,27.07,26.99,27.01]},{ x:'05/30/2023',y:[27.12,27.15,27.07,27.15]},{ x:'05/31/2023',y:[27.28,27.40,27.24,27.39]},{ x:'06/01/2023',y:[27.60,27.60,27.47,27.50]},{ x:'06/02/2023',y:[27.67,27.67,27.58,27.63]},{ x:'06/05/2023',y:[27.37,27.41,27.35,27.41]},{ x:'06/06/2023',y:[27.39,27.39,27.36,27.38]},{ x:'06/07/2023',y:[27.55,27.60,27.52,27.60]},{ x:'06/08/2023',y:[27.35,27.35,27.18,27.22]},{ x:'06/09/2023',y:[27.38,27.41,27.34,27.41]},{ x:'06/12/2023',y:[27.42,27.47,27.41,27.46]},{ x:'06/13/2023',y:[27.50,27.54,27.46,27.54]},{ x:'06/14/2023',y:[27.33,27.35,27.29,27.32]},{ x:'06/15/2023',y:[27.43,27.45,27.35,27.38]},{ x:'06/16/2023',y:[27.30,27.33,27.25,27.29]},{ x:'06/19/2023',y:[27.25,27.34,27.25,27.33]},{ x:'06/20/2023',y:[27.23,27.26,27.18,27.26]},{ x:'06/21/2023',y:[27.54,27.62,27.54,27.59]},{ x:'06/26/2023',y:[27.62,27.72,27.62,27.71]},{ x:'06/27/2023',y:[27.73,27.75,27.68,27.68]},{ x:'06/28/2023',y:[27.65,27.66,27.60,27.64]},{ x:'06/29/2023',y:[27.79,27.79,27.73,27.73]},{ x:'06/30/2023',y:[27.37,27.43,27.37,27.42]},{ x:'07/03/2023',y:[27.58,27.63,27.58,27.63]},{ x:'07/04/2023',y:[27.58,27.61,27.55,27.58]},{ x:'07/05/2023',y:[27.52,27.57,27.47,27.53]},{ x:'07/06/2023',y:[27.37,27.38,27.32,27.35]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00857b 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());