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:'02/18/2022',y:[22.90,22.90,22.83,22.83]},{ x:'02/21/2022',y:[22.77,22.88,22.77,22.88]},{ x:'02/22/2022',y:[22.87,22.87,22.74,22.80]},{ x:'02/23/2022',y:[22.89,23.01,22.89,22.99]},{ x:'02/24/2022',y:[22.99,22.99,22.72,22.87]},{ x:'02/25/2022',y:[22.91,22.91,22.71,22.75]},{ x:'03/01/2022',y:[23.03,23.03,22.90,22.99]},{ x:'03/02/2022',y:[22.89,22.97,22.89,22.97]},{ x:'03/03/2022',y:[22.97,23.03,22.93,22.93]},{ x:'03/04/2022',y:[23.00,23.00,22.94,22.94]},{ x:'03/07/2022',y:[22.89,22.89,22.50,22.71]},{ x:'03/08/2022',y:[22.51,22.51,22.23,22.25]},{ x:'03/09/2022',y:[22.25,22.66,22.25,22.66]},{ x:'03/10/2022',y:[22.57,22.69,22.57,22.69]},{ x:'03/11/2022',y:[22.69,22.69,22.61,22.61]},{ x:'03/14/2022',y:[22.82,22.82,22.72,22.78]},{ x:'03/15/2022',y:[22.57,22.64,22.57,22.64]},{ x:'03/16/2022',y:[22.84,22.84,22.64,22.73]},{ x:'03/17/2022',y:[22.78,22.96,22.76,22.76]},{ x:'03/18/2022',y:[22.87,22.87,22.82,22.82]},{ x:'03/21/2022',y:[22.95,23.00,22.90,23.00]},{ x:'03/22/2022',y:[23.09,23.09,22.88,22.95]},{ x:'03/23/2022',y:[22.95,23.01,22.93,22.93]},{ x:'03/24/2022',y:[22.98,23.02,22.98,22.98]},{ x:'03/25/2022',y:[23.00,23.03,23.00,23.03]},{ x:'03/28/2022',y:[23.02,23.02,22.91,23.01]},{ x:'03/29/2022',y:[23.00,23.00,22.95,22.96]},{ x:'03/30/2022',y:[23.02,23.05,23.00,23.00]},{ x:'03/31/2022',y:[23.05,23.08,23.05,23.05]},{ x:'04/01/2022',y:[23.07,23.07,22.90,22.92]},{ x:'04/06/2022',y:[22.80,22.93,22.80,22.93]},{ x:'04/07/2022',y:[22.88,22.89,22.75,22.75]},{ x:'04/08/2022',y:[22.75,22.85,22.75,22.84]},{ x:'04/11/2022',y:[22.86,22.93,22.86,22.90]},{ x:'04/12/2022',y:[22.88,22.88,22.66,22.66]},{ x:'04/13/2022',y:[22.66,22.84,22.66,22.84]},{ x:'04/14/2022',y:[22.86,22.91,22.86,22.91]},{ x:'04/15/2022',y:[22.80,22.91,22.40,22.85]},{ x:'04/18/2022',y:[22.82,22.84,22.78,22.84]},{ x:'04/19/2022',y:[22.70,22.93,22.70,22.92]},{ x:'04/20/2022',y:[22.92,23.17,22.92,23.10]},{ x:'04/21/2022',y:[22.71,23.23,22.61,23.13]},{ x:'04/22/2022',y:[23.00,23.14,23.00,23.14]},{ x:'04/25/2022',y:[22.89,23.03,22.89,23.03]},{ x:'04/26/2022',y:[22.87,23.08,22.87,23.06]},{ x:'04/27/2022',y:[22.99,23.00,22.30,22.90]},{ x:'04/28/2022',y:[22.93,23.01,22.88,22.98]},{ x:'04/29/2022',y:[23.00,23.10,22.97,23.00]},{ x:'05/03/2022',y:[22.72,22.96,22.72,22.83]},{ x:'05/04/2022',y:[22.80,22.80,22.58,22.58]},{ x:'05/05/2022',y:[22.59,22.79,22.59,22.74]},{ x:'05/06/2022',y:[22.54,22.78,22.54,22.60]},{ x:'05/09/2022',y:[22.60,22.60,22.21,22.22]},{ x:'05/10/2022',y:[22.20,22.33,22.17,22.33]},{ x:'05/11/2022',y:[22.10,22.10,22.08,22.08]},{ x:'05/12/2022',y:[22.05,22.08,21.80,21.80]},{ x:'05/13/2022',y:[21.60,21.92,21.60,21.92]},{ x:'05/16/2022',y:[22.00,22.00,21.89,21.94]},{ x:'05/17/2022',y:[22.00,22.07,22.00,22.00]},{ x:'05/18/2022',y:[22.00,22.21,22.00,22.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00742 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());