GithubHelp home page GithubHelp logo

smartfire / live-charts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from live-charts/live-charts

0.0 3.0 0.0 1.6 MB

Good looking, animated, easy to customize, MVVM .Net charts, WPF, WinForms under MIT Licence, written in C#, LiveCharts listens for any change in your data automatically and updates UI, it also has an awesome performance 3 million point in 1 second

License: MIT License

C# 100.00%

live-charts's Introduction

GitHub license AppVeyor GitHub issues NuGet Gitter

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/

Installation

1. Install package from Nuget Install-Package LiveCharts

2. Add name space

To your XAML if using wpf

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

Or WinForms and WPF code behind

using LiveCharts;

3. Thats it. You are ready.

How to Contribute

  • 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

live-charts's People

Contributors

beto-rodriguez avatar gregsdennis avatar punker76 avatar philippevialatte avatar g1ga avatar ababilone avatar thefirecookie avatar gitter-badger avatar megadan2 avatar

Watchers

James Cloos avatar DY avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.