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/07/2023',y:[1675.00,1710.00,1665.00,1670.00]},{ x:'02/08/2023',y:[1735.00,1735.00,1670.00,1690.00]},{ x:'02/09/2023',y:[1695.00,1700.00,1680.00,1695.00]},{ x:'02/10/2023',y:[1695.00,1695.00,1620.00,1630.00]},{ x:'02/13/2023',y:[1625.00,1655.00,1590.00,1590.00]},{ x:'02/14/2023',y:[1595.00,1620.00,1570.00,1600.00]},{ x:'02/15/2023',y:[1585.00,1605.00,1560.00,1575.00]},{ x:'02/16/2023',y:[1575.00,1585.00,1555.00,1570.00]},{ x:'02/17/2023',y:[1555.00,1575.00,1550.00,1570.00]},{ x:'02/20/2023',y:[1600.00,1635.00,1575.00,1575.00]},{ x:'02/21/2023',y:[1590.00,1655.00,1575.00,1640.00]},{ x:'02/22/2023',y:[1630.00,1650.00,1610.00,1640.00]},{ x:'02/23/2023',y:[1660.00,1700.00,1645.00,1670.00]},{ x:'02/24/2023',y:[1665.00,1700.00,1555.00,1605.00]},{ x:'03/01/2023',y:[1650.00,1715.00,1645.00,1710.00]},{ x:'03/02/2023',y:[1730.00,1730.00,1625.00,1655.00]},{ x:'03/03/2023',y:[1655.00,1705.00,1655.00,1660.00]},{ x:'03/06/2023',y:[1680.00,1685.00,1665.00,1670.00]},{ x:'03/07/2023',y:[1660.00,1680.00,1645.00,1680.00]},{ x:'03/08/2023',y:[1680.00,1710.00,1660.00,1685.00]},{ x:'03/09/2023',y:[1690.00,1690.00,1640.00,1670.00]},{ x:'03/10/2023',y:[1650.00,1695.00,1630.00,1680.00]},{ x:'03/13/2023',y:[1690.00,1770.00,1680.00,1750.00]},{ x:'03/14/2023',y:[1725.00,1730.00,1650.00,1650.00]},{ x:'03/15/2023',y:[1695.00,1745.00,1690.00,1730.00]},{ x:'03/16/2023',y:[1715.00,1730.00,1640.00,1645.00]},{ x:'03/17/2023',y:[1665.00,1670.00,1605.00,1615.00]},{ x:'03/20/2023',y:[1635.00,1700.00,1625.00,1680.00]},{ x:'03/21/2023',y:[1685.00,1710.00,1635.00,1635.00]},{ x:'03/22/2023',y:[1670.00,1670.00,1635.00,1645.00]},{ x:'03/23/2023',y:[1645.00,1655.00,1625.00,1645.00]},{ x:'03/24/2023',y:[1645.00,1720.00,1635.00,1705.00]},{ x:'03/27/2023',y:[1725.00,1785.00,1725.00,1780.00]},{ x:'03/28/2023',y:[1800.00,1800.00,1725.00,1750.00]},{ x:'03/29/2023',y:[1745.00,1770.00,1665.00,1700.00]},{ x:'03/30/2023',y:[1740.00,1800.00,1730.00,1775.00]},{ x:'03/31/2023',y:[1780.00,1790.00,1705.00,1730.00]},{ x:'04/06/2023',y:[1730.00,1765.00,1660.00,1725.00]},{ x:'04/07/2023',y:[1730.00,1735.00,1705.00,1715.00]},{ x:'04/10/2023',y:[1765.00,1765.00,1715.00,1730.00]},{ x:'04/11/2023',y:[1755.00,1840.00,1740.00,1820.00]},{ x:'04/12/2023',y:[1820.00,1860.00,1790.00,1855.00]},{ x:'04/13/2023',y:[1870.00,1870.00,1800.00,1815.00]},{ x:'04/14/2023',y:[1820.00,1850.00,1805.00,1835.00]},{ x:'04/17/2023',y:[1810.00,1820.00,1765.00,1800.00]},{ x:'04/18/2023',y:[1800.00,1820.00,1765.00,1790.00]},{ x:'04/19/2023',y:[1795.00,1820.00,1790.00,1810.00]},{ x:'04/20/2023',y:[1790.00,1790.00,1730.00,1760.00]},{ x:'04/21/2023',y:[1765.00,1775.00,1730.00,1755.00]},{ x:'04/24/2023',y:[1750.00,1790.00,1745.00,1790.00]},{ x:'04/25/2023',y:[1790.00,1810.00,1730.00,1755.00]},{ x:'04/26/2023',y:[1745.00,1790.00,1715.00,1750.00]},{ x:'04/27/2023',y:[1750.00,1755.00,1680.00,1715.00]},{ x:'04/28/2023',y:[1725.00,1765.00,1720.00,1760.00]},{ x:'05/02/2023',y:[1770.00,1810.00,1725.00,1800.00]},{ x:'05/03/2023',y:[1760.00,1795.00,1760.00,1795.00]},{ x:'05/04/2023',y:[1795.00,1810.00,1775.00,1795.00]},{ x:'05/05/2023',y:[1780.00,1800.00,1760.00,1800.00]},{ x:'05/08/2023',y:[1800.00,1810.00,1790.00,1805.00]},{ x:'05/09/2023',y:[1805.00,1805.00,1780.00,1780.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6409 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());