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/22/2024',y:[16.24,16.37,16.24,16.32]},{ x:'01/23/2024',y:[16.33,16.42,16.32,16.34]},{ x:'01/24/2024',y:[16.35,16.42,16.33,16.35]},{ x:'01/25/2024',y:[16.42,16.55,16.42,16.52]},{ x:'01/26/2024',y:[16.45,16.48,16.36,16.39]},{ x:'01/29/2024',y:[16.39,16.46,16.36,16.43]},{ x:'01/30/2024',y:[16.44,16.59,16.43,16.55]},{ x:'01/31/2024',y:[16.45,16.52,16.41,16.48]},{ x:'02/01/2024',y:[16.45,16.45,16.25,16.32]},{ x:'02/02/2024',y:[16.41,16.43,16.37,16.42]},{ x:'02/05/2024',y:[16.37,16.42,16.30,16.41]},{ x:'02/15/2024',y:[16.93,17.08,16.85,17.05]},{ x:'02/16/2024',y:[17.07,17.12,16.95,16.97]},{ x:'02/19/2024',y:[16.97,16.99,16.85,16.98]},{ x:'02/20/2024',y:[16.98,17.18,16.97,17.16]},{ x:'02/21/2024',y:[17.15,17.15,17.02,17.03]},{ x:'02/22/2024',y:[17.15,17.32,17.15,17.32]},{ x:'02/23/2024',y:[17.50,17.70,17.42,17.65]},{ x:'02/26/2024',y:[17.69,17.80,17.50,17.77]},{ x:'02/27/2024',y:[17.54,17.68,17.27,17.44]},{ x:'02/29/2024',y:[17.38,17.54,17.32,17.52]},{ x:'03/01/2024',y:[17.59,17.65,17.44,17.47]},{ x:'03/04/2024',y:[17.66,17.88,17.66,17.83]},{ x:'03/05/2024',y:[17.91,17.98,17.80,17.95]},{ x:'03/06/2024',y:[17.81,18.20,17.80,18.14]},{ x:'03/07/2024',y:[18.35,18.67,18.35,18.58]},{ x:'03/08/2024',y:[18.90,19.18,18.38,18.57]},{ x:'03/11/2024',y:[18.46,18.60,18.31,18.38]},{ x:'03/12/2024',y:[18.34,18.51,18.29,18.48]},{ x:'03/13/2024',y:[18.68,18.73,18.32,18.40]},{ x:'03/14/2024',y:[18.40,18.40,18.05,18.11]},{ x:'03/15/2024',y:[17.98,18.10,17.90,18.00]},{ x:'03/18/2024',y:[18.05,18.29,18.05,18.29]},{ x:'03/19/2024',y:[18.25,18.25,18.05,18.21]},{ x:'03/20/2024',y:[18.21,18.40,17.96,18.00]},{ x:'03/21/2024',y:[18.27,18.28,18.13,18.21]},{ x:'03/22/2024',y:[18.22,18.29,18.01,18.13]},{ x:'03/25/2024',y:[18.13,18.20,18.07,18.07]},{ x:'03/26/2024',y:[18.14,18.32,17.85,18.05]},{ x:'03/27/2024',y:[18.02,18.09,17.92,18.04]},{ x:'03/28/2024',y:[18.05,18.09,17.84,18.03]},{ x:'03/29/2024',y:[18.02,18.27,17.98,18.23]},{ x:'04/01/2024',y:[18.26,18.29,18.04,18.04]},{ x:'04/02/2024',y:[18.09,18.27,18.09,18.17]},{ x:'04/03/2024',y:[18.09,18.18,17.98,18.12]},{ x:'04/08/2024',y:[18.15,18.18,18.01,18.04]},{ x:'04/09/2024',y:[18.07,18.23,18.07,18.20]},{ x:'04/10/2024',y:[18.20,18.47,18.20,18.44]},{ x:'04/11/2024',y:[18.40,18.48,18.30,18.39]},{ x:'04/12/2024',y:[18.40,18.45,18.34,18.38]},{ x:'04/15/2024',y:[18.24,18.24,17.93,18.00]},{ x:'04/16/2024',y:[17.80,17.80,17.36,17.46]},{ x:'04/17/2024',y:[17.50,17.65,17.49,17.60]},{ x:'04/18/2024',y:[17.54,17.68,17.40,17.66]},{ x:'04/19/2024',y:[17.31,17.31,16.59,16.81]},{ x:'04/22/2024',y:[16.73,16.78,16.42,16.42]},{ x:'04/23/2024',y:[16.64,16.66,16.48,16.53]},{ x:'04/24/2024',y:[16.80,17.16,16.80,17.12]},{ x:'04/25/2024',y:[16.90,16.90,16.70,16.72]},{ x:'04/26/2024',y:[16.95,17.13,16.93,17.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00891 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());