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:[39.33,39.43,39.33,39.43]},{ x:'01/23/2024',y:[39.43,39.62,39.43,39.61]},{ x:'01/24/2024',y:[39.62,39.62,39.56,39.56]},{ x:'01/25/2024',y:[39.56,39.60,39.56,39.60]},{ x:'01/26/2024',y:[39.58,39.58,39.47,39.47]},{ x:'01/29/2024',y:[39.47,39.47,39.44,39.44]},{ x:'01/30/2024',y:[39.38,39.40,39.37,39.40]},{ x:'01/31/2024',y:[39.61,39.62,39.61,39.62]},{ x:'02/01/2024',y:[39.82,39.84,39.80,39.84]},{ x:'02/02/2024',y:[39.67,39.67,39.63,39.63]},{ x:'02/05/2024',y:[39.76,39.79,39.74,39.76]},{ x:'02/15/2024',y:[39.78,39.92,39.78,39.90]},{ x:'02/16/2024',y:[39.78,39.80,39.78,39.80]},{ x:'02/19/2024',y:[39.81,39.81,39.79,39.79]},{ x:'02/20/2024',y:[39.93,40.00,39.93,39.98]},{ x:'02/21/2024',y:[40.06,40.13,40.06,40.13]},{ x:'02/22/2024',y:[40.11,40.17,40.11,40.15]},{ x:'02/23/2024',y:[40.19,40.20,40.19,40.20]},{ x:'02/26/2024',y:[40.19,40.21,40.19,40.20]},{ x:'02/27/2024',y:[39.73,39.81,39.73,39.81]},{ x:'02/29/2024',y:[40.02,40.07,39.99,39.99]},{ x:'03/01/2024',y:[40.03,40.03,39.89,39.89]},{ x:'03/04/2024',y:[39.86,39.92,39.86,39.92]},{ x:'03/05/2024',y:[39.82,39.82,39.78,39.79]},{ x:'03/06/2024',y:[39.93,39.93,39.87,39.89]},{ x:'03/07/2024',y:[40.00,40.00,39.93,39.93]},{ x:'03/08/2024',y:[40.09,40.14,40.07,40.14]},{ x:'03/11/2024',y:[40.08,40.08,40.02,40.04]},{ x:'03/12/2024',y:[40.22,40.22,40.18,40.18]},{ x:'03/13/2024',y:[40.06,40.06,39.99,39.99]},{ x:'03/14/2024',y:[39.85,39.92,39.85,39.92]},{ x:'03/15/2024',y:[40.00,40.00,39.97,39.97]},{ x:'03/18/2024',y:[39.93,39.93,39.93,39.93]},{ x:'03/19/2024',y:[40.09,40.14,40.09,40.14]},{ x:'03/20/2024',y:[40.25,40.30,40.25,40.28]},{ x:'03/21/2024',y:[40.32,40.32,40.29,40.29]},{ x:'03/22/2024',y:[40.39,40.39,40.28,40.28]},{ x:'03/25/2024',y:[40.27,40.46,40.27,40.32]},{ x:'03/26/2024',y:[40.30,40.33,40.30,40.33]},{ x:'03/27/2024',y:[40.43,40.46,40.43,40.46]},{ x:'03/28/2024',y:[40.32,40.34,40.27,40.28]},{ x:'03/29/2024',y:[40.29,40.35,40.29,40.35]},{ x:'04/01/2024',y:[40.40,40.40,40.35,40.35]},{ x:'04/02/2024',y:[40.50,40.50,40.44,40.45]},{ x:'04/03/2024',y:[40.54,40.54,40.45,40.45]},{ x:'04/08/2024',y:[40.50,40.50,40.45,40.45]},{ x:'04/09/2024',y:[40.45,40.49,40.45,40.47]},{ x:'04/10/2024',y:[40.47,40.52,40.47,40.52]},{ x:'04/11/2024',y:[40.64,40.74,40.63,40.71]},{ x:'04/12/2024',y:[40.74,40.88,40.74,40.88]},{ x:'04/15/2024',y:[40.88,40.88,40.87,40.88]},{ x:'04/16/2024',y:[41.02,41.13,41.02,41.03]},{ x:'04/17/2024',y:[41.18,41.21,41.10,41.10]},{ x:'04/18/2024',y:[41.02,41.02,40.95,40.95]},{ x:'04/19/2024',y:[41.21,41.21,41.12,41.12]},{ x:'04/22/2024',y:[41.33,41.33,41.25,41.28]},{ x:'04/23/2024',y:[41.52,41.52,41.41,41.41]},{ x:'04/24/2024',y:[41.33,41.33,41.30,41.30]},{ x:'04/25/2024',y:[41.32,41.50,41.32,41.44]},{ x:'04/26/2024',y:[41.56,41.59,41.54,41.59]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00794b 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());