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:'05/29/2023',y:[33.40,33.40,33.37,33.38]},{ x:'05/30/2023',y:[33.48,33.49,33.48,33.49]},{ x:'05/31/2023',y:[33.61,33.72,33.61,33.72]},{ x:'06/01/2023',y:[33.73,33.74,33.73,33.74]},{ x:'06/02/2023',y:[33.69,33.69,33.68,33.68]},{ x:'06/05/2023',y:[33.62,33.62,33.61,33.61]},{ x:'06/06/2023',y:[33.65,33.66,33.65,33.66]},{ x:'06/07/2023',y:[33.72,33.73,33.72,33.73]},{ x:'06/08/2023',y:[33.54,33.56,33.54,33.56]},{ x:'06/09/2023',y:[33.57,33.58,33.56,33.57]},{ x:'06/12/2023',y:[33.61,33.62,33.61,33.62]},{ x:'06/13/2023',y:[33.71,33.71,33.66,33.66]},{ x:'06/14/2023',y:[33.60,33.60,33.58,33.58]},{ x:'06/15/2023',y:[33.64,33.64,33.59,33.59]},{ x:'06/16/2023',y:[33.67,33.72,33.67,33.71]},{ x:'06/19/2023',y:[33.86,33.86,33.86,33.86]},{ x:'06/20/2023',y:[33.81,33.84,33.81,33.84]},{ x:'06/21/2023',y:[34.05,34.10,34.05,34.07]},{ x:'06/26/2023',y:[34.27,34.29,34.27,34.29]},{ x:'06/27/2023',y:[34.35,34.35,34.30,34.30]},{ x:'06/28/2023',y:[34.32,34.37,34.32,34.37]},{ x:'06/29/2023',y:[34.37,34.41,34.37,34.41]},{ x:'06/30/2023',y:[34.32,34.37,34.32,34.34]},{ x:'07/03/2023',y:[34.36,34.37,34.36,34.37]},{ x:'07/04/2023',y:[34.44,34.47,34.44,34.47]},{ x:'07/05/2023',y:[34.47,34.47,34.47,34.47]},{ x:'07/06/2023',y:[34.44,34.44,34.42,34.42]},{ x:'07/07/2023',y:[34.39,34.40,34.39,34.40]},{ x:'07/10/2023',y:[34.12,34.13,34.12,34.13]},{ x:'07/11/2023',y:[34.14,34.17,34.14,34.16]},{ x:'07/12/2023',y:[34.20,34.20,34.16,34.16]},{ x:'07/13/2023',y:[34.14,34.15,34.12,34.13]},{ x:'07/14/2023',y:[34.24,34.27,34.19,34.19]},{ x:'07/17/2023',y:[34.33,34.38,34.33,34.38]},{ x:'07/18/2023',y:[34.02,34.02,33.98,33.98]},{ x:'07/19/2023',y:[34.06,34.12,34.06,34.12]},{ x:'07/20/2023',y:[34.18,34.18,34.18,34.18]},{ x:'07/21/2023',y:[34.25,34.27,34.23,34.27]},{ x:'07/24/2023',y:[34.34,34.35,34.34,34.35]},{ x:'07/25/2023',y:[34.39,34.39,34.37,34.37]},{ x:'07/26/2023',y:[34.35,34.37,34.35,34.35]},{ x:'07/27/2023',y:[34.28,34.28,34.28,34.28]},{ x:'07/28/2023',y:[34.34,34.42,34.33,34.33]},{ x:'07/31/2023',y:[34.42,34.48,34.42,34.48]},{ x:'08/01/2023',y:[34.66,34.68,34.66,34.68]},{ x:'08/02/2023',y:[34.68,34.70,34.67,34.70]},{ x:'08/04/2023',y:[34.32,34.39,34.30,34.38]},{ x:'08/07/2023',y:[34.16,34.29,34.16,34.27]},{ x:'08/08/2023',y:[34.41,34.42,34.39,34.42]},{ x:'08/09/2023',y:[34.55,34.55,34.52,34.55]},{ x:'08/10/2023',y:[34.52,34.52,34.47,34.49]},{ x:'08/11/2023',y:[34.51,34.51,34.46,34.46]},{ x:'08/14/2023',y:[34.49,34.52,34.49,34.50]},{ x:'08/15/2023',y:[34.45,34.45,34.40,34.40]},{ x:'08/16/2023',y:[34.20,34.20,34.15,34.15]},{ x:'08/17/2023',y:[34.04,34.04,34.03,34.03]},{ x:'08/18/2023',y:[33.93,33.97,33.93,33.96]},{ x:'08/21/2023',y:[33.91,33.92,33.91,33.92]},{ x:'08/22/2023',y:[33.65,33.65,33.65,33.65]},{ x:'08/23/2023',y:[33.80,33.80,33.78,33.78]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00848b 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());