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]},{ x:'06/21/2023',y:[50.50,51.00,49.00,49.00]},{ x:'06/26/2023',y:[49.00,53.90,49.00,51.50]},{ x:'06/27/2023',y:[50.20,51.60,50.00,51.60]},{ x:'06/28/2023',y:[51.70,52.00,51.60,51.70]},{ x:'06/29/2023',y:[51.80,52.60,46.55,46.55]},{ x:'06/30/2023',y:[46.30,48.00,42.00,45.00]},{ x:'07/03/2023',y:[44.90,44.90,43.20,44.55]},{ x:'07/04/2023',y:[44.55,45.95,44.55,45.95]},{ x:'07/05/2023',y:[45.95,46.35,45.30,45.30]},{ x:'07/06/2023',y:[46.30,46.70,44.95,45.30]},{ x:'07/07/2023',y:[43.65,44.45,43.65,44.30]},{ x:'07/10/2023',y:[45.00,45.50,45.00,45.00]},{ x:'07/11/2023',y:[45.00,45.45,44.50,45.00]},{ x:'07/12/2023',y:[45.45,45.45,44.65,45.00]},{ x:'07/13/2023',y:[45.45,45.45,45.00,45.30]},{ x:'07/14/2023',y:[45.30,49.00,45.30,49.00]},{ x:'07/17/2023',y:[49.00,52.80,49.00,52.00]},{ x:'07/18/2023',y:[50.20,50.30,48.25,49.95]},{ x:'07/19/2023',y:[48.50,48.80,48.50,48.80]} ] }], 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());