Skip to content

Animated, MVVM orientated .Net charts, for WPF, WinForms under MIT Licence, written in C#, LiveCharts listens for any change in your data automatically and updates UI. http://lvcharts.net/

License

Notifications You must be signed in to change notification settings

sk8tz/Live-Charts

 
 

Repository files navigation

GitHub license AppVeyor GitHub issues NuGet Gitter

0.7.0 is here, if you come from an older version, its recommended to read this, examples in this repo are updated to 0.7.0, web site update is in progress, 0.6.6 examples here

Live charts is an easy way to build poweful charts, all charts are animated, they update every time you change your data, it also has an awesome performance.

  • Good looking, animated and easy to customize charts, you can practically change all properties.
  • Autoupdate UI, you just create a SeriesCollection, then LiveCharts will handle everything.
  • MVVM Charting, Support for WPF Bindings.
  • Easy to maintain and create new charts, as you can see in the source code, some charts have almost no code.
  • Supports zooming and panning.
  • MIT License, permissive licensing.

This is the logic you use in every chart, there are just some litle properties or rules that change from each type of chart

//create a new SeriesCollection
var seriesCollection = new SeriesCollection();

//create some LineSeries if ypu need so
var charlesSeries = new LineSeries
{
  Title = "Charles",
  Values = new ChartValues<double> {10, 5, 7, 5, 7, 8}
};
var jamesSeries = new LineSeries
{
  Title = "James",
  Values = new ChartValues<double> { 5, 6, 9, 10, 11, 9 }
};

//add series to seriesCollection
seriesCollection.Add(charlesSeries);
seriesCollection.Add(jamesSeries);

//now just assing this seriesCollectionto your chart
//you can use wpf bindings if you need it
myChart.Series = seriesCollection

//create some labels if necessary
var labels = new string[] {"Jan", "Feb" , "Mar", "Apr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dec"};
myChart.AxixX.Labels = labels;

Is live charts what you are looking for? see these interesting examples.

  • Live Data: a charts that adds new data each second, DateTime as X Axis.
  • Filter records from a data base: a chart that pulls data from a data base according to a simple user filter.
  • IObservableChartPoint: this chart uses a view model that implements IObservableChartPoint, this will update chart every time a desired property changes.
  • There are much more examples in this solution, go to examples folder up here ^^^
  • High performance charts are almost ready, current test can draw 3 million points in only 1 second
  • Find more at http://lvcharts.net/

#Supported Platforms

Only WPF and WinForms for now, I am playing with the code to find an easy way to extend it as PCL

Installation

1. Install package from Nuget Install-Package LiveCharts.Wpf

2. Add name space

To your XAML if using wpf

xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"

Or WinForms and WPF code behind

using LiveCharts;

3. Thats it. You are ready.

Note: To install it for windows forms you will need some extra steps, plese see http://lvcharts.net/#/examples/v1/install-wf?path=WF-Install

How to Contribute

paypal

  • Star this repo
  • Try it
  • Report Issues and Improvements
  • Pull request are well received

Need examples?

Go to examples folder up there ^^^ or even better clone this repo and see included examples.

More Images

Perfomance Test

This test is in progress and is not ready yet, here is the example I made the tests but is not ready yet!

https://github.com/beto-rodriguez/Live-Charts/tree/master/WPFExamples/HighPerformance

About

Animated, MVVM orientated .Net charts, for WPF, WinForms under MIT Licence, written in C#, LiveCharts listens for any change in your data automatically and updates UI. http://lvcharts.net/

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%