Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
645
Create a lineChart with YAxsi as Log
posted

Hi,
Please help.
I try to create a line chart with YAxis is log and XAxis is date. But it does not work right, the lines did not go on the way down. what do I do wrong?

Yaxis.LogBase = 10;
Yaxis.MajorGridLines.Visible = true;
Yaxis.RangeMax =7;
Yaxis.RangeMin =  -3;
Yaxis.TickmarkInterval = 1;
Yaxis.LogZero = 0;
Yaxis.NumericAxisType = NumericAxisType.Logarithmic;

YAxis  RangeMax = 7 and RangeMin = -3

I create  datasets with the follow values

1)
X = 09/07   Y = -3
X= 09/07    Y = 7

2)
X = 03/09   Y = -3
X= 03/09    Y = 7

And so on.
NumericTimeSeries serievalues = new NumericTimeSeries();
serievalues.Data.DataSource = LocalRxdt;
serievalues.Data.LabelColumn = "DateValue";
serievalues.Data.TimeValueColumn = "DateValue";
serievalues.Data.ValueColumn = "YValue";
serievalues.PEs.Add(new PaintElement(System.Drawing.Color.Red));
this.webchartPtData.CompositeChart.Series.Addserievalues);

ChartLayerAppearance ColumnLayer = new ChartLayerAppearance();
ColumnLayer.ChartType = ChartType.LineChart;
ColumnLayer.ChartArea = psaChartArea;
ColumnLayer.AxisX = Xaxis;
ColumnLayer.AxisY = Yaxis;
ColumnLayer.Series.Add(serievalues);
ColumnLayer.ChartTypeAppearance = LocalRxlineAppearance;            this.webchartPtData.CompositeChart.ChartLayers.Add(ColumnLayer);

Parents
No Data
Reply Children
No Data