GithubHelp home page GithubHelp logo

goupviet / live-charts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from live-charts/live-charts

0.0 2.0 1.0 509 KB

Good looking, animated and easy to customize wpf charts, .net charts, MVVM charts

License: MIT License

C# 100.00%

live-charts's Introduction

Live charts is an easy way to build useful charts, all charts are animated, they update every time you change your data, or when you rezise the chart, also since 0.5 we are working to support huge amounts of data, right now this is on test and only implemented in line chart, but in the included examples it is able to draw 1'000,000 points in a really short period of time.

  • MVVM Charting, Support for WPF Binding, All charts update when data changes.
  • Good looking, animated and easy to customize charts, you can practically change all properties.
  • 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.

XAML

<liveCharts:LineChart Name="Chart">
    <liveCharts:LineChart.Series>
       <liveCharts:LineSeries Name="MariaSeries" Title="Maria" PrimaryValues="{Binding}" />
       <liveCharts:LineSeries Name="JohnSeries" Title="John" PrimaryValues="{Binding}" />
     </liveCharts:LineChart.Series>
</liveCharts:LineChart>

Code Behind

MariaSeries.DataContext = new ObservableCollection<double> {2, 3, 5, 7};
JohnSeries.DataContext = new ObservableCollection<double> {7, 3, 4, 1};
//you can add more series too!
Chart.Series.Add(new LineSeries
{
    Title = "Charles",
    PrimaryValues = new ObservableCollection<double> { 5, 8, 1, 9}
});

Installation

1. Install package from Nuget Install-Package LiveCharts

2. Add name space to your XAML

xmlns:liveCharts="clr-namespace:LiveCharts;assembly=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?

Try Live Charts Wiki, or cloning this repo, test project includes a lot of examples, copy and paste this link in your browser for a cloning shortcut

git-client://clone?repo=https%3A%2F%2Fgithub.com%2Fbeto-rodriguez%2FLive-Charts

More Images

live-charts's People

Contributors

beto-rodriguez avatar gregsdennis avatar ababilone avatar thefirecookie avatar

Watchers

James Cloos avatar GoUP avatar

Forkers

jackjet870

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.