2017-09-27 53 views
0

是否可以在系列的標籤中顯示另一個值或計算標籤的值? 背景:我需要一個具有TimeSpan-Values的列系列。我可以使用Axis.LabelFormatter在軸上顯示Timespan值。但是這個系列沒有LabelFormatter。我如何在標籤中顯示Timespan值?Oxyplot:標籤中的另一個值

+0

創建TimeSpanAxis。檢查此問題:https://stackoverflow.com/questions/25969656/irregular-interval-on-datetime-axis-in-oxyplot – Jose

+0

但我需要在ColumnSeries Timespan值。並且ColumnSeries需要具有_double_或_int_值的ColumnItem。 –

回答

1

現在我明白了我自己。使用從ColumnItem派生的自己的類,以及具有所需值的附加屬性。並且在LabelFormatString(或TrackerFormatString)中,我可以使用此屬性(LabelFormatString =「{PropertyName}」

相關問題