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.37,36.37,36.37,36.37]},{ x:'01/24/2024',y:[36.22,36.22,36.22,36.22]},{ x:'01/25/2024',y:[36.03,36.03,36.03,36.03]},{ x:'01/26/2024',y:[36.43,36.43,36.34,36.34]},{ x:'01/29/2024',y:[36.32,36.32,36.28,36.28]},{ x:'01/30/2024',y:[36.36,36.36,36.35,36.35]},{ x:'01/31/2024',y:[36.67,36.67,36.67,36.67]},{ x:'02/01/2024',y:[36.75,36.75,36.75,36.75]},{ x:'02/02/2024',y:[36.80,36.81,36.70,36.70]},{ x:'02/05/2024',y:[36.65,36.65,36.48,36.53]},{ x:'02/15/2024',y:[35.90,35.90,35.70,35.70]},{ x:'02/16/2024',y:[35.58,35.58,35.57,35.58]},{ x:'02/19/2024',y:[35.61,35.64,35.61,35.64]},{ x:'02/20/2024',y:[35.62,35.62,35.57,35.62]},{ x:'02/21/2024',y:[35.85,35.89,35.82,35.82]},{ x:'02/22/2024',y:[35.82,35.85,35.82,35.85]},{ x:'02/23/2024',y:[36.04,36.05,35.95,36.00]},{ x:'02/26/2024',y:[36.24,36.30,36.21,36.22]},{ x:'02/27/2024',y:[36.14,36.15,36.14,36.15]},{ x:'02/29/2024',y:[36.05,36.05,36.02,36.05]},{ x:'03/01/2024',y:[36.00,36.00,35.95,35.98]},{ x:'03/04/2024',y:[36.10,36.14,36.10,36.13]},{ x:'03/05/2024',y:[36.13,36.13,36.06,36.09]},{ x:'03/06/2024',y:[36.40,36.41,36.40,36.40]},{ x:'03/07/2024',y:[36.61,36.65,36.61,36.65]},{ x:'03/08/2024',y:[36.65,36.65,36.59,36.65]},{ x:'03/11/2024',y:[36.63,36.63,36.61,36.61]},{ x:'03/12/2024',y:[36.49,36.58,36.44,36.56]},{ x:'03/13/2024',y:[36.51,36.51,36.50,36.50]},{ x:'03/14/2024',y:[36.45,36.50,36.45,36.50]},{ x:'03/15/2024',y:[36.24,36.30,36.24,36.30]},{ x:'03/18/2024',y:[35.84,35.84,35.84,35.84]},{ x:'03/19/2024',y:[35.91,35.92,35.90,35.90]},{ x:'03/20/2024',y:[36.04,36.04,36.04,36.04]},{ x:'03/21/2024',y:[36.04,36.07,36.04,36.04]},{ x:'03/22/2024',y:[36.23,36.41,36.23,36.41]},{ x:'03/25/2024',y:[36.56,36.56,36.46,36.46]},{ x:'03/26/2024',y:[36.35,36.44,36.35,36.40]},{ x:'03/27/2024',y:[36.36,36.36,36.36,36.36]},{ x:'03/28/2024',y:[36.62,36.64,36.62,36.62]},{ x:'03/29/2024',y:[36.62,36.62,36.62,36.62]},{ x:'04/01/2024',y:[36.56,36.65,36.56,36.59]},{ x:'04/02/2024',y:[36.28,36.31,36.28,36.28]},{ x:'04/03/2024',y:[36.13,36.20,36.13,36.14]},{ x:'04/08/2024',y:[35.93,36.05,35.93,35.93]},{ x:'04/09/2024',y:[35.96,36.12,35.94,35.98]},{ x:'04/10/2024',y:[36.16,36.20,36.16,36.20]},{ x:'04/11/2024',y:[35.61,35.80,35.61,35.78]},{ x:'04/12/2024',y:[35.65,35.65,35.56,35.56]},{ x:'04/15/2024',y:[35.68,35.68,35.68,35.68]},{ x:'04/16/2024',y:[35.38,35.41,35.38,35.41]},{ x:'04/17/2024',y:[35.14,35.14,35.11,35.11]},{ x:'04/18/2024',y:[35.30,35.30,35.30,35.30]},{ x:'04/19/2024',y:[35.68,35.68,35.55,35.55]},{ x:'04/22/2024',y:[35.38,35.38,35.38,35.38]},{ x:'04/23/2024',y:[35.61,35.61,35.61,35.61]},{ x:'04/24/2024',y:[35.50,35.50,35.50,35.50]},{ x:'04/25/2024',y:[35.42,35.45,35.42,35.45]},{ x:'04/26/2024',y:[35.24,35.28,35.24,35.28]},{ x:'04/29/2024',y:[35.61,35.61,35.51,35.51]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00778b 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());