Mpandroidchart: Allow drawing LineChart with 0 offset (no padding)

Created on 30 Jan 2015  路  3Comments  路  Source: PhilJay/MPAndroidChart

I'd love to have full-bleed graphs (without having to fork over a one-line change :))

mpandroidchart-margins

While we can set Chart#setOffsets(0, 0, 0, 0); it seems that BarLineChartBase enforces a minimum offset of 11dp. Perhaps I'm missing something?

Anyway, all I'm trying to say is I Love your work. Much thanks. :+1:

enhancement

Most helpful comment

your_chart.setViewPortOffsets(15f, 15f, 15f, 15f); << put here 0f if you want 0 padding.

All 3 comments

:+1:

your_chart.setViewPortOffsets(15f, 15f, 15f, 15f); << put here 0f if you want 0 padding.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Giammaofwar picture Giammaofwar  路  3Comments

manucheri picture manucheri  路  3Comments

mrZizik picture mrZizik  路  3Comments

AiTheAnswer picture AiTheAnswer  路  3Comments

thanhcly920 picture thanhcly920  路  3Comments