asp.net - How to always show the first and the last AxisX Label with Microsoft Chart Controls? -


After

I am developing a stock development chart with Microsoft Chart Control and I show the initial And the last dates on the axis label but I can not do this

I liked Google and found several solution properties set:

Chart1.ChartAreas [0] .AxisX.Minimum = InitialDate.ToOADate (); Chart 1 Chart Carous [0]. Axisx Max = end date Toodet (); Chart1.ChartAreas [0] .AxisX.LabelStyle.IsEndLabelVisible = true

Nothing creates the same difference. I need a help others dates!

The initial date was 26, 2007 and the last July 26, 2010, on the sample given below, this is what I need to show on the chart label, do not matter and should be shown at any interval Could.

"text" itemprop = "text">
  LCharts (iChart) .Chart.ChartAreas (0) .AxisX.Minimum = MinDate.ToOADate LCharts (iChart) .Chart.ChartAreas (0) .AxisX.Maximum = MaxDate.ToOADate LCharts (iChart) .Chart.ChartAreas (0). AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount 'LCharts (iChart). Chart.ChartAreas (0) .AxisX.IsMarginVisible = True LCharts (iChart) .Chart.ChartAreas (0) .AxisX.LabelStyle.IsEndLabelVisible = True  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -