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:'06/08/2023',y:[51.30,53.00,51.30,52.10]},{ x:'06/09/2023',y:[52.70,53.70,52.50,52.70]},{ x:'06/12/2023',y:[52.70,52.70,52.20,52.20]},{ x:'06/13/2023',y:[52.20,52.50,51.50,52.30]},{ x:'06/14/2023',y:[52.40,52.50,51.50,51.70]},{ x:'06/15/2023',y:[51.60,51.70,51.00,51.10]},{ x:'06/16/2023',y:[51.10,52.20,51.10,51.10]},{ x:'06/19/2023',y:[51.20,51.30,51.00,51.20]},{ x:'06/20/2023',y:[52.30,52.30,51.30,51.30]},{ x:'06/21/2023',y:[51.30,51.30,51.30,51.30]},{ x:'06/26/2023',y:[51.40,52.00,51.20,51.20]},{ x:'06/27/2023',y:[51.00,51.10,50.10,50.10]},{ x:'06/28/2023',y:[50.40,50.50,50.20,50.20]},{ x:'06/29/2023',y:[50.20,50.30,50.10,50.20]},{ x:'06/30/2023',y:[50.30,51.20,50.30,51.00]},{ x:'07/03/2023',y:[51.20,51.20,50.60,51.00]},{ x:'07/04/2023',y:[50.90,50.90,50.50,50.70]},{ x:'07/05/2023',y:[50.80,51.00,50.70,50.70]},{ x:'07/06/2023',y:[50.70,50.70,50.00,50.20]},{ x:'07/07/2023',y:[50.10,50.10,49.30,49.75]},{ x:'07/10/2023',y:[49.85,50.30,49.85,49.90]},{ x:'07/11/2023',y:[49.95,52.40,49.95,50.30]},{ x:'07/12/2023',y:[50.30,51.00,49.30,49.35]},{ x:'07/13/2023',y:[49.55,50.90,49.55,49.70]},{ x:'07/14/2023',y:[50.50,50.50,49.55,49.65]},{ x:'07/17/2023',y:[49.65,50.50,49.65,50.10]},{ x:'07/18/2023',y:[50.10,50.10,49.05,49.05]},{ x:'07/19/2023',y:[49.25,51.50,49.20,50.20]},{ x:'07/20/2023',y:[50.20,50.20,49.70,49.70]},{ x:'07/21/2023',y:[49.30,49.30,48.40,49.30]},{ x:'07/24/2023',y:[49.30,49.30,48.20,48.35]},{ x:'07/25/2023',y:[48.40,48.65,48.00,48.05]},{ x:'07/26/2023',y:[48.00,48.05,47.00,47.00]},{ x:'07/27/2023',y:[47.00,48.60,47.00,47.70]},{ x:'07/28/2023',y:[48.40,48.40,47.30,47.95]},{ x:'07/31/2023',y:[47.70,48.30,47.40,48.00]},{ x:'08/01/2023',y:[47.70,48.40,47.30,47.80]},{ x:'08/02/2023',y:[47.80,48.00,46.60,47.15]},{ x:'08/04/2023',y:[47.20,48.50,47.15,48.40]},{ x:'08/07/2023',y:[47.95,49.10,47.90,48.65]},{ x:'08/08/2023',y:[48.15,48.50,48.00,48.20]},{ x:'08/09/2023',y:[48.40,48.50,48.00,48.35]},{ x:'08/10/2023',y:[47.80,47.80,47.00,47.00]},{ x:'08/11/2023',y:[46.80,47.00,46.20,46.50]},{ x:'08/14/2023',y:[46.20,46.20,45.20,45.20]},{ x:'08/15/2023',y:[44.80,45.50,44.35,44.85]},{ x:'08/16/2023',y:[44.85,44.85,44.10,44.50]},{ x:'08/17/2023',y:[44.50,45.20,44.20,45.20]},{ x:'08/18/2023',y:[44.90,45.05,44.50,44.50]},{ x:'08/21/2023',y:[44.65,44.65,43.10,43.65]},{ x:'08/22/2023',y:[44.10,44.10,43.30,43.60]},{ x:'08/23/2023',y:[43.90,43.90,42.60,43.10]},{ x:'08/24/2023',y:[43.10,44.50,43.00,43.35]},{ x:'08/25/2023',y:[43.40,43.60,43.40,43.60]},{ x:'08/28/2023',y:[43.55,44.00,43.45,43.80]},{ x:'08/29/2023',y:[43.80,44.20,43.80,44.00]},{ x:'08/30/2023',y:[44.00,46.40,44.00,46.30]},{ x:'08/31/2023',y:[47.35,47.50,46.55,46.55]},{ x:'09/01/2023',y:[46.55,46.55,45.45,45.90]},{ x:'09/04/2023',y:[45.60,46.50,45.60,46.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6457 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());