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}"
Hello Genvej,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I set the Label DataTemplate and used a Converter to convert the Double value to a TimeSpan.
Hope this helps you.
Thank you very much. Im happy to be in synch with your practice as that was excactly what I ended up doing too. Thx for the help.