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/16/2023',y:[42.70,42.80,42.05,42.35]},{ x:'06/19/2023',y:[42.60,42.60,41.85,42.15]},{ x:'06/20/2023',y:[42.10,42.40,41.80,42.20]},{ x:'06/21/2023',y:[42.20,43.45,42.20,43.20]},{ x:'06/26/2023',y:[43.30,44.15,42.95,44.15]},{ x:'06/27/2023',y:[44.80,45.10,43.15,44.50]},{ x:'06/28/2023',y:[44.90,47.35,44.85,46.80]},{ x:'06/29/2023',y:[46.40,46.65,45.10,46.20]},{ x:'06/30/2023',y:[45.50,46.40,45.50,45.90]},{ x:'07/03/2023',y:[46.80,47.40,46.25,47.20]},{ x:'07/04/2023',y:[47.40,47.80,46.50,47.05]},{ x:'07/05/2023',y:[47.50,47.95,47.25,47.75]},{ x:'07/06/2023',y:[47.75,49.10,47.40,48.20]},{ x:'07/07/2023',y:[47.70,47.85,45.95,47.30]},{ x:'07/10/2023',y:[47.50,47.60,45.65,46.05]},{ x:'07/11/2023',y:[46.85,47.55,46.65,47.30]},{ x:'07/12/2023',y:[47.60,48.20,47.05,47.50]},{ x:'07/13/2023',y:[47.90,48.80,47.30,47.95]},{ x:'07/14/2023',y:[48.65,49.45,48.15,49.45]},{ x:'07/17/2023',y:[50.30,53.70,50.30,52.50]},{ x:'07/18/2023',y:[52.50,53.00,48.40,50.80]},{ x:'07/19/2023',y:[48.80,49.80,48.05,48.10]},{ x:'07/20/2023',y:[48.85,49.90,47.65,48.20]},{ x:'07/21/2023',y:[47.40,48.75,46.95,48.45]},{ x:'07/24/2023',y:[48.90,49.45,47.85,49.10]},{ x:'07/25/2023',y:[49.80,52.30,49.45,51.40]},{ x:'07/26/2023',y:[52.00,52.30,50.60,51.10]},{ x:'07/27/2023',y:[51.10,51.30,50.30,50.70]},{ x:'07/28/2023',y:[50.50,51.20,49.15,51.20]},{ x:'07/31/2023',y:[51.90,52.40,50.30,51.30]},{ x:'08/01/2023',y:[51.50,51.60,49.50,50.40]},{ x:'08/02/2023',y:[50.00,50.60,47.85,48.25]},{ x:'08/04/2023',y:[48.75,49.10,47.25,49.05]},{ x:'08/07/2023',y:[49.20,51.50,48.70,50.90]},{ x:'08/08/2023',y:[51.00,51.80,50.30,51.60]},{ x:'08/09/2023',y:[51.50,52.30,51.40,51.80]},{ x:'08/10/2023',y:[52.30,53.00,51.40,52.10]},{ x:'08/11/2023',y:[52.60,53.10,50.90,52.10]},{ x:'08/14/2023',y:[51.50,52.30,50.10,51.70]},{ x:'08/15/2023',y:[52.20,53.60,52.00,53.40]},{ x:'08/16/2023',y:[52.60,54.20,52.30,54.10]},{ x:'08/17/2023',y:[54.00,56.40,53.50,56.20]},{ x:'08/18/2023',y:[56.10,56.80,55.20,55.80]},{ x:'08/21/2023',y:[55.80,58.40,55.50,58.00]},{ x:'08/22/2023',y:[58.40,59.20,57.40,58.80]},{ x:'08/23/2023',y:[59.00,59.70,58.30,58.80]},{ x:'08/24/2023',y:[59.00,59.00,53.60,55.90]},{ x:'08/25/2023',y:[55.80,58.00,55.60,57.40]},{ x:'08/28/2023',y:[57.90,57.90,55.50,55.90]},{ x:'08/29/2023',y:[56.50,56.50,54.20,55.10]},{ x:'08/30/2023',y:[55.60,56.30,54.80,54.90]},{ x:'08/31/2023',y:[54.90,56.80,54.60,56.80]},{ x:'09/01/2023',y:[56.60,56.60,55.50,55.60]},{ x:'09/04/2023',y:[55.10,56.90,55.10,56.10]},{ x:'09/05/2023',y:[56.10,58.70,56.10,58.60]},{ x:'09/06/2023',y:[58.80,61.00,58.40,60.50]},{ x:'09/07/2023',y:[60.60,64.60,60.00,60.90]},{ x:'09/08/2023',y:[61.80,62.40,60.10,61.00]},{ x:'09/11/2023',y:[60.70,61.00,58.30,58.70]},{ x:'09/12/2023',y:[58.70,60.40,58.20,59.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6191 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());