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/23/2024',y:[36.10,36.10,35.95,35.98]},{ x:'01/24/2024',y:[36.00,36.12,36.00,36.00]},{ x:'01/25/2024',y:[36.08,36.12,35.95,36.09]},{ x:'01/26/2024',y:[36.06,36.08,36.00,36.03]},{ x:'01/29/2024',y:[35.83,35.88,35.80,35.87]},{ x:'01/30/2024',y:[36.00,36.00,35.93,35.97]},{ x:'01/31/2024',y:[35.65,35.67,35.63,35.63]},{ x:'02/01/2024',y:[35.55,35.60,35.55,35.60]},{ x:'02/02/2024',y:[35.63,35.80,35.62,35.80]},{ x:'02/05/2024',y:[35.76,36.00,35.76,36.00]},{ x:'02/15/2024',y:[36.01,36.88,36.01,36.86]},{ x:'02/16/2024',y:[37.00,37.11,37.00,37.10]},{ x:'02/19/2024',y:[36.96,36.96,36.70,36.89]},{ x:'02/20/2024',y:[36.80,36.92,36.74,36.90]},{ x:'02/21/2024',y:[36.48,36.61,36.48,36.61]},{ x:'02/22/2024',y:[36.68,37.08,36.68,37.08]},{ x:'02/23/2024',y:[37.29,37.62,37.29,37.61]},{ x:'02/26/2024',y:[37.50,37.56,37.41,37.54]},{ x:'02/27/2024',y:[37.65,37.65,37.47,37.60]},{ x:'02/29/2024',y:[37.60,37.69,37.44,37.53]},{ x:'03/01/2024',y:[37.71,37.94,37.71,37.93]},{ x:'03/04/2024',y:[38.52,38.88,38.38,38.87]},{ x:'03/05/2024',y:[38.88,38.94,38.71,38.90]},{ x:'03/06/2024',y:[38.62,38.62,38.40,38.56]},{ x:'03/07/2024',y:[38.62,38.92,38.62,38.87]},{ x:'03/08/2024',y:[38.87,39.21,38.87,39.17]},{ x:'03/11/2024',y:[38.72,38.72,38.44,38.45]},{ x:'03/12/2024',y:[38.40,38.40,38.23,38.29]},{ x:'03/13/2024',y:[38.33,38.49,38.31,38.47]},{ x:'03/14/2024',y:[38.26,38.26,38.03,38.08]},{ x:'03/15/2024',y:[38.08,38.11,37.74,37.74]},{ x:'03/18/2024',y:[37.74,37.90,37.62,37.90]},{ x:'03/19/2024',y:[37.91,37.91,37.80,37.85]},{ x:'03/20/2024',y:[37.91,38.05,37.91,38.04]},{ x:'03/21/2024',y:[38.65,38.98,38.60,38.98]},{ x:'03/22/2024',y:[39.10,39.31,39.10,39.31]},{ x:'03/25/2024',y:[39.22,39.22,38.96,39.01]},{ x:'03/26/2024',y:[38.92,39.10,38.92,39.09]},{ x:'03/27/2024',y:[38.98,39.05,38.98,39.00]},{ x:'03/28/2024',y:[39.07,39.36,39.07,39.35]},{ x:'03/29/2024',y:[39.35,39.35,39.27,39.32]},{ x:'04/01/2024',y:[39.40,39.57,39.40,39.49]},{ x:'04/02/2024',y:[39.11,39.63,39.11,39.55]},{ x:'04/03/2024',y:[39.80,39.80,39.31,39.32]},{ x:'04/08/2024',y:[39.32,39.39,39.32,39.34]},{ x:'04/09/2024',y:[39.34,39.40,39.34,39.39]},{ x:'04/10/2024',y:[39.58,39.74,39.58,39.73]},{ x:'04/11/2024',y:[39.08,39.20,39.02,39.20]},{ x:'04/12/2024',y:[39.61,39.91,39.61,39.85]},{ x:'04/15/2024',y:[39.13,39.51,39.13,39.17]},{ x:'04/16/2024',y:[38.57,38.70,38.54,38.60]},{ x:'04/17/2024',y:[38.51,38.60,38.51,38.54]},{ x:'04/18/2024',y:[38.30,38.30,38.03,38.05]},{ x:'04/19/2024',y:[37.73,37.73,36.96,37.16]},{ x:'04/22/2024',y:[37.16,37.16,37.05,37.06]},{ x:'04/23/2024',y:[37.24,37.24,37.10,37.13]},{ x:'04/24/2024',y:[37.66,37.98,37.66,37.98]},{ x:'04/25/2024',y:[38.00,38.00,37.80,37.81]},{ x:'04/26/2024',y:[38.02,38.10,37.99,38.09]},{ x:'04/29/2024',y:[38.30,38.50,38.30,38.47]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00861 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());