I have tried many things such as setting Right to Left
or messing with the IsReversed
property for ChartArea
but no go. Any advice?
Sorry for the lack of info, I figured it would be just a switch somewhere in the Chart properties that I was overlooking. Anyways, I am making a custom chart and right now the lines are going from left to right BUT I need it to go in the reverse direction
I guess another way to put it woudl be how do I add points going from right to left?
If you want to reverse the x-axis all you need to do is
Before and after:
If you want to keep the y-axis to the left use this:
If, as you comment, you simply want to add
DataPoints
to the left, you can do so like this:This may be a little slower, but it will work just as well as
Adding
them at the end. You may want to have a look at this post, whereDataPoints
are inserted at various spots in thePoints
collection..Note the
Points
is often accessed like an array but really is of type DataPointCollection so adding and removing and many other operations are readily available.One common use is removing Points from the left to create a 'moving' chart like an oscillograph..