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

thanhcly920 picture thanhcly920  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments

DarkHelmet67 picture DarkHelmet67  路  3Comments

JungYongWook picture JungYongWook  路  3Comments

vishvendu picture vishvendu  路  3Comments