Histogram Queries
Posted: Thu Nov 13, 2008 5:30 am
Hi,
Thanks for your previous reply.
Following is my requirement for plotting a Histogram:
Lets say i have following data : 10, 20 30 , 40 , 50 ,60 , 70 , 80 ,90, 100.For this data the Histogram should be plotted in following manner.
1.The range (R) of values is divided into 50 equal bins that are (R/50) wide where R = (Maximum Value – Minimum Value). = (100 - 10)/50 = 1.8
So Number of Bins = 1.8.
2.The number of data values in each bin is calculated and the largest number (L) of values in a bin is determined.
L = 1
3.The histogram is drawn over the x-axis range of R and y-axis range from zero to L with 50 columns.
Queries:
1.Since this is floating point number , it is not accepted.What do i do for this?
2.Which Histogram overload do i use for providing the data.I mean do i need to calculate the NumberOfOccurrances on my own and then Provide them to Histogram. So do i need to use Overload this.HistogramClip.Add(double[] valueArray); OR this.HistogramClip.Add(double[] valueArray, double[] ccurranceArray)
3.Which Series do i use Bar OR Histogram.
Could u please give me the code snippet which will plot the above in appropriate manner.
Thanks
Sanyog.
Thanks for your previous reply.
Following is my requirement for plotting a Histogram:
Lets say i have following data : 10, 20 30 , 40 , 50 ,60 , 70 , 80 ,90, 100.For this data the Histogram should be plotted in following manner.
1.The range (R) of values is divided into 50 equal bins that are (R/50) wide where R = (Maximum Value – Minimum Value). = (100 - 10)/50 = 1.8
So Number of Bins = 1.8.
2.The number of data values in each bin is calculated and the largest number (L) of values in a bin is determined.
L = 1
3.The histogram is drawn over the x-axis range of R and y-axis range from zero to L with 50 columns.
Queries:
1.Since this is floating point number , it is not accepted.What do i do for this?
2.Which Histogram overload do i use for providing the data.I mean do i need to calculate the NumberOfOccurrances on my own and then Provide them to Histogram. So do i need to use Overload this.HistogramClip.Add(double[] valueArray); OR this.HistogramClip.Add(double[] valueArray, double[] ccurranceArray)
3.Which Series do i use Bar OR Histogram.
Could u please give me the code snippet which will plot the above in appropriate manner.
Thanks
Sanyog.