In an effort to create a Histogram chart, I was instructed to use a BarSeries by someone on this forum, and set it's CategoricalAxis.GapLength to 0.000001 (can't set to 0 because of a known bug). After doing this, I created a BarSeries and set it's data to what I thought would correct. I can see the y axis growing at the correct rate, but there are no bars visible!
Xaml:
The data is formatted in an ObserveableCollection<ChartData> as defined here:
(I'd previously used this format for a ScatterSeries with no issue)
The graph is growing, but it's like there is no default style applied to the BarSeries, thoughts?
Xaml:
<
telerik:RadCartesianChart
x:Name
=
"RadChart1"
Palette
=
"Metro"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Top"
Width
=
"1000"
Height
=
"400"
>
<
telerik:BarSeries
ItemsSource
=
"{Binding Data}"
ValueBinding
=
"Data"
/>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
chartView:CategoricalAxis
MajorTickInterval
=
"250"
GapLength
=
"0.00001"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
LabelFormat
=
"0"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.Grid
>
<
telerik:CartesianChartGrid
MajorLinesVisibility
=
"Y"
/>
</
telerik:RadCartesianChart.Grid
>
</
telerik:RadCartesianChart
>
The data is formatted in an ObserveableCollection<ChartData> as defined here:
public
class
ChartData
{
public
int
Index {
get
;
set
; }
public
int
Data {
get
;
set
; }
}
(I'd previously used this format for a ScatterSeries with no issue)
The graph is growing, but it's like there is no default style applied to the BarSeries, thoughts?