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:[24.07,24.17,23.77,23.79]},{ x:'02/01/2023',y:[22.95,23.00,22.89,22.97]},{ x:'02/02/2023',y:[23.20,23.43,23.20,23.41]},{ x:'02/03/2023',y:[23.41,23.47,23.28,23.43]},{ x:'02/06/2023',y:[23.30,23.30,23.15,23.15]},{ x:'02/07/2023',y:[23.11,23.18,23.08,23.12]},{ x:'02/08/2023',y:[23.27,23.63,23.27,23.60]},{ x:'02/09/2023',y:[23.51,23.61,23.49,23.56]},{ x:'02/10/2023',y:[23.56,23.58,23.46,23.54]},{ x:'02/13/2023',y:[23.58,23.58,23.34,23.41]},{ x:'02/14/2023',y:[23.48,23.64,23.48,23.55]},{ x:'02/15/2023',y:[23.40,23.41,23.11,23.12]},{ x:'02/16/2023',y:[23.20,23.33,23.14,23.29]},{ x:'02/17/2023',y:[23.17,23.17,23.05,23.13]},{ x:'02/20/2023',y:[23.10,23.28,23.02,23.21]},{ x:'02/21/2023',y:[23.21,23.35,23.20,23.33]},{ x:'02/22/2023',y:[23.06,23.10,22.98,23.06]},{ x:'02/23/2023',y:[23.10,23.49,23.10,23.38]},{ x:'02/24/2023',y:[23.50,23.56,23.21,23.21]},{ x:'03/01/2023',y:[23.13,23.49,22.98,23.47]},{ x:'03/02/2023',y:[23.47,23.47,23.24,23.39]},{ x:'03/03/2023',y:[23.50,23.57,23.37,23.40]},{ x:'03/06/2023',y:[23.55,23.82,23.52,23.71]},{ x:'03/07/2023',y:[23.69,23.84,23.67,23.80]},{ x:'03/08/2023',y:[23.61,23.72,23.54,23.63]},{ x:'03/09/2023',y:[23.71,23.72,23.60,23.60]},{ x:'03/10/2023',y:[23.40,23.40,23.20,23.21]},{ x:'03/13/2023',y:[23.09,23.23,22.98,23.23]},{ x:'03/14/2023',y:[23.03,23.10,22.95,22.99]},{ x:'03/15/2023',y:[23.15,23.29,23.00,23.00]},{ x:'03/16/2023',y:[22.88,23.08,22.86,22.90]},{ x:'03/17/2023',y:[23.12,23.28,23.12,23.28]},{ x:'03/20/2023',y:[23.38,23.38,23.21,23.21]},{ x:'03/21/2023',y:[23.27,23.38,23.27,23.33]},{ x:'03/22/2023',y:[23.52,23.67,23.52,23.66]},{ x:'03/23/2023',y:[23.60,23.91,23.60,23.87]},{ x:'03/24/2023',y:[23.92,24.00,23.86,23.97]},{ x:'03/27/2023',y:[23.97,23.97,23.83,23.87]},{ x:'03/28/2023',y:[23.85,23.88,23.59,23.61]},{ x:'03/29/2023',y:[23.77,23.77,23.54,23.68]},{ x:'03/30/2023',y:[23.79,23.83,23.74,23.74]},{ x:'03/31/2023',y:[23.78,23.98,23.78,23.86]},{ x:'04/06/2023',y:[23.65,23.65,23.53,23.58]},{ x:'04/07/2023',y:[23.57,23.66,23.57,23.63]},{ x:'04/10/2023',y:[23.64,23.73,23.58,23.61]},{ x:'04/11/2023',y:[23.64,23.84,23.63,23.75]},{ x:'04/12/2023',y:[23.75,23.76,23.68,23.74]},{ x:'04/13/2023',y:[23.78,23.78,23.60,23.61]},{ x:'04/14/2023',y:[23.66,23.73,23.59,23.71]},{ x:'04/17/2023',y:[23.57,23.60,23.49,23.54]},{ x:'04/18/2023',y:[23.57,23.57,23.32,23.34]},{ x:'04/19/2023',y:[23.34,23.36,23.16,23.16]},{ x:'04/20/2023',y:[23.06,23.18,23.03,23.06]},{ x:'04/21/2023',y:[23.09,23.16,22.89,22.89]},{ x:'04/24/2023',y:[22.81,22.97,22.78,22.89]},{ x:'04/25/2023',y:[22.89,22.89,22.47,22.47]},{ x:'04/26/2023',y:[22.41,22.48,22.33,22.46]},{ x:'04/27/2023',y:[22.47,22.63,22.41,22.59]},{ x:'04/28/2023',y:[22.67,22.84,22.67,22.79]},{ x:'05/02/2023',y:[22.79,22.94,22.79,22.88]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00728 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());