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.80,16.85,16.80,16.85]},{ x:'01/23/2024',y:[16.95,17.02,16.92,17.01]},{ x:'01/24/2024',y:[16.99,16.99,16.95,16.95]},{ x:'01/25/2024',y:[16.97,17.00,16.94,16.98]},{ x:'01/26/2024',y:[17.00,17.13,17.00,17.11]},{ x:'01/29/2024',y:[17.13,17.13,17.10,17.10]},{ x:'01/30/2024',y:[17.11,17.12,17.09,17.10]},{ x:'01/31/2024',y:[17.13,17.24,17.13,17.24]},{ x:'02/01/2024',y:[17.13,17.17,17.10,17.17]},{ x:'02/02/2024',y:[17.18,17.19,17.10,17.11]},{ x:'02/05/2024',y:[17.20,17.20,17.15,17.16]},{ x:'02/15/2024',y:[17.07,17.15,17.02,17.14]},{ x:'02/16/2024',y:[17.15,17.21,17.13,17.17]},{ x:'02/19/2024',y:[17.17,17.18,17.15,17.16]},{ x:'02/20/2024',y:[17.16,17.24,17.16,17.24]},{ x:'02/21/2024',y:[17.24,17.26,17.22,17.26]},{ x:'02/22/2024',y:[17.26,17.28,17.24,17.28]},{ x:'02/23/2024',y:[17.28,17.38,17.28,17.37]},{ x:'02/26/2024',y:[17.43,17.51,17.43,17.51]},{ x:'02/27/2024',y:[17.36,17.36,17.21,17.36]},{ x:'02/29/2024',y:[17.28,17.30,17.25,17.25]},{ x:'03/01/2024',y:[17.32,17.35,17.28,17.29]},{ x:'03/04/2024',y:[17.26,17.30,17.26,17.27]},{ x:'03/05/2024',y:[17.19,17.20,17.17,17.19]},{ x:'03/06/2024',y:[17.19,17.28,17.19,17.27]},{ x:'03/07/2024',y:[17.29,17.32,17.26,17.30]},{ x:'03/08/2024',y:[17.32,17.32,17.29,17.29]},{ x:'03/11/2024',y:[17.29,17.37,17.29,17.35]},{ x:'03/12/2024',y:[17.33,17.36,17.32,17.32]},{ x:'03/13/2024',y:[17.34,17.36,17.34,17.34]},{ x:'03/14/2024',y:[17.36,17.37,17.33,17.33]},{ x:'03/15/2024',y:[17.30,17.35,17.30,17.33]},{ x:'03/18/2024',y:[17.29,17.36,17.29,17.33]},{ x:'03/19/2024',y:[17.37,17.42,17.37,17.40]},{ x:'03/20/2024',y:[17.53,17.53,17.50,17.51]},{ x:'03/21/2024',y:[17.51,17.51,17.50,17.50]},{ x:'03/22/2024',y:[17.56,17.68,17.56,17.65]},{ x:'03/25/2024',y:[17.68,17.68,17.63,17.63]},{ x:'03/26/2024',y:[17.55,17.59,17.50,17.57]},{ x:'03/27/2024',y:[17.57,17.64,17.57,17.64]},{ x:'03/28/2024',y:[17.66,17.71,17.65,17.65]},{ x:'03/29/2024',y:[17.66,17.66,17.54,17.54]},{ x:'04/01/2024',y:[17.57,17.57,17.53,17.57]},{ x:'04/02/2024',y:[17.62,17.68,17.62,17.68]},{ x:'04/03/2024',y:[17.54,17.56,17.51,17.51]},{ x:'04/08/2024',y:[17.55,17.56,17.51,17.55]},{ x:'04/09/2024',y:[17.56,17.65,17.56,17.58]},{ x:'04/10/2024',y:[17.56,17.56,17.47,17.53]},{ x:'04/11/2024',y:[17.40,17.40,17.35,17.39]},{ x:'04/12/2024',y:[17.32,17.32,17.26,17.28]},{ x:'04/15/2024',y:[17.28,17.29,17.25,17.27]},{ x:'04/16/2024',y:[17.14,17.15,17.07,17.13]},{ x:'04/17/2024',y:[17.10,17.12,17.09,17.09]},{ x:'04/18/2024',y:[17.14,17.17,17.10,17.11]},{ x:'04/19/2024',y:[17.11,17.16,17.11,17.15]},{ x:'04/22/2024',y:[17.18,17.28,17.18,17.25]},{ x:'04/23/2024',y:[17.33,17.37,17.33,17.37]},{ x:'04/24/2024',y:[17.51,17.52,17.51,17.51]},{ x:'04/25/2024',y:[17.48,17.52,17.48,17.51]},{ x:'04/26/2024',y:[17.42,17.45,17.41,17.45]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00771 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());