thanks for your answer (tip), you are right. When i set the minimum range of secondary Y axis smaller than minimum y value
(in my application i set Range.Min = MinY.Value - Range.Int/2) then i see all information,
but first value which i see on secondary Y axis is not equal to minimum range defined by me.
But i don''t understand this solution and sorry I don''t like it :(
(i want a nice and correct chart)
How should I set range of the secondary axis, when i know, that all my values are larger than zero and i want to have minimum value zero??? Where is my calculation wrong?
(i need maximum range of secondary Y axis larger than 2*maximum value of relevant series)
attached please find zip file with simple application, where is all my code which i use.
and my next questions :
when you run my application, you will see chart (first), which has 31 * 24 (744) points.
I set maximum range (x axis) equal 745, but my application has 1490 points on the x axis,
please tell me why i have this count points.
i see double count points into method :
myChart_ChartFormatAxisLabel(object sender, Syncfusion.Windows.Forms.Chart.ChartFormatAxisLabelEventArgs e):
if (e.IsAxisPrimary && e.AxisOrientation ==
if (type == TypeInterval.Month)
e.Label = "";
if (e.Value == 0) inc = 0;
if ((inc % 24) == 12)
e.Label = startPeriod.AddDays(inc /24).ToString("d MMM") + " ";
when i have series (with second Y axis) which has values only zero i have error :
An unhandled exception of type ''System.NullReferenceException'' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object.
and i cann''t find where is this bug:(
is it problem because i have range (0,0,0)???
methods in my application where i work with range informations are
please if you have time and if you can help me tell me where i have bug.
thanks and i apologize for my english
>We regret for the delayed response.
>Thanks for the sample code. But it seems that some data are missing in the code you sent.
>After looking into the sample images, it seems that the differences are not seen because of the Range type that is dynamically set. Please try setting the minimum range of the secondary axis less than that of minimum y value of the series.
>Kindly let me know if this helps you and if not, could you please send me back a simple sample which includes all the necessary details so that it would help me to solve the problem at the earliest?