You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
// constructor
public MainWindowVievModel(){
GraphData = new SeriesCollection(){
new LineSeries(){
Values = currentData,
PointGeometrySize = 0,
LineSmoothness = 0,
Fill = Brushes.Transparent,
Configuration = new CartesianMapper<Point>()
.X(point => point.X)
.Y(point => point.Y)
.Stroke(point => Brushes.Black),
}
}
FillChart();
}
private ChartValues<Point> currentData = new ChartValues<Point>();
private SeriesCollection graphData;
public SeriesCollection GraphData{
get => graphData;
set{
graphData = value;
OnPropertyChanged();
}
}
//add some dummy data
private void FillChart(){
currentData .Add(new Point(0, 0));
currentData .Add(new Point(1, 1));
currentData .Add(new Point(2, 2));
}
Expectation
I would expect the LineChart to have the stroke color black, but instead it is the default blue.
In my problem I do not want to use Black for all colors, but instead want to do something like
How to reproduce?
here a minimalistic example:
MainWindow.xaml
MainWindowViewModel.cs
Expectation
I would expect the LineChart to have the stroke color
black
, but instead it is the defaultblue
.In my problem I do not want to use
Black
for all colors, but instead want to do something likeI also tried using
.Fill(point => ...)
(with other PointgeometrySize) but this did not worked too.I am using
The text was updated successfully, but these errors were encountered: