Skip to content

ChandraTheDev/Live-Charts

 
 

Repository files navigation

GitHub license AppVeyor GitHub issues Gitter

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.

Live charts makes your data alive, as easy as manipulating any .net list, the library animates and updates every time your data changes.

  • 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.
  • Supports zooming and panning.
  • MIT License, permissive licensing, yes free.

Why is LiveCharts different to other charting libraries?

First: animations and good looking charts by default, second: responsive charts these charts automatically update when your data changes also when you resize your chart, finally LiveCharts MVVM is different and for me it feels better than other libraries, becuase LiveCharts uses generics and with it strongly typed modeling, others use reflection to get the property value.

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 300ms, DateTime as X Axis.
  • Observable Points: notify the chart to update every time a property changes
  • Simple Bar Chart: a simple bar chart.
  • Do not need animations? ok disable them, performance will be increased also, Chart.DisableAnimations = true;

###Support

WPF and Winforms, currenlty the library is in the process to become a cross net library...

###Net Version

.Net 4.0.3 or greater, Windows XP SP3 at least, for more info see #212

Installation

Verify your project uses .Net 4.0.3 or greater, then follow these stepts.

To verify if you are using a supported .net version, go to SolutionExplorer > Right click on your project > Properties > Application, then verify Taret framework is set at least to .net 4.0.3

How to Contribute

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

You can also buy me a beer

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J86WDLSS9PWGL)

Examples?

The web site has a nice set, they are also built in the examples folder up here ^^^^

High perfomance?

LiveCharts will also handle high performance, it is not ready yet but the current tests allows the library to plot 3,000,000 in 1 second, yes even with aniations.

Road Map

  • Build at least all the features any other charting library does, in WPF and WinForms
  • Build High performance algorithms
  • Expand the library to at least Xamarin and UWP (should not be that hard, the code is already designed to support this point)
  • release 1.0 in WPF and WinForms, the other platforms will be beta, in case something went wrong.

About

Animated, MVVM friendly .Net charts, for WPF, WinForms under MIT Licence (Free), 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# 98.6%
  • Other 1.4%