Giter VIP home page Giter VIP logo

descharts's Introduction

descharts name logo

What is desCharts?
yet another android charting library

Why the name desCharts?
a tribute to René Descartes, father of analytical geometry

Where is the manual?
go to the desCharts wiki pages

Show me the pics!

XY chart Styled XY chart
XY chart Styled XY chart
Line chart Stacked Line chart
Line chart Stacked Line chart
Bar chart Stacked Bar chart
Bar chart Stacked Bar chart

Show me the code!!

    <it.bradipao.lib.descharts.StyledXyChartView
        android:id="@+id/chart"
        android:layout_width="match_parent"
        android:layout_height="200dp" />
      // create FIRST serie
      StyledChartPointSerie rr = new StyledChartPointSerie(2);
      rr.addPoint(new StyledChartPoint(-90, 99,0xff99cc00,0xffeeeeee));
      rr.addPoint(new StyledChartPoint(-49, 80,0xffff4444,0xffffcccc));
      rr.addPoint(new StyledChartPoint( -5,180,0xff99cc00,0xffeeff99));
      rr.addPoint(new StyledChartPoint( 17, 99,0xffffbb33,0xffffee99));
      rr.addPoint(new StyledChartPoint( 54, 80,0xff33bbee,0xffeeeeee));
      rr.addPoint(new StyledChartPoint(125,120,0xff99cc00,0xffeeeeee));
      rr.addPoint(new StyledChartPoint(158, 20,0xffff4444,0xffeeeeee));
      rr.addPoint(new StyledChartPoint(209, 50,0xffff4444,0xffffcccc));
      rr.addPoint(new StyledChartPoint(297,109,0xff33bbee,0xff99ddff));
      
      // create SECOND serie
      StyledChartPointSerie gg = new StyledChartPointSerie(2);
      gg.addPoint(new StyledChartPoint( 17,-10,Color.BLACK,Color.TRANSPARENT,0xffff8800,5));
      gg.addPoint(new StyledChartPoint( 54, 20,Color.BLACK,Color.TRANSPARENT,0xffcc0000,5));
      gg.addPoint(new StyledChartPoint(125,-50,Color.BLACK,Color.TRANSPARENT,0xff669900,5));
      gg.addPoint(new StyledChartPoint(158, 89,Color.BLACK,Color.TRANSPARENT,Color.GRAY,8));
      gg.addPoint(new StyledChartPoint(209, 20,Color.BLACK,Color.TRANSPARENT,Color.GRAY,4));
      gg.addPoint(new StyledChartPoint(217,Float.NaN,Color.BLACK,Color.TRANSPARENT,Color.GRAY,4));
      gg.addPoint(new StyledChartPoint(250, 99,Color.BLACK,Color.TRANSPARENT,Color.GRAY,4));
      gg.addPoint(new StyledChartPoint(261, 75,Color.BLACK,Color.TRANSPARENT,Color.GRAY,4));
      gg.addPoint(new StyledChartPoint(295, 33,Color.BLACK,Color.TRANSPARENT,Color.GRAY,4));
      
      // add lines to chart
      vChart.addSerie(rr);
      vChart.addSerie(gg);

Credits and Acknowledgements

Author : Sid Bradipao (https://plus.google.com/+SidBradipao)

Thanks to : Daniel Nadeau, I learned how to create a custom chart view studying his HoloGraphLibrary, a wonderful android charting library, then I decided to write a library from scratch... just for fun. :)

License

Copyright 2014 Bradipao ([email protected])
https://plus.google.com/+SidBradipao

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

descharts's People

Contributors

bradipao avatar

Watchers

Alps Tsui 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.