Good looking, animated, easy to customize, MVVM charts for WPF, WinForms under MIT Licence
beto-rodriguez on master
move to new site (compare)
beto-rodriguez on master
move to new site (compare)
Hi, Could i get some help ? I get an error message everytime I try to insert anything other than an AngularGauge or SolidGauge. I am using the Netcore3 version with WinForms.
Have you looked at https://stackoverflow.com/questions/44584801/the-component-livecharts-wpf-defaultlegend-does-not-have-a-resource-identified
@DerekG007 sounds like you are volunteering?
One can reconstruct the LiveCharts DLL and LiveCharts.WPF DLL. The Geared module has been obfuscated in some parts. The functions have been renamed to the letters of the alphabet. Since I classify myself as a novice, It would take me months to try and reconstruct and figure out the framework. Not impossible, but is it really worth the effort? I sometimes wonder if the original developer is still alive ?
Hi all,
I need to set up a static series of 14 line annotations in my CartesianChart
but I'm facing a bit of a problem regarding theming.
If I bind my Chart to a SeriesCollection in the ViewModel I can set up all my lines programmatically in a single go, but then I'm blocked from accessing any theming resources (afaik)
If I set up all the lines in the XAML I have full control over their graphical properties, but then I need to have a separate IChartValues
in my ViewModel for each different <LineSeries>
in my View:
<lc:CartesianChart.Series>
<lc:LineSeries Title="10%" Values="{Binding Path=MAC10}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="12%" Values="{Binding Path=MAC12}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="14%" Values="{Binding Path=MAC14}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="16%" Values="{Binding Path=MAC16}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="18%" Values="{Binding Path=MAC18}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="20%" Values="{Binding Path=MAC20}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="22%" Values="{Binding Path=MAC22}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="24%" Values="{Binding Path=MAC24}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="26%" Values="{Binding Path=MAC26}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="28%" Values="{Binding Path=MAC28}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="30%" Values="{Binding Path=MAC30}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="32%" Values="{Binding Path=MAC32}" Style="{StaticResource MACAnnotation}"/>
<lc:LineSeries Title="34%" Values="{Binding Path=MAC34}" Style="{StaticResource MACAnnotation}"/>
</lc:CartesianChart.Series>
Any elegant solution for that?
VisualElement
there
if (GiroSelect != null)
{
var converter = new System.Windows.Media.BrushConverter();
var seleccionado = (Brush)converter.ConvertFromString("#00FF00");
SeriesCollection1 = new SeriesCollection
{
new RowSeries
{
Title = "Giro",
Values = cantgiros,
Fill = seleccionado,
},
};
}
else
{
var converter = new System.Windows.Media.BrushConverter();
var seleccionado = (Brush)converter.ConvertFromString("#00FF00");
var opaco = (Brush)converter.ConvertFromString("#1B681B");
var Mapper1 = new CartesianMapper<double>()
.X((value, index) => value) //use the value as X
.Y((value, index) => index) //use the index as Y
.Fill((value, index) => index == 3 ? seleccionado : opaco);
SeriesCollection1 = new SeriesCollection
{
new RowSeries
{
Title = "Giro",
Values = cantgiros,
Configuration = Mapper1,
},
};
}