2

I need to draw a graph like below image Electronic logbook data

I know I can draw this with line chart but I need that frame. Each slot is divided into 4 another small slot just like Meter Scale. Actually, I need the background grid like this image graph or like meter scale. I have used MPAndroidChart. This library doesn't more that 25 label count and I think this library doesn't support this kind of frame. Help me to find a library for drawing this kind of graph in android.

Thanks in advance.

Android
  • 1,420
  • 4
  • 13
  • 23
Abu Yousuf
  • 5,729
  • 3
  • 31
  • 50

1 Answers1

0

You may take a look into this library, AndroidPlot You can make grids in graph using

RectF rect = plot.getGraph().getGridRect();

plot.setDomainStep(StepMode.INCREMENT_BY_PIXELS, 3);
plot.setRangeStep(StepMode.INCREMENT_BY_PIXELS, 3);
plot.getGraph().getDomainGridLinePaint().setColor(Color.RED);
plot.getGraph().getRangeGridLinePaint().setColor(Color.BLACK);

and there's also zoom functionality for graph where you should override the function and set this graph pixels accordingly and redraw it

Manoj Perumarath
  • 9,337
  • 8
  • 56
  • 77