I want to plot a bunch a of data in VBA. my X axis is in "YYYY/MM/DD h:mm" format. when I plot it using XLline, it plots all the data from different times of one day under one X tang based on one day. for example it shows two vertical lines for dozens of data for two different days.
when I change the graph type to XLxyscatter, the problem is solved but I have no control on editing the chart as I need to control the minimum-maximum of Y axis and major units on X axis.
here is my code:
Basically when I choose XLxyscatter the part between starts is not run. Can someone help me please?
Attached you can see the Xlline and XYscatter results from the code.
scatter.jpg
line.jpg
Bookmarks