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/27/2023',y:[34.00,34.50,33.20,33.20]},{ x:'06/28/2023',y:[33.30,33.75,33.00,33.20]},{ x:'06/29/2023',y:[33.05,33.40,32.60,32.60]},{ x:'06/30/2023',y:[32.50,33.45,32.50,32.70]},{ x:'07/03/2023',y:[33.60,33.60,32.70,32.80]},{ x:'07/04/2023',y:[33.80,33.80,32.80,33.00]},{ x:'07/05/2023',y:[32.60,32.65,32.20,32.40]},{ x:'07/06/2023',y:[34.15,35.60,33.50,35.60]},{ x:'07/07/2023',y:[35.45,35.45,33.50,33.60]},{ x:'07/10/2023',y:[32.65,33.15,30.60,30.60]},{ x:'07/11/2023',y:[30.60,31.50,30.60,30.70]},{ x:'07/12/2023',y:[30.80,32.70,30.80,31.40]},{ x:'07/13/2023',y:[31.45,31.45,30.55,30.60]},{ x:'07/14/2023',y:[30.60,33.65,30.60,33.65]},{ x:'07/17/2023',y:[37.00,37.00,35.80,37.00]},{ x:'07/18/2023',y:[40.70,40.70,37.50,40.70]},{ x:'07/19/2023',y:[41.60,42.45,38.50,39.00]},{ x:'07/20/2023',y:[39.25,40.95,37.10,37.10]},{ x:'07/21/2023',y:[38.35,38.55,36.75,36.75]},{ x:'07/24/2023',y:[35.40,39.85,35.10,39.50]},{ x:'07/25/2023',y:[40.50,43.45,38.65,43.45]},{ x:'07/26/2023',y:[46.50,47.00,43.00,43.90]},{ x:'07/27/2023',y:[44.00,48.25,42.50,48.25]},{ x:'07/28/2023',y:[48.25,53.00,48.00,49.95]},{ x:'07/31/2023',y:[52.80,52.80,45.05,45.30]},{ x:'08/01/2023',y:[45.30,47.35,44.00,44.40]},{ x:'08/02/2023',y:[43.70,45.45,42.50,42.65]},{ x:'08/04/2023',y:[41.70,46.90,41.70,46.90]},{ x:'08/07/2023',y:[48.00,51.50,47.15,49.50]},{ x:'08/08/2023',y:[48.30,52.50,48.30,50.70]},{ x:'08/09/2023',y:[50.30,51.70,47.70,48.80]},{ x:'08/10/2023',y:[49.00,51.90,47.50,47.70]},{ x:'08/11/2023',y:[48.60,50.50,48.00,49.90]},{ x:'08/14/2023',y:[49.20,54.30,49.00,50.70]},{ x:'08/15/2023',y:[49.90,53.50,49.80,50.10]},{ x:'08/16/2023',y:[51.50,51.50,49.00,49.00]},{ x:'08/17/2023',y:[48.55,50.00,48.10,48.10]},{ x:'08/18/2023',y:[48.15,52.20,47.85,50.80]},{ x:'08/21/2023',y:[51.80,54.00,51.50,51.90]},{ x:'08/22/2023',y:[51.90,53.50,49.35,49.80]},{ x:'08/23/2023',y:[51.70,51.70,49.10,49.60]},{ x:'08/24/2023',y:[49.75,50.90,47.50,47.60]},{ x:'08/25/2023',y:[46.30,49.70,46.30,47.10]},{ x:'08/28/2023',y:[48.45,49.20,45.10,48.10]},{ x:'08/29/2023',y:[49.20,51.50,49.00,49.20]},{ x:'08/30/2023',y:[49.20,51.20,49.15,49.15]},{ x:'08/31/2023',y:[49.20,51.20,49.00,49.50]},{ x:'09/01/2023',y:[50.00,50.20,49.05,49.05]},{ x:'09/04/2023',y:[48.80,52.00,48.80,52.00]},{ x:'09/05/2023',y:[52.10,57.20,52.10,57.20]},{ x:'09/06/2023',y:[58.30,60.30,54.30,54.80]},{ x:'09/07/2023',y:[55.00,57.50,54.60,55.40]},{ x:'09/08/2023',y:[55.20,57.30,53.10,53.30]},{ x:'09/11/2023',y:[53.30,55.90,52.40,55.80]},{ x:'09/12/2023',y:[56.60,56.60,53.10,53.30]},{ x:'09/13/2023',y:[54.30,55.40,53.30,54.40]},{ x:'09/14/2023',y:[54.40,58.50,54.40,58.50]},{ x:'09/15/2023',y:[59.00,59.00,55.20,55.60]},{ x:'09/18/2023',y:[54.00,57.20,54.00,55.00]},{ x:'09/19/2023',y:[55.30,56.00,53.80,54.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5432 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());