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.
Currently Line Graph supports only the first quadrant. We need to plot all the quadrants.
Approach would be something like this: