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/01/2023',y:[39.43,39.60,39.43,39.60]},{ x:'03/02/2023',y:[39.66,39.66,39.63,39.63]},{ x:'03/03/2023',y:[39.52,39.60,39.52,39.60]},{ x:'03/06/2023',y:[39.60,39.60,39.50,39.52]},{ x:'03/07/2023',y:[39.43,39.43,39.40,39.40]},{ x:'03/08/2023',y:[39.29,39.44,39.29,39.44]},{ x:'03/09/2023',y:[39.50,39.51,39.50,39.51]},{ x:'03/10/2023',y:[39.63,39.63,39.63,39.63]},{ x:'03/13/2023',y:[39.73,39.88,39.73,39.86]},{ x:'03/14/2023',y:[39.85,39.85,39.81,39.81]},{ x:'03/15/2023',y:[39.81,39.81,39.78,39.78]},{ x:'03/16/2023',y:[39.16,39.19,39.09,39.09]},{ x:'03/17/2023',y:[39.14,39.14,39.14,39.14]},{ x:'03/20/2023',y:[39.09,39.09,39.09,39.09]},{ x:'03/21/2023',y:[39.27,39.27,39.27,39.27]},{ x:'03/22/2023',y:[39.15,39.16,39.13,39.16]},{ x:'03/23/2023',y:[38.94,39.13,38.92,39.13]},{ x:'03/24/2023',y:[39.27,39.27,39.16,39.16]},{ x:'03/27/2023',y:[39.13,39.13,39.03,39.05]},{ x:'03/28/2023',y:[38.99,38.99,38.95,38.95]},{ x:'03/29/2023',y:[39.03,39.03,38.99,38.99]},{ x:'03/30/2023',y:[39.02,39.09,39.02,39.09]},{ x:'03/31/2023',y:[39.27,39.27,39.21,39.24]},{ x:'04/06/2023',y:[39.27,39.27,39.24,39.24]},{ x:'04/07/2023',y:[39.20,39.21,39.19,39.21]},{ x:'04/10/2023',y:[39.21,39.21,39.16,39.16]},{ x:'04/11/2023',y:[39.16,39.28,39.16,39.28]},{ x:'04/12/2023',y:[39.29,39.29,39.29,39.29]},{ x:'04/13/2023',y:[39.31,39.34,39.31,39.34]},{ x:'04/14/2023',y:[39.44,39.46,39.44,39.46]},{ x:'04/17/2023',y:[39.45,39.45,39.39,39.43]},{ x:'04/18/2023',y:[39.40,39.44,39.39,39.44]},{ x:'04/19/2023',y:[39.39,39.43,39.37,39.38]},{ x:'04/20/2023',y:[39.37,39.43,39.37,39.43]},{ x:'04/21/2023',y:[39.46,39.46,39.43,39.45]},{ x:'04/24/2023',y:[39.49,39.50,39.42,39.42]},{ x:'04/25/2023',y:[39.46,39.46,39.42,39.42]},{ x:'04/26/2023',y:[39.42,39.45,39.41,39.41]},{ x:'04/27/2023',y:[39.40,39.42,39.40,39.42]},{ x:'04/28/2023',y:[39.46,39.54,39.39,39.54]},{ x:'05/02/2023',y:[39.61,39.62,39.58,39.58]},{ x:'05/03/2023',y:[39.58,39.58,39.54,39.56]},{ x:'05/04/2023',y:[39.50,39.62,39.50,39.62]},{ x:'05/05/2023',y:[39.43,39.47,39.43,39.43]},{ x:'05/08/2023',y:[39.36,39.40,39.20,39.36]},{ x:'05/09/2023',y:[39.35,39.35,39.28,39.32]},{ x:'05/10/2023',y:[39.38,39.39,39.37,39.38]},{ x:'05/11/2023',y:[39.25,39.34,39.25,39.33]},{ x:'05/12/2023',y:[39.32,39.34,39.32,39.34]},{ x:'05/15/2023',y:[39.32,39.37,39.30,39.31]},{ x:'05/16/2023',y:[39.39,39.39,39.31,39.33]},{ x:'05/17/2023',y:[39.25,39.25,39.18,39.22]},{ x:'05/18/2023',y:[39.16,39.16,39.09,39.10]},{ x:'05/19/2023',y:[38.94,38.94,38.84,38.86]},{ x:'05/22/2023',y:[38.98,38.98,38.85,38.88]},{ x:'05/23/2023',y:[38.77,38.77,38.75,38.76]},{ x:'05/24/2023',y:[38.77,38.82,38.77,38.82]},{ x:'05/25/2023',y:[38.84,38.86,38.84,38.86]},{ x:'05/26/2023',y:[38.79,38.93,38.79,38.93]},{ x:'05/29/2023',y:[38.71,38.72,38.70,38.72]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00765b 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());