Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

Created Unassigned: BarSeries is not working with TimeSpanAxis [10067]

$
0
0
This is an excerpt of the case:


// Each item has the "Total" as TimeSpan Property
foreach (var item in kronosData.Processes)
{
var s = kronosData.Stats.Where(x => x.Process == item);
plotChart.Series.Add(new OxyPlot.Wpf.BarSeries()
{
IsStacked = true,
Title = item.Name,
ItemsSource = s,
ValueField = "Total",
});
}

plotChart.InvalidatePlot();



<oxy:Plot x:Name="plotChart" Grid.Row="1" Title="Tiempo Total" LegendPlacement="Outside" LegendPosition="BottomCenter" LegendOrientation="Horizontal">
<oxy:Plot.Axes>
<oxy:CategoryAxis LabelField="Items" Position="Left" />
<oxy:TimeSpanAxis Position="Bottom" />
</oxy:Plot.Axes>
<oxy:Plot.Series>
</oxy:Plot.Series>
</oxy:Plot>

Viewing all articles
Browse latest Browse all 2061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>