Hello,
I have a question regarding histogram chart. The thing is that I already have a histogram data and I don't want to provide whole data set to calculate values on Y axis.
What I need is to show columns that on X axis will be measured with range values (like HistogramChart.ColumnAppearance.StringAxis = false), and on Y axis I just want to set my custom value for particular column.
Is it possible?
Thanks in advance
"The Y-Axis for a Histogram chart is to show the amount of items based on the certain set of range you have displayed." - what I want from histogram is to show amount of items on Y axis provided by myself using just a parameter and not provide whole set of values (basically it is what column chart does as you said).
The column chart works fine for me except on X axis I want to show values on the borders of columns not in the middle (this behavior is on histogram chart when I set HistogramChart.ColumnAppearance.StringAxis = false).
So what I need is to set height of column just with the parameter (Like column chart) and set range of parameters for X axis (like histogram chart with StringAxis = false parameter).
So I have for each column following set of parameters:
X axis: min value and max value
Y axis: amount of items
Thanks.
Thank you your update, but I still do not quite understand. Can you please provide a mockup of your requirement?
The Y-Axis for a Histogram chart is to show the amount of items based on the certain set of range you have displayed.
Have you looked into using another ChartType, perhaps the ColumnChart?
I have following data for chart:
public class HistogramChartItemInfo { private readonly Info _info; private readonly object _maxValue; private readonly object _minValue;
public HistogramChartItemInfo(Info info, object maxValue, object minValue) { _info = info; _maxValue = maxValue; _minValue = minValue; }
public Info Info { get { return _info; } } public object MaxValue { get { return _maxValue; } } public object MinValue { get { return _minValue; } } }
public struct Info { public long Count { get; private set; } public decimal? Percent { get; private set; }
public Info(long count, decimal? percent) { Count = count; Percent = percent; }
}
List<HistogramChartItemInfo> data = new List<HistogramChartItemInfo>();
and then for each data element I want to build column on histogram chart. X axis will display Min and Max value of HistogramChartItemInfo for each column, and the Y axis will display Count value of HistogramChartItemInfo.Info. So Max value for Y axis should be max value of data[i].HistogramChartItemInfo.Count (where "i" is the element with the max value of "Count" property).
If it is possible please attach sample solution.
Thanks!
The range I provided for xAxis can be applied to the yAxis too.
Can you please clarify the following: "want to set my custom value for particular column."
No, on X axis I have everything I need, the problem is that I can't set my custom values for Y axis for Histogram chart. I just don't want that histogram chart calculate Y axis basing on count of repeatable data in data set. Just want to set my custom value for particular column.