0

Now i'm using LineGraphView like,

    GraphView graphView = new LineGraphView(this.getActivity(), "GraphView");

this draw line Grid .. but i want dashed line for graphview grid.. i am using jjoe64 graph android that is Graphview-3.1.3.jar

there is any method for that.. thanks in advance

Sathish Kumar J
  • 4,280
  • 1
  • 20
  • 48

1 Answers1

3

you could override the LineGraphView drawSeries and change the paint object.

Something like that:

GraphView graphView = new LineGraphView(this.getActivity(), "GraphView") {
   @Override
   public void drawSeries(Canvas canvas, GraphViewDataInterface[] values, float graphwidth, float graphheight, float border, double minX, double minY, double diffX, double diffY, float horstart, GraphViewSeriesStyle style) {
      paint.setStyle(Style.STROKE);
      paint.setPathEffect(new DashPathEffect(new float[] {10,20}, 0));
      super.drawSeries(...);
   }
};
appsthatmatter
  • 6,347
  • 3
  • 36
  • 40
  • can you answer this -http://stackoverflow.com/questions/31260218/make-grid-lines-invisible-android-graphview – abh22ishek Apr 28 '16 at 09:05