mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
ux: use column series instead of line series because change between samples is not linear
This commit is contained in:
parent
1dd1e41b7b
commit
de15cb1ff2
1 changed files with 5 additions and 7 deletions
|
@ -67,7 +67,7 @@ namespace SourceGit.Models
|
|||
}
|
||||
else
|
||||
{
|
||||
XAxes.Add(new DateTimeAxis(TimeSpan.FromDays(365), v => $"{v:yyyy/MM}") { TextSize = 10 });
|
||||
XAxes.Add(new DateTimeAxis(TimeSpan.FromDays(30), v => $"{v:yyyy/MM}") { TextSize = 10 });
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,14 +99,12 @@ namespace SourceGit.Models
|
|||
samples.Add(new DateTimePoint(kv.Key, kv.Value));
|
||||
|
||||
Series.Add(
|
||||
new LineSeries<DateTimePoint>()
|
||||
new ColumnSeries<DateTimePoint>()
|
||||
{
|
||||
Values = samples,
|
||||
Stroke = new SolidColorPaint(SKColors.Green) { StrokeThickness = 1 },
|
||||
Fill = new SolidColorPaint(SKColors.SkyBlue.WithAlpha(90)),
|
||||
GeometrySize = 8,
|
||||
GeometryStroke = new SolidColorPaint(SKColors.Green) { StrokeThickness = 2 },
|
||||
LineSmoothness = 0,
|
||||
Stroke = null,
|
||||
Fill = new SolidColorPaint(SKColors.Green),
|
||||
Padding = 1,
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue