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:[16.10,16.36,15.94,16.31]},{ x:'01/24/2024',y:[16.42,16.44,16.05,16.10]},{ x:'01/25/2024',y:[16.64,16.99,16.60,16.99]},{ x:'01/26/2024',y:[17.07,17.07,16.87,16.87]},{ x:'01/29/2024',y:[16.97,16.97,16.60,16.60]},{ x:'01/30/2024',y:[16.58,16.58,16.36,16.36]},{ x:'01/31/2024',y:[16.06,16.13,15.83,16.02]},{ x:'02/01/2024',y:[15.89,16.08,15.67,15.93]},{ x:'02/02/2024',y:[15.77,15.77,15.43,15.45]},{ x:'02/05/2024',y:[15.24,15.24,14.60,15.18]},{ x:'02/15/2024',y:[15.50,17.44,15.50,17.38]},{ x:'02/16/2024',y:[17.68,17.68,17.50,17.61]},{ x:'02/19/2024',y:[17.63,17.66,17.09,17.09]},{ x:'02/20/2024',y:[17.12,17.26,17.12,17.26]},{ x:'02/21/2024',y:[17.18,17.77,17.18,17.77]},{ x:'02/22/2024',y:[17.49,17.49,17.43,17.48]},{ x:'02/23/2024',y:[17.95,17.95,17.45,17.46]},{ x:'02/26/2024',y:[17.61,17.65,17.46,17.62]},{ x:'02/27/2024',y:[17.60,17.80,17.53,17.72]},{ x:'02/29/2024',y:[17.59,18.02,17.59,17.83]},{ x:'03/01/2024',y:[18.10,18.10,18.09,18.09]},{ x:'03/04/2024',y:[18.09,18.11,18.07,18.07]},{ x:'03/05/2024',y:[18.10,18.17,18.04,18.17]},{ x:'03/06/2024',y:[18.09,18.19,17.93,18.13]},{ x:'03/07/2024',y:[18.02,18.10,17.92,17.94]},{ x:'03/08/2024',y:[17.84,17.87,17.81,17.87]},{ x:'03/11/2024',y:[17.87,18.16,17.87,18.16]},{ x:'03/12/2024',y:[18.33,18.39,18.21,18.24]},{ x:'03/13/2024',y:[18.23,18.26,18.16,18.26]},{ x:'03/14/2024',y:[18.17,18.26,18.17,18.20]},{ x:'03/15/2024',y:[18.16,18.16,18.08,18.16]},{ x:'03/18/2024',y:[18.18,18.52,18.18,18.52]},{ x:'03/19/2024',y:[18.59,18.63,18.59,18.61]},{ x:'03/20/2024',y:[18.56,18.60,18.56,18.60]},{ x:'03/21/2024',y:[18.68,18.68,18.55,18.55]},{ x:'03/22/2024',y:[18.56,18.56,18.14,18.19]},{ x:'03/25/2024',y:[18.08,18.26,18.08,18.26]},{ x:'03/26/2024',y:[18.00,18.01,17.80,17.84]},{ x:'03/27/2024',y:[17.90,17.90,17.72,17.72]},{ x:'03/28/2024',y:[17.60,17.93,17.46,17.91]},{ x:'03/29/2024',y:[17.79,17.80,17.76,17.76]},{ x:'04/01/2024',y:[18.05,18.24,18.05,18.19]},{ x:'04/02/2024',y:[18.30,18.37,18.14,18.25]},{ x:'04/03/2024',y:[18.21,18.23,18.21,18.21]},{ x:'04/08/2024',y:[18.27,18.29,18.15,18.20]},{ x:'04/09/2024',y:[18.08,18.10,18.08,18.10]},{ x:'04/10/2024',y:[17.94,17.94,17.89,17.89]},{ x:'04/11/2024',y:[17.88,18.17,17.88,18.17]},{ x:'04/12/2024',y:[18.04,18.11,18.04,18.11]},{ x:'04/15/2024',y:[18.24,18.32,17.86,18.27]},{ x:'04/16/2024',y:[18.27,18.27,18.02,18.15]},{ x:'04/17/2024',y:[18.01,18.17,18.01,18.04]},{ x:'04/18/2024',y:[18.28,18.48,18.28,18.44]},{ x:'04/19/2024',y:[18.43,18.43,18.20,18.27]},{ x:'04/22/2024',y:[18.20,18.27,18.12,18.20]},{ x:'04/23/2024',y:[17.97,18.01,17.97,17.97]},{ x:'04/24/2024',y:[18.06,18.06,17.95,17.97]},{ x:'04/25/2024',y:[17.99,18.19,17.99,18.11]},{ x:'04/26/2024',y:[18.15,18.40,18.15,18.40]},{ x:'04/29/2024',y:[18.45,18.78,18.45,18.73]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00783 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());