AXGraphView
AXGraphView creates zoomable and scrollable graphs.
Screenshot


Preview (GIF)

Installation
AXGraphView is available in the JCenter, so you just need to add it as a dependency (Module gradle)
Gradle
Maven
Quick Start
- Add view to your layout :
- Set Graph Options
- Add Graph Formula
Or simply use Graph Formula Parser :
FormulaParser
Currently i'm using this Eval Method for parsing a formula in sample of AXGraphView, you can also use other libraries to parse the formula and draw it in AXGraphView.
Graph Axis
- Change Axis Position :
You can change the default axis position in options.
- Disable drawing Axis and grid lines :
- Change axis color :
Domain of Graph
You can limit domain of the Graph.
Custom Points
You can customize an Specific Point in Graph.
Transform
You can move(x&y) or change scale(x&y) of the function on graph!
MultiFormula
You can also draw multi functions together.
Output :

Custom Draw
You can draw custom shapes using AXGraphCanvas (by graph x,y) :
CircleGraphFormula (click to expand)
Famous Graphs
Name | Formula | AXGraphView |
---|---|---|
Quadratic | x^2 | ![]() |
Cubic | x^3 | ![]() |
Quadratic And Cubic | x^2 , x^3 | ![]() |
Homographic | 1/x | ![]() |
Square | √x | ![]() |
Cubic Root | 3√x | ![]() |
Cubic Root | 3√(x^2) | ![]() |
Bracket | [x] | ![]() |
Absolute Value | |x| | ![]() |
|x+1| - |x-1| | |x+1| - |x-1| | ![]() |
Exponential | 2^x | ![]() |
Logarithm | log(x) | ![]() |
Sine | sin(x) | ![]() |
Cosine | cos(x) | ![]() |
Sine And Cosine | sin(x) , cos(x) | ![]() |
Tangent | tan(x) | ![]() |
Cotangent | cot(x) | ![]() |
Tangent And Cotangent | tan(x) , cot(x) | ![]() |
Multi Formula Graphs
Name | AXGraphView |
---|---|
Heart | ![]() |
Captain America | ![]() |
Superman | ![]() |
Batman | ![]() |
The Flash | ![]() |
Wonder Woman | ![]() |
Author
- Amir Hossein Aghajari