Giter Club home page Giter Club logo

graph-kit's People

Contributors

jsuyash1514 avatar karthikriyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

graph-kit's Issues

Create a test-app

Use this library to create a user friendly test app implementing all the features of version v1

Add horizontal BarGraphs

The aim of this issue is to add horizontal bar graphs, where the Bars rest on the y axis, and the Values will be on the x axis.

App crashes when there are no data points

When a Bar Graph is defined in XML and if there are no points defined in onCreate() (i.e. barGraph.setPoints(points); is not set), it causes the app to be crashed without any logcat information. Hence, there is no possibility to define a plot in a layout initially and add the points dynamically through the app in a later stage.

Bar Graph is not updating (Graph is not dynamic)

Hey Suyash,

If i try to change bar graph value second time then it's not updating, Initially it's creating graph and perfectly showing graph but when i try to update or change the value then it's not updating. For ex.

Initial Graph

BarGraph barGraph = findViewById(R.id.barGraph);
ArrayList<DataPoint> points = new ArrayList<>();

points.add(new DataPoint("Jan", 10, getResources().getColor(R.color.brown)));
points.add(new DataPoint("Feb", 5, getResources().getColor(R.color.brown)));

barGraph.setPoints(points);

While Updating Graph on click of button (which is not working)

BarGraph barGraph = findViewById(R.id.barGraph);
ArrayList<DataPoint> points = new ArrayList<>();

points.add(new DataPoint("Jan", 0, getResources().getColor(R.color.brown)));
points.add(new DataPoint("Feb", 3, getResources().getColor(R.color.brown)));

barGraph.setPoints(points);

Assign this issue to me so i can create pull request as i already fixed this issue

Make Readme

Create a readme explaining all the features of v-1

Plot Line graph for all 4 quadrants.

Currently Line Graph supports only the first quadrant. We need to plot all the quadrants.

Approach would be something like this:

  • Based on the range of x and y, and the graph width and graph height calculate the location of the new origin
  • Shift each of the scaled points according to the new origin
  • For calculating the markers and their positions, a crude approach would be to begin from the origin and move on both opposite sides and set markers at intervals of the precalculated increments, inc1 and inc2. A better approach needs to be figured out.

Failed to resolve: com.mdgiitr.suyash:graphkit:0.9.0

I have added the dependency to the app but it always shows this error:

Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.mdgiitr.suyash:graphkit:0.9.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/mdgiitr/suyash/graphkit/0.9.0/graphkit-0.9.0.pom
- https://repo.maven.apache.org/maven2/com/mdgiitr/suyash/graphkit/0.9.0/graphkit-0.9.0.pom
Required by:
project :app

Possible solution:

Custom View and its dimensions from xml file

  • Return correct dimensions from xml file(Done)
  • Make line graph and bar graph scrollable.
  • Improvise the font size to make scales more visible.(Done)
  • Solve the dimension bug for pie chart. (Done)

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.