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:'02/10/2023',y:[36.21,36.21,36.09,36.13]},{ x:'02/13/2023',y:[35.83,35.86,35.72,35.81]},{ x:'02/14/2023',y:[35.94,35.99,35.94,35.99]},{ x:'02/15/2023',y:[36.06,36.11,36.05,36.11]},{ x:'02/16/2023',y:[35.86,35.86,35.75,35.84]},{ x:'02/17/2023',y:[35.40,35.41,35.32,35.33]},{ x:'02/20/2023',y:[35.55,35.57,35.51,35.53]},{ x:'02/21/2023',y:[35.53,35.53,35.52,35.53]},{ x:'02/22/2023',y:[35.37,35.37,35.15,35.23]},{ x:'02/23/2023',y:[35.33,35.33,35.12,35.17]},{ x:'02/24/2023',y:[35.42,35.54,35.42,35.52]},{ x:'03/01/2023',y:[35.50,35.50,35.33,35.34]},{ x:'03/02/2023',y:[35.04,35.04,35.03,35.03]},{ x:'03/03/2023',y:[35.03,35.20,35.03,35.18]},{ x:'03/06/2023',y:[35.81,35.81,35.65,35.72]},{ x:'03/07/2023',y:[35.64,35.64,35.60,35.60]},{ x:'03/08/2023',y:[35.61,35.62,35.60,35.62]},{ x:'03/09/2023',y:[35.54,35.63,35.54,35.56]},{ x:'03/10/2023',y:[35.83,35.91,35.83,35.90]},{ x:'03/13/2023',y:[36.03,36.03,35.93,35.96]},{ x:'03/14/2023',y:[35.95,35.96,35.80,35.83]},{ x:'03/15/2023',y:[35.86,35.86,35.73,35.76]},{ x:'03/16/2023',y:[36.25,36.38,36.25,36.37]},{ x:'03/17/2023',y:[36.15,36.21,36.12,36.21]},{ x:'03/20/2023',y:[36.10,36.19,36.10,36.19]},{ x:'03/21/2023',y:[36.26,36.27,36.20,36.23]},{ x:'03/22/2023',y:[36.21,36.32,36.21,36.30]},{ x:'03/23/2023',y:[36.34,36.40,36.30,36.40]},{ x:'03/24/2023',y:[36.40,36.44,36.32,36.34]},{ x:'03/27/2023',y:[36.30,36.70,36.30,36.58]},{ x:'03/28/2023',y:[36.12,36.14,36.05,36.13]},{ x:'03/29/2023',y:[35.96,36.05,35.94,36.05]},{ x:'03/30/2023',y:[36.29,36.33,36.29,36.30]},{ x:'03/31/2023',y:[36.40,36.40,36.31,36.36]},{ x:'04/06/2023',y:[37.29,37.29,37.20,37.25]},{ x:'04/07/2023',y:[37.24,37.31,37.24,37.27]},{ x:'04/10/2023',y:[37.01,37.17,37.00,37.06]},{ x:'04/11/2023',y:[37.04,37.05,37.00,37.05]},{ x:'04/12/2023',y:[37.00,37.04,37.00,37.00]},{ x:'04/13/2023',y:[36.97,36.99,36.94,36.96]},{ x:'04/14/2023',y:[36.89,36.91,36.88,36.91]},{ x:'04/17/2023',y:[36.91,36.91,36.83,36.86]},{ x:'04/18/2023',y:[36.64,36.65,36.55,36.57]},{ x:'04/19/2023',y:[36.62,36.70,36.62,36.70]},{ x:'04/20/2023',y:[36.67,36.76,36.67,36.75]},{ x:'04/21/2023',y:[36.40,36.52,36.40,36.51]},{ x:'04/24/2023',y:[36.46,36.46,36.42,36.44]},{ x:'04/25/2023',y:[36.62,36.78,36.62,36.77]},{ x:'04/26/2023',y:[36.84,37.06,36.84,37.03]},{ x:'04/27/2023',y:[36.84,36.84,36.80,36.82]},{ x:'04/28/2023',y:[36.98,36.98,36.66,36.72]},{ x:'05/02/2023',y:[36.60,36.60,36.37,36.39]},{ x:'05/03/2023',y:[36.64,36.64,36.61,36.61]},{ x:'05/04/2023',y:[36.65,36.65,36.61,36.63]},{ x:'05/05/2023',y:[36.46,36.46,36.43,36.43]},{ x:'05/08/2023',y:[36.48,36.48,36.33,36.35]},{ x:'05/09/2023',y:[36.28,36.28,36.02,36.08]},{ x:'05/10/2023',y:[36.00,36.06,36.00,36.03]},{ x:'05/11/2023',y:[36.16,36.29,36.16,36.26]},{ x:'05/12/2023',y:[36.60,36.62,36.58,36.62]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00746b 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());