yunjianwu / achartengine

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

Vertical grid lines DISAPPEAR when using renderer.setXLabels(0); #347

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. renderer.setXLabels(0);
2. Then set whatever you want (i.e.: month names)

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

The X labels should be cleared and replaced by new ones, but LEAVING GRID LINES 
where they are expected to be.
Instead, VERTICAL grid lines DISAPPEAR.

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

        renderer.setXLabelsAngle(-45);
        renderer.setXLabels(0);

        String[] Months =
        {
            "jan", "feb", "mar", "apr", "may", "jun",
            "jul", "aug", "sep", "oct", "nov", "dec"
        };
        for(int i = 0; i < 12; i++)
        {
            renderer.addXTextLabel((i + 1), Months[i]);
        }

What version of the product binary library are you using?

1.1.0

Please provide any additional information below.

It's almost done... I just miss those vertical lines.

I can't use a TimeChart, because I need to COMBINE it with 3 LineCharts...
But, because of how getCombinedXYChartView is actually implemented, the month 
names would require the same effort... with the same results!!

SO, better use 4 LineCharts instead.

Original issue reported on code.google.com by luca.cri...@gmail.com on 9 Sep 2013 at 8:53

GoogleCodeExporter commented 9 years ago
renderer.setShowCustomTextGridX(true);

Original comment by dandrome...@gmail.com on 31 Oct 2013 at 8:48