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:'03/23/2023',y:[37.07,37.09,36.98,37.09]},{ x:'03/24/2023',y:[37.09,37.13,37.09,37.13]},{ x:'03/27/2023',y:[37.17,37.17,37.11,37.11]},{ x:'03/28/2023',y:[37.01,37.01,36.92,37.00]},{ x:'03/29/2023',y:[36.94,36.99,36.94,36.99]},{ x:'03/30/2023',y:[37.06,37.06,37.05,37.05]},{ x:'03/31/2023',y:[36.99,37.00,36.97,37.00]},{ x:'04/06/2023',y:[37.27,37.33,37.27,37.31]},{ x:'04/07/2023',y:[37.24,37.24,37.24,37.24]},{ x:'04/10/2023',y:[37.16,37.16,37.14,37.15]},{ x:'04/11/2023',y:[37.16,37.17,37.16,37.17]},{ x:'04/12/2023',y:[37.18,37.18,37.18,37.18]},{ x:'04/13/2023',y:[37.25,37.25,37.21,37.22]},{ x:'04/14/2023',y:[37.18,37.18,37.13,37.13]},{ x:'04/17/2023',y:[37.13,37.19,37.13,37.14]},{ x:'04/18/2023',y:[37.16,37.16,37.12,37.12]},{ x:'04/19/2023',y:[37.11,37.13,37.11,37.13]},{ x:'04/20/2023',y:[37.15,37.25,37.15,37.25]},{ x:'04/21/2023',y:[37.29,37.31,37.29,37.31]},{ x:'04/24/2023',y:[37.30,37.30,37.28,37.28]},{ x:'04/25/2023',y:[37.36,37.36,37.36,37.36]},{ x:'04/26/2023',y:[37.44,37.54,37.44,37.54]},{ x:'04/27/2023',y:[37.54,37.54,37.50,37.50]},{ x:'04/28/2023',y:[37.45,37.46,37.42,37.46]},{ x:'05/02/2023',y:[37.47,37.52,37.47,37.52]},{ x:'05/03/2023',y:[37.61,37.61,37.56,37.57]},{ x:'05/04/2023',y:[37.67,37.68,37.65,37.68]},{ x:'05/05/2023',y:[37.61,37.61,37.55,37.57]},{ x:'05/08/2023',y:[37.54,37.54,37.51,37.51]},{ x:'05/09/2023',y:[37.48,37.48,37.45,37.48]},{ x:'05/10/2023',y:[37.54,37.54,37.54,37.54]},{ x:'05/11/2023',y:[37.60,37.61,37.60,37.61]},{ x:'05/12/2023',y:[37.69,37.70,37.68,37.68]},{ x:'05/15/2023',y:[37.68,37.71,37.67,37.68]},{ x:'05/16/2023',y:[37.69,37.69,37.65,37.67]},{ x:'05/17/2023',y:[37.67,37.67,37.66,37.66]},{ x:'05/18/2023',y:[37.63,37.63,37.53,37.57]},{ x:'05/19/2023',y:[37.51,37.51,37.45,37.45]},{ x:'05/22/2023',y:[37.35,37.41,37.35,37.38]},{ x:'05/23/2023',y:[37.35,37.40,37.32,37.40]},{ x:'05/24/2023',y:[37.49,37.49,37.49,37.49]},{ x:'05/25/2023',y:[37.46,37.46,37.46,37.46]},{ x:'05/26/2023',y:[37.35,37.35,37.28,37.29]},{ x:'05/29/2023',y:[37.20,37.20,37.10,37.13]},{ x:'05/30/2023',y:[37.13,37.13,37.03,37.11]},{ x:'05/31/2023',y:[37.33,37.36,37.33,37.36]},{ x:'06/01/2023',y:[37.39,37.39,37.37,37.37]},{ x:'06/02/2023',y:[37.31,37.33,37.31,37.33]},{ x:'06/05/2023',y:[37.23,37.29,37.23,37.27]},{ x:'06/06/2023',y:[37.31,37.35,37.30,37.35]},{ x:'06/07/2023',y:[37.35,37.35,37.34,37.35]},{ x:'06/08/2023',y:[37.33,37.37,37.33,37.37]},{ x:'06/09/2023',y:[37.35,37.40,37.34,37.39]},{ x:'06/12/2023',y:[37.28,37.35,37.28,37.33]},{ x:'06/13/2023',y:[37.33,37.34,37.31,37.32]},{ x:'06/14/2023',y:[37.28,37.29,37.23,37.29]},{ x:'06/15/2023',y:[37.29,37.30,37.25,37.25]},{ x:'06/16/2023',y:[36.88,36.90,36.84,36.90]},{ x:'06/19/2023',y:[36.91,36.96,36.91,36.96]},{ x:'06/20/2023',y:[36.97,36.98,36.97,36.98]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00856b 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());