Hey Friends,
As being new to Infragistics, i have some questions regarding plotting datasets with two numeric columns and need to be plotted against each other.
For example we have data like this:
DateTime
Temp
Length
08/01/2011 07:10:21
11.25
10
08/01/2011 07:10:22
11.27
11
08/01/2011 07:10:23
11.23
14
08/01/2011 07:10:24
11.28
12
08/01/2011 07:10:25
13
and i want to plot Temp against Length i.e. Temp on X-axis and Length on Y-axis.
How can we do this in Ultrachart with chart type as LineChart.
Thanks in advance.
Regards,
Nipun Anand
Hello Nipun,
I try to reproduce your scenario in a small sample. Could you please take a look at the attached file for more details. Please let me know if you think that I didn`t reproduce your scenario or if you have any questions.
Regards
Hi Georgi,
Many thanks for the sample.
I need your help in another issue, in which i want to have Y Axis with scales of custom ranges as shown in the diagram below:
Maybe you are looking for the properties below of your Y axis
axis1.RangeType = AxisRangeType.Custom;
axis1.RangeMin = 0;
axis1.RangeMax = 750;
axis1.LineColor = Color.Red;
area.Axes.Add(axis1);
Please if you have any questions, do not hesitate to ask me
Thanks for the reply, but i am not looking for the one you have specified.
According to your code the the range will start from 0 to 750 , but i dont want it in that manner.
Actually i want the Y Axis scale to have range from
0 - 20 and than say from 715 to 750.
The reason for the above mentioned scenario is that suppose i have the following data:
Here you see we have data in two ranges 0 to 5 and 715 to 750.
So if we provide these two ranges in the chart rather than plotting from 0 to 750, we can show the fluctuation in the values in a better way because than we will not have the unwanted range values on Y Axis i.e from 5 to 715 as that will help us in saving space which has been unnecessarily used by those un required range values.
Please find below chart for your reference:
Here you can see we have only few values in the range from 0 to 20 and than all the values are in the range of 80 to 120.
Presently in this chart i am unable to show the fluctuation in the values. So if i can show two ranges i.e.
1. 0 to 20
2. 80 to 120 with intervals at 5(85 , 90, 95, 100, 105 ...... like this)
than i can show the fluctuation clearly.
May be this will help in clearifying the requirement
Thanks & Regards,
The difference in the values are huge and maybe one possible approach to show the fluctuation in the values is to use logaritmic Y axis. I already post sample code in this forum thread. Other possible approach is to use two different Y axis and two series. The first one will show the small values (0 - 20) and second one - values (80-120). The disadvantage of this approach is that we have two series, instead just one series. The third option is to add ScrolScale of your axis via property:- axisX.ScrollScale.Visible = true;By this way you could zoom the axis and see the difference in the values. Please let me know if you think that I misunderstood your scenario or if you have any questions.Regards
Hello Gerogi,
Thanks, just wanted to verify that we also need to provide printouts of the charts to the end users. In case we provide scrollable axis will the printout come for the chart with complete axis, or the printout will be just the part which is visible in the chart.
Also i wanted to clarify that, presently after plotting the chart, values which are displayed while hovering on the data points are that of the data ValueXColumn of XYSeries. Please see an example below:
Instead, i want data in ValueYColumn of the series to be displayed while hovering on the plotted points.
Presently i am not doing any settings in the code for the same. Can you please suggest what needs to done to achieve the above said.
Also as you can see in the screenshot the legend for the chart is overlapping the labels on the X Axis. Can we get legends displaying the labels horizontally, instead of displaying them vertically one below each other? Please tell how.
Thanks again.
Nipun Aand
You could find more information about this topic in our online documentation:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid_Row_Layouts.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/WinGrid.html
Please if you have any questions, feel free to ask me
Hello Georgi,
As i have been going through the Infragistics help for Ultra Win grid which we have got with the Setup, i could not find the topic for GroupRowLayout.
Is this available in the help?
Many Thanks.
This is what i was looking for.
I`m not sure, but maybe you are asking for GroupRowLayoout. Please take a look at the new sample and attached screenshot and please let me know if you think that I misunderstood your request.
Or can we have separate headers for combination of columns.
For example. If we have 4 columns in our grid than
1) 1st 2 columns have 1 common header
2) 2nd 2 columns have 1 common header