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/29/2023',y:[74.30,76.50,71.00,71.00]},{ x:'06/30/2023',y:[71.60,72.00,66.00,69.00]},{ x:'07/03/2023',y:[68.90,70.00,66.00,67.20]},{ x:'07/04/2023',y:[63.90,66.80,61.00,61.80]},{ x:'07/05/2023',y:[60.80,65.50,60.00,61.00]},{ x:'07/06/2023',y:[61.00,61.00,56.90,56.90]},{ x:'07/07/2023',y:[56.90,59.50,54.10,57.60]},{ x:'07/10/2023',y:[58.00,58.80,54.30,54.30]},{ x:'07/11/2023',y:[59.70,59.70,57.40,59.50]},{ x:'07/12/2023',y:[60.20,61.50,54.60,55.60]},{ x:'07/13/2023',y:[55.10,55.60,51.70,52.00]},{ x:'07/14/2023',y:[50.90,54.30,48.55,52.60]},{ x:'07/17/2023',y:[52.00,52.60,50.50,51.50]},{ x:'07/18/2023',y:[51.50,51.50,47.65,47.65]},{ x:'07/19/2023',y:[48.50,49.95,48.00,48.20]},{ x:'07/20/2023',y:[48.20,53.00,48.10,53.00]},{ x:'07/21/2023',y:[55.00,57.40,54.00,54.80]},{ x:'07/24/2023',y:[52.60,53.80,49.35,49.35]},{ x:'07/25/2023',y:[48.00,50.70,48.00,49.60]},{ x:'07/26/2023',y:[49.00,53.80,48.25,51.80]},{ x:'07/27/2023',y:[51.50,56.90,50.50,56.70]},{ x:'07/28/2023',y:[56.60,60.50,53.40,56.80]},{ x:'07/31/2023',y:[56.80,56.80,51.70,52.50]},{ x:'08/01/2023',y:[52.50,54.30,52.50,52.80]},{ x:'08/02/2023',y:[52.70,54.30,51.10,51.50]},{ x:'08/04/2023',y:[51.20,52.40,50.90,51.00]},{ x:'08/07/2023',y:[51.30,51.30,49.90,50.50]},{ x:'08/08/2023',y:[51.00,54.10,51.00,52.50]},{ x:'08/09/2023',y:[52.20,52.70,51.20,51.30]},{ x:'08/10/2023',y:[51.30,51.30,49.00,50.40]},{ x:'08/11/2023',y:[50.50,51.30,48.20,49.20]},{ x:'08/14/2023',y:[49.20,49.40,45.00,45.80]},{ x:'08/15/2023',y:[47.05,47.05,45.30,45.60]},{ x:'08/16/2023',y:[45.00,45.15,43.60,44.60]},{ x:'08/17/2023',y:[43.50,46.50,43.00,45.50]},{ x:'08/18/2023',y:[45.00,45.00,43.30,43.30]},{ x:'08/21/2023',y:[43.80,43.95,42.05,42.15]},{ x:'08/22/2023',y:[42.40,42.45,40.00,40.00]},{ x:'08/23/2023',y:[41.10,41.90,40.45,41.00]},{ x:'08/24/2023',y:[41.20,41.25,39.50,39.65]},{ x:'08/25/2023',y:[43.30,43.60,41.45,43.60]},{ x:'08/28/2023',y:[43.00,43.00,40.15,40.50]},{ x:'08/29/2023',y:[40.50,41.00,39.60,40.50]},{ x:'08/30/2023',y:[40.50,40.90,40.25,40.55]},{ x:'08/31/2023',y:[40.70,41.45,40.70,41.35]},{ x:'09/01/2023',y:[41.35,42.60,40.60,42.60]},{ x:'09/04/2023',y:[42.60,43.00,41.35,41.70]},{ x:'09/05/2023',y:[42.05,42.30,41.50,42.00]},{ x:'09/06/2023',y:[42.50,42.50,41.00,41.90]},{ x:'09/07/2023',y:[41.25,41.95,41.05,41.05]},{ x:'09/08/2023',y:[41.70,41.70,40.75,40.95]},{ x:'09/11/2023',y:[40.95,41.30,39.70,39.80]},{ x:'09/12/2023',y:[40.10,41.00,39.85,40.05]},{ x:'09/13/2023',y:[41.00,42.65,40.45,42.45]},{ x:'09/14/2023',y:[43.20,44.60,43.00,44.35]},{ x:'09/15/2023',y:[44.10,44.20,42.40,42.40]},{ x:'09/18/2023',y:[41.60,41.90,41.35,41.55]},{ x:'09/19/2023',y:[41.55,41.80,41.00,41.05]},{ x:'09/20/2023',y:[41.05,41.45,40.50,40.60]},{ x:'09/21/2023',y:[40.10,40.40,39.80,39.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2734 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());