wangyao5 / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

LineChart set Margin, maybe bug #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. genereate full screen linechart

Please provide a source code snippet that we can use to replicate the issue.

xml:

<LinearLayout
    android:id="@+id/chart"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:gravity="center_vertical" >
</LinearLayout>

ChartSettings:

mRenderer.setApplyBackgroundColor(true);        mRenderer.setChartTitle("");
mRenderer.setShowLegend(false);
mRenderer.setFitLegend(true);
mRenderer.setZoomEnabled(false, false);
        mRenderer.setMarginsColor(context.getResources().getColor(R.color.red));
mRenderer.setMargins(new int[] { 0, 10, 0, 35 });

What is the expected output? What do you see instead?

The problem :

Bottom margin "0" and hide Legend but the margin not "0". In picture:

What version of the product binary library are you using?

achartengine-0.7.0

Original issue reported on code.google.com by tuskesz on 22 Feb 2012 at 1:40

Attachments:

GoogleCodeExporter commented 9 years ago
mRenderer.setFitLegend(true); is useless here
Also, do the following:
mRenderer.setShowAxes(false);
mRenderer.setShowLabels(false);

Original comment by dandrome...@gmail.com on 31 Mar 2012 at 1:37