Riscy
Riscy

Reputation: 915

C#, charting, log scale how to set x-axis to bottom?

I have .NET CHART on VS2010 in C#

How to shift the x-axis to the bottom the Y-axis. See attached.

Chart with x-axis that need to be ahifted to 0.0001

Upvotes: 0

Views: 701

Answers (1)

Matthew Watson
Matthew Watson

Reputation: 109577

I think you should be able to do this kind of thing:

_chart.ChartAreas["YourChartArea"].AxisY.Crossing = 0.0001;

(It might be AxisX.Crossing you need to set; I always get those mixed up!)

It works for non-logarithmic scales, but I'm not totally sure it works with logarithmic Y axes.

Upvotes: 1

Related Questions