Skip to content

Simple, flexible, interactive & powerful charts, maps and gauges for .Net

License

Notifications You must be signed in to change notification settings

jingliang2005/Live-Charts

Repository files navigation

GitHub license AppVeyor GitHub issues Gitter

Live charts makes your data alive, as easy as manipulating any .net list, the library animates and updates every time your data changes, don't worry about perfomance, Livecharts also handles it.

  • 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.

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;

###Supported Platforms

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

Installation

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.

About

Simple, flexible, interactive & powerful charts, maps and gauges for .Net

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.8%
  • PowerShell 0.2%