RHS.Dev
RHS.Dev

Reputation: 452

How to stretch XAxis in MPAndroid chart to the edge of screen?

Axis below Chart

I want to stretch bottom axis to match width of screen in MPAndroid chart. Is there any way to do it?

Glasswire

And how GlassWire menages to build beautiful graph like this?

Upvotes: 0

Views: 305

Answers (1)

S T
S T

Reputation: 1134

  1. remove offset in chart.

    chart.setViewPortOffsets(0f, 0f, 0f, 0f);
    
  2. GlassWire

have to check what library used for GlassWire. I try to see in app, i can't see open source from app. or you have to make custom view for MPChart

Upvotes: 1

Related Questions