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/10/2023',y:[37.53,37.73,37.53,37.73]},{ x:'04/11/2023',y:[37.59,37.70,37.59,37.70]},{ x:'04/12/2023',y:[37.72,37.72,37.70,37.70]},{ x:'04/13/2023',y:[37.60,37.60,37.55,37.57]},{ x:'04/14/2023',y:[37.45,37.45,37.41,37.41]},{ x:'04/17/2023',y:[37.39,37.39,37.32,37.32]},{ x:'04/18/2023',y:[37.20,37.20,37.01,37.06]},{ x:'04/19/2023',y:[37.22,37.22,37.16,37.16]},{ x:'04/20/2023',y:[37.20,37.23,37.20,37.23]},{ x:'04/21/2023',y:[37.22,37.31,37.22,37.31]},{ x:'04/24/2023',y:[37.25,37.25,37.24,37.24]},{ x:'04/25/2023',y:[37.78,37.78,37.62,37.73]},{ x:'04/26/2023',y:[37.74,37.93,37.74,37.93]},{ x:'04/27/2023',y:[37.84,37.84,37.64,37.68]},{ x:'04/28/2023',y:[37.51,37.57,37.40,37.57]},{ x:'05/02/2023',y:[37.40,37.40,37.14,37.14]},{ x:'05/03/2023',y:[37.66,37.66,37.44,37.46]},{ x:'05/04/2023',y:[37.55,37.55,37.39,37.50]},{ x:'05/05/2023',y:[37.61,37.61,37.18,37.19]},{ x:'05/08/2023',y:[37.19,37.26,37.18,37.26]},{ x:'05/09/2023',y:[36.83,36.83,36.70,36.79]},{ x:'05/10/2023',y:[36.80,36.81,36.79,36.79]},{ x:'05/11/2023',y:[37.04,37.10,37.04,37.05]},{ x:'05/12/2023',y:[37.44,37.49,37.44,37.47]},{ x:'05/15/2023',y:[37.27,37.31,37.25,37.25]},{ x:'05/16/2023',y:[37.05,37.05,36.87,36.87]},{ x:'05/17/2023',y:[36.40,36.40,36.23,36.28]},{ x:'05/18/2023',y:[36.28,36.28,36.24,36.28]},{ x:'05/19/2023',y:[36.12,36.12,35.93,35.93]},{ x:'05/22/2023',y:[35.75,35.79,35.75,35.79]},{ x:'05/23/2023',y:[35.66,35.66,35.64,35.64]},{ x:'05/24/2023',y:[35.84,35.86,35.84,35.84]},{ x:'05/25/2023',y:[35.84,35.84,35.63,35.63]},{ x:'05/26/2023',y:[35.69,35.69,35.61,35.61]},{ x:'05/29/2023',y:[35.77,35.78,35.71,35.72]},{ x:'05/30/2023',y:[35.82,35.93,35.82,35.92]},{ x:'05/31/2023',y:[36.19,36.27,36.19,36.27]},{ x:'06/01/2023',y:[36.30,36.30,36.26,36.27]},{ x:'06/02/2023',y:[36.38,36.43,36.38,36.42]},{ x:'06/05/2023',y:[36.39,36.39,36.25,36.25]},{ x:'06/06/2023',y:[36.30,36.32,36.30,36.32]},{ x:'06/07/2023',y:[36.55,36.58,36.55,36.58]},{ x:'06/08/2023',y:[36.05,36.05,36.03,36.05]},{ x:'06/09/2023',y:[36.17,36.28,36.17,36.28]},{ x:'06/12/2023',y:[36.30,36.33,36.30,36.32]},{ x:'06/13/2023',y:[36.34,36.40,36.34,36.40]},{ x:'06/14/2023',y:[36.30,36.30,36.22,36.23]},{ x:'06/15/2023',y:[36.28,36.29,36.28,36.29]},{ x:'06/16/2023',y:[36.59,36.61,36.59,36.60]},{ x:'06/19/2023',y:[36.65,36.76,36.65,36.76]},{ x:'06/20/2023',y:[36.70,36.76,36.65,36.76]},{ x:'06/21/2023',y:[37.21,37.21,37.15,37.15]},{ x:'06/26/2023',y:[37.17,37.27,37.17,37.19]},{ x:'06/27/2023',y:[37.20,37.26,37.12,37.14]},{ x:'06/28/2023',y:[37.05,37.13,37.05,37.10]},{ x:'06/29/2023',y:[37.30,37.30,37.27,37.27]},{ x:'06/30/2023',y:[36.99,36.99,36.97,36.97]},{ x:'07/03/2023',y:[37.29,37.31,37.29,37.31]},{ x:'07/04/2023',y:[37.31,37.35,37.31,37.34]},{ x:'07/05/2023',y:[37.44,37.44,37.36,37.37]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00754b 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());