is it possible to show another value in a label of a series or to compute the value for a label? Background: I need a columnseries with TimeSpan-Values. I can use the Axis.LabelFormatter to show Timespan values on the axis. But there is no LabelFormatter for the series. How can I show Timespan values in the labels?
Asked
Active
Viewed 660 times
0
-
Create a TimeSpanAxis. Check this question: https://stackoverflow.com/questions/25969656/irregular-interval-on-datetime-axis-in-oxyplot – Jose Sep 27 '17 at 11:52
-
But I need Timespan values in a ColumnSeries. And the ColumnSeries needs ColumnItems with _double_ or _int_ values. – Dave_B. Sep 27 '17 at 12:11
1 Answers
2
Now I figured it out for myself. A use a own class, derived from ColumnItem, with a additional property with the value I need. And in the LabelFormatString (or TrackerFormatString) I can use this property (LabelFormatString = "{PropertyName}")

Dave_B.
- 173
- 10