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/05/2023',y:[31.23,31.23,31.23,31.23]},{ x:'01/06/2023',y:[31.45,31.45,31.45,31.45]},{ x:'01/09/2023',y:[31.78,31.78,31.78,31.78]},{ x:'01/10/2023',y:[32.03,32.03,32.03,32.03]},{ x:'01/11/2023',y:[32.00,32.00,32.00,32.00]},{ x:'01/12/2023',y:[32.28,32.50,32.28,32.50]},{ x:'01/13/2023',y:[32.81,32.81,32.81,32.81]},{ x:'01/16/2023',y:[32.58,32.58,32.58,32.58]},{ x:'01/17/2023',y:[32.54,32.54,32.54,32.54]},{ x:'01/30/2023',y:[32.48,32.48,32.45,32.45]},{ x:'01/31/2023',y:[32.18,32.18,32.18,32.18]},{ x:'02/01/2023',y:[32.52,32.52,32.52,32.52]},{ x:'02/02/2023',y:[32.40,32.40,32.37,32.37]},{ x:'02/03/2023',y:[32.74,32.74,32.74,32.74]},{ x:'02/06/2023',y:[32.35,32.35,32.35,32.35]},{ x:'02/07/2023',y:[32.30,32.33,32.30,32.33]},{ x:'02/08/2023',y:[32.02,32.02,32.02,32.02]},{ x:'02/09/2023',y:[32.16,32.16,32.16,32.16]},{ x:'02/10/2023',y:[31.90,31.90,31.90,31.90]},{ x:'02/13/2023',y:[31.62,31.62,31.60,31.60]},{ x:'02/14/2023',y:[31.72,31.72,31.72,31.72]},{ x:'02/15/2023',y:[31.86,31.86,31.86,31.86]},{ x:'02/16/2023',y:[31.72,31.72,31.65,31.65]},{ x:'02/17/2023',y:[31.21,31.23,31.21,31.23]},{ x:'02/20/2023',y:[30.97,30.97,30.97,30.97]},{ x:'02/21/2023',y:[31.14,31.14,31.02,31.02]},{ x:'02/22/2023',y:[30.68,30.68,30.64,30.64]},{ x:'02/23/2023',y:[30.65,30.65,30.65,30.65]},{ x:'02/24/2023',y:[30.95,31.04,30.95,31.04]},{ x:'03/01/2023',y:[30.68,30.74,30.68,30.74]},{ x:'03/02/2023',y:[30.49,30.49,30.49,30.49]},{ x:'03/03/2023',y:[30.45,30.45,30.45,30.45]},{ x:'03/06/2023',y:[31.08,31.12,31.08,31.12]},{ x:'03/07/2023',y:[31.08,31.08,31.08,31.08]},{ x:'03/08/2023',y:[31.20,31.20,31.20,31.20]},{ x:'03/09/2023',y:[31.10,31.10,31.02,31.02]},{ x:'03/10/2023',y:[31.43,31.43,31.43,31.43]},{ x:'03/13/2023',y:[31.45,31.45,31.45,31.45]},{ x:'03/14/2023',y:[31.26,31.26,31.23,31.23]},{ x:'03/15/2023',y:[31.18,31.18,31.14,31.14]},{ x:'03/16/2023',y:[31.50,31.50,31.50,31.50]},{ x:'03/17/2023',y:[31.54,31.60,31.54,31.60]},{ x:'03/20/2023',y:[31.80,31.80,31.80,31.80]},{ x:'03/21/2023',y:[31.80,31.80,31.80,31.80]},{ x:'03/22/2023',y:[31.87,31.87,31.87,31.87]},{ x:'03/23/2023',y:[31.95,31.95,31.95,31.95]},{ x:'03/24/2023',y:[31.82,31.82,31.82,31.82]},{ x:'03/27/2023',y:[31.98,31.98,31.98,31.98]},{ x:'03/28/2023',y:[31.62,31.62,31.62,31.62]},{ x:'03/29/2023',y:[31.57,31.57,31.57,31.57]},{ x:'03/30/2023',y:[31.78,31.78,31.78,31.78]},{ x:'03/31/2023',y:[31.85,31.85,31.85,31.85]},{ x:'04/06/2023',y:[32.74,32.74,32.73,32.73]},{ x:'04/07/2023',y:[32.65,32.65,32.65,32.65]},{ x:'04/10/2023',y:[32.50,32.50,32.50,32.50]},{ x:'04/11/2023',y:[32.37,32.37,32.37,32.37]},{ x:'04/12/2023',y:[32.44,32.44,32.42,32.42]},{ x:'04/13/2023',y:[32.48,32.48,32.43,32.43]},{ x:'04/14/2023',y:[32.21,32.21,32.20,32.20]},{ x:'04/17/2023',y:[32.06,32.06,32.06,32.06]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00867b 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());