Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
620
format NumericYAxis label
posted

I have

List

 

 

<Tuple<string, TimeSpan>>

which is bound to my xamdatachart series.

 

 

 

<igChart:XamDataChart.Axes>

 

 

 

<igChart:CategoryXAxis x:Name="histogramSpO2XAxis" MajorStrokeThickness="{Binding Path= GridLinesStrokeSize}" ItemsSource="{Binding Path=Document.StatisticsData.SpO2Histogram}" Label="{}{Item1}">

 

 

 

<igChart:CategoryXAxis.LabelSettings>

 

 

 

<igChart:AxisLabelSettings />

 

 

 

</igChart:CategoryXAxis.LabelSettings>

 

 

 

</igChart:CategoryXAxis>

 

 

 

<igChart:NumericYAxis x:Name="histogramSpO2YAxis" Label="{}{}" MajorStrokeThickness="{Binding Path= GridLinesStrokeSize}">

 

 

 

<igChart:NumericYAxis.LabelSettings>

 

 

 

<igChart:AxisLabelSettings Extent="55" />

 

 

 

</igChart:NumericYAxis.LabelSettings>

 

 

 

</igChart:NumericYAxis>

 

 

 

</igChart:XamDataChart.Axes>

 

 

 

<igChart:XamDataChart.Series>

 

 

 

<igChart:SplineAreaSeries Title="Histogram" Brush="OliveDrab"

 

 

MarkerType="None" ValueMemberPath="Item2" ItemsSource="{Binding Path=Document.StatisticsData.SpO2Histogram}" XAxis="{Binding ElementName=histogramSpO2XAxis}"

 

 

YAxis="{Binding ElementName=histogramSpO2YAxis}"></igChart:SplineAreaSeries>

 

 

 

</igChart:XamDataChart.Series>

string is for my categoryXaxis, Timespan is for my numeric? Yaxis.

By default the Yaxis shows a numeric number. I need the Timespan value but cant seem to find out how to format properly.

this does not work:

<igChart:NumericYAxis x:Name="histogramSpO2YAxis" Label="{}{0:hh':'mm':'ss}"

Parents Reply Children
No Data