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:[32.24,32.62,32.22,32.62]},{ x:'02/13/2023',y:[32.27,32.30,32.20,32.30]},{ x:'02/14/2023',y:[32.56,32.56,32.50,32.54]},{ x:'02/15/2023',y:[32.56,32.60,32.56,32.60]},{ x:'02/16/2023',y:[32.40,32.40,32.35,32.35]},{ x:'02/17/2023',y:[31.88,31.88,31.76,31.83]},{ x:'02/20/2023',y:[32.04,32.07,32.03,32.05]},{ x:'02/21/2023',y:[32.06,32.06,32.04,32.05]},{ x:'02/22/2023',y:[31.80,31.80,31.76,31.76]},{ x:'02/23/2023',y:[31.94,32.02,31.90,31.94]},{ x:'02/24/2023',y:[32.14,32.16,32.14,32.16]},{ x:'03/01/2023',y:[32.11,32.11,32.00,32.00]},{ x:'03/02/2023',y:[31.85,31.85,31.76,31.81]},{ x:'03/03/2023',y:[31.91,31.95,31.91,31.95]},{ x:'03/06/2023',y:[32.43,32.52,32.43,32.50]},{ x:'03/07/2023',y:[32.41,32.42,32.38,32.42]},{ x:'03/08/2023',y:[32.45,32.45,32.40,32.42]},{ x:'03/09/2023',y:[32.45,32.45,32.44,32.44]},{ x:'03/10/2023',y:[32.85,32.95,32.85,32.95]},{ x:'03/13/2023',y:[32.90,32.99,32.86,32.98]},{ x:'03/14/2023',y:[32.95,32.95,32.70,32.79]},{ x:'03/15/2023',y:[32.62,32.75,32.62,32.75]},{ x:'03/16/2023',y:[32.65,32.71,32.64,32.68]},{ x:'03/17/2023',y:[32.67,32.74,32.67,32.74]},{ x:'03/20/2023',y:[32.70,32.99,32.70,32.99]},{ x:'03/21/2023',y:[32.85,32.93,32.85,32.93]},{ x:'03/22/2023',y:[32.80,32.85,32.80,32.82]},{ x:'03/23/2023',y:[32.91,32.91,32.91,32.91]},{ x:'03/24/2023',y:[32.83,32.83,32.79,32.79]},{ x:'03/27/2023',y:[32.92,33.03,32.92,33.00]},{ x:'03/28/2023',y:[32.55,32.63,32.55,32.63]},{ x:'03/29/2023',y:[32.47,32.54,32.44,32.54]},{ x:'03/30/2023',y:[32.72,32.72,32.70,32.70]},{ x:'03/31/2023',y:[32.89,32.89,32.88,32.88]},{ x:'04/06/2023',y:[33.70,33.72,33.69,33.69]},{ x:'04/07/2023',y:[33.85,33.85,33.82,33.82]},{ x:'04/10/2023',y:[33.67,33.72,33.67,33.72]},{ x:'04/11/2023',y:[33.55,33.57,33.53,33.53]},{ x:'04/12/2023',y:[33.51,33.51,33.46,33.46]},{ x:'04/13/2023',y:[33.54,33.54,33.52,33.52]},{ x:'04/14/2023',y:[33.46,33.46,33.44,33.44]},{ x:'04/17/2023',y:[33.29,33.31,33.28,33.31]},{ x:'04/18/2023',y:[32.95,32.99,32.95,32.97]},{ x:'04/19/2023',y:[33.02,33.05,33.02,33.04]},{ x:'04/20/2023',y:[33.02,33.06,33.02,33.06]},{ x:'04/21/2023',y:[33.30,33.30,33.28,33.30]},{ x:'04/24/2023',y:[33.17,33.18,33.17,33.18]},{ x:'04/25/2023',y:[33.55,33.59,33.54,33.59]},{ x:'04/26/2023',y:[33.80,33.84,33.80,33.84]},{ x:'04/27/2023',y:[33.60,33.61,33.57,33.57]},{ x:'04/28/2023',y:[33.33,33.39,33.30,33.39]},{ x:'05/02/2023',y:[33.17,33.17,33.11,33.15]},{ x:'05/03/2023',y:[33.47,33.48,33.46,33.47]},{ x:'05/04/2023',y:[33.56,33.56,33.48,33.50]},{ x:'05/05/2023',y:[33.20,33.20,33.17,33.17]},{ x:'05/08/2023',y:[33.08,33.11,33.08,33.11]},{ x:'05/09/2023',y:[32.75,32.75,32.68,32.74]},{ x:'05/10/2023',y:[32.73,32.74,32.73,32.73]},{ x:'05/11/2023',y:[33.00,33.01,33.00,33.01]},{ x:'05/12/2023',y:[33.33,33.36,33.33,33.36]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00781b 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());