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:'01/31/2023',y:[30.20,30.20,29.99,30.01]},{ x:'02/01/2023',y:[30.03,30.06,29.97,30.00]},{ x:'02/02/2023',y:[29.94,29.94,29.72,29.80]},{ x:'02/03/2023',y:[29.80,29.85,29.77,29.77]},{ x:'02/06/2023',y:[29.92,29.92,29.84,29.87]},{ x:'02/07/2023',y:[29.90,29.91,29.87,29.90]},{ x:'02/08/2023',y:[29.90,29.94,29.88,29.93]},{ x:'02/09/2023',y:[29.96,30.04,29.96,29.98]},{ x:'02/10/2023',y:[29.98,29.99,29.95,29.99]},{ x:'02/13/2023',y:[29.99,30.10,29.99,30.08]},{ x:'02/14/2023',y:[29.99,30.07,29.99,30.04]},{ x:'02/15/2023',y:[30.04,30.11,30.04,30.09]},{ x:'02/16/2023',y:[30.11,30.11,30.00,30.03]},{ x:'02/17/2023',y:[30.10,30.13,30.06,30.13]},{ x:'02/20/2023',y:[30.18,30.18,30.13,30.15]},{ x:'02/21/2023',y:[30.18,30.18,30.15,30.18]},{ x:'02/22/2023',y:[30.18,30.26,29.50,30.25]},{ x:'02/23/2023',y:[30.23,30.24,30.06,30.08]},{ x:'02/24/2023',y:[30.10,30.22,30.10,30.22]},{ x:'03/01/2023',y:[30.22,30.34,30.22,30.29]},{ x:'03/02/2023',y:[30.26,30.30,30.22,30.28]},{ x:'03/03/2023',y:[30.25,30.30,30.25,30.30]},{ x:'03/06/2023',y:[30.31,30.33,30.26,30.30]},{ x:'03/07/2023',y:[30.31,30.33,30.27,30.28]},{ x:'03/08/2023',y:[30.40,30.42,30.34,30.36]},{ x:'03/09/2023',y:[30.38,30.40,30.38,30.39]},{ x:'03/10/2023',y:[30.50,30.63,30.50,30.62]},{ x:'03/13/2023',y:[30.64,30.67,30.55,30.56]},{ x:'03/14/2023',y:[30.70,30.70,30.57,30.57]},{ x:'03/15/2023',y:[30.60,30.60,30.52,30.56]},{ x:'03/16/2023',y:[30.72,30.82,30.72,30.78]},{ x:'03/17/2023',y:[30.67,30.67,30.58,30.65]},{ x:'03/20/2023',y:[30.67,30.80,30.67,30.78]},{ x:'03/21/2023',y:[30.77,30.79,30.74,30.78]},{ x:'03/22/2023',y:[30.68,30.68,30.61,30.61]},{ x:'03/23/2023',y:[30.69,30.69,30.55,30.59]},{ x:'03/24/2023',y:[30.68,30.68,30.62,30.66]},{ x:'03/27/2023',y:[30.68,30.74,30.66,30.66]},{ x:'03/28/2023',y:[30.61,30.61,30.52,30.58]},{ x:'03/29/2023',y:[30.52,30.58,30.51,30.58]},{ x:'03/30/2023',y:[30.53,30.63,30.53,30.63]},{ x:'03/31/2023',y:[30.61,30.61,30.55,30.59]},{ x:'04/06/2023',y:[30.78,30.86,30.77,30.82]},{ x:'04/07/2023',y:[30.82,30.82,30.78,30.78]},{ x:'04/10/2023',y:[30.75,30.75,30.72,30.73]},{ x:'04/11/2023',y:[30.73,30.75,30.73,30.74]},{ x:'04/12/2023',y:[30.73,30.75,30.72,30.74]},{ x:'04/13/2023',y:[30.75,30.79,30.75,30.77]},{ x:'04/14/2023',y:[30.77,30.78,30.74,30.74]},{ x:'04/17/2023',y:[30.74,30.77,30.72,30.74]},{ x:'04/18/2023',y:[30.73,30.74,30.70,30.71]},{ x:'04/19/2023',y:[30.73,30.73,30.70,30.73]},{ x:'04/20/2023',y:[30.73,30.82,30.73,30.82]},{ x:'04/21/2023',y:[30.50,30.56,30.49,30.55]},{ x:'04/24/2023',y:[30.57,30.57,30.52,30.55]},{ x:'04/25/2023',y:[30.56,30.62,30.56,30.59]},{ x:'04/26/2023',y:[30.66,30.72,30.66,30.71]},{ x:'04/27/2023',y:[30.71,30.73,30.67,30.67]},{ x:'04/28/2023',y:[30.67,30.70,30.65,30.68]},{ x:'05/02/2023',y:[30.72,30.72,30.68,30.69]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00719b 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());