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:'05/31/2023',y:[28.60,28.60,28.60,28.60]},{ x:'06/01/2023',y:[31.45,31.45,31.45,31.45]},{ x:'06/02/2023',y:[34.55,34.55,34.55,34.55]},{ x:'06/05/2023',y:[38.00,38.00,38.00,38.00]},{ x:'06/06/2023',y:[41.80,41.80,40.65,41.80]},{ x:'06/07/2023',y:[45.95,45.95,45.95,45.95]},{ x:'06/08/2023',y:[50.50,50.50,50.50,50.50]},{ x:'06/09/2023',y:[55.50,55.50,55.50,55.50]},{ x:'06/12/2023',y:[61.00,61.00,61.00,61.00]},{ x:'06/13/2023',y:[67.10,67.10,54.90,56.10]},{ x:'06/14/2023',y:[59.00,59.50,56.50,56.90]},{ x:'06/15/2023',y:[56.50,56.50,51.30,51.30]},{ x:'06/16/2023',y:[49.55,49.55,48.00,49.00]},{ x:'06/19/2023',y:[49.00,50.50,49.00,50.50]},{ x:'06/20/2023',y:[51.50,51.80,51.00,51.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2432 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());