wangyao5 / achartengine

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

How to increase width of bars in Bar-chart (Random value generator graph) #145

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I tried to increase the width using renderer.setBarSpacing(10); but its not 
working. 
2.
3.

What is the expected output? What do you see instead?
Instead I see bars which are much narrow like thin lines.

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

public XYMultipleSeriesRenderer getBarDemoRenderer() {
         XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
        renderer.setAxisTitleTextSize(16);
        renderer.setChartTitleTextSize(20);
        renderer.setLabelsTextSize(15);
        renderer.setLegendTextSize(15);
        renderer.setBackgroundColor(Color.WHITE);
        renderer.setShowGrid(true);
        renderer.setGridColor(Color.WHITE);
        renderer.setBarSpacing(10);
        renderer.setMargins(new int[] { 20, 30, 15, 0 });
        SimpleSeriesRenderer r = new SimpleSeriesRenderer();
        r.setColor(Color.BLUE);
        renderer.addSeriesRenderer(r);
        return renderer;

}
What version of the product binary library are you using?
0.7.0 version of AChartEngine

Please provide any additional information below.
Please also suggest how can I change the background around axis but not the 
chart area. I've already used renderer.setBackgroundColor(Color.WHITE);
But I want to remove additional black color around the graph.

Original issue reported on code.google.com by yunuslun...@gmail.com on 18 Oct 2011 at 12:38

GoogleCodeExporter commented 9 years ago
renderer.setBarSpacing(0.5f); or a smaller value even negative.
For the second issue: renderer.setApplyBackgroundColor(true);

Original comment by dandrome...@gmail.com on 10 Dec 2011 at 3:15