wangyao5 / achartengine

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

Timeseries IndexOutOfBoundsException when using BOUNDS_BELOW #414

Open GoogleCodeExporter opened 9 years ago

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

Create an XYSeries Renderer, add a FillOutsideLine with the type "BOUNDS_BELOW" 
and with the dataset below, and the library will cause an 
IndexOutOfBoundsException when the view rendered: 
https://gist.github.com/johnhamelink/03bd82b5e9c4bc02a27b

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

https://gist.github.com/johnhamelink/13c615d50e0a522ad7a5
https://gist.github.com/johnhamelink/c4408e5ec668ac68b437

> What version of the product binary library are you using?

compile 'org.achartengine:achartengine:1.1.+'

> Additional Information

Use the following data as input:

        Date[] x = {
                new GregorianCalendar(2013, 9, 1).getTime(),
                new GregorianCalendar(2013, 10, 1).getTime(),
                new GregorianCalendar(2013, 11, 1).getTime(),
                new GregorianCalendar(2013, 12, 1).getTime(),
                new GregorianCalendar(2014, 1, 1).getTime(),
                new GregorianCalendar(2014, 2, 1).getTime(),
                new GregorianCalendar(2014, 3, 1).getTime(),
                new GregorianCalendar(2014, 4, 1).getTime(),
                new GregorianCalendar(2014, 5, 1).getTime(),
                new GregorianCalendar(2014, 6, 1).getTime(),
        };
        int[] y = { 30, 34, 45, 57, 77, 89, 100, 111, 123, 145, 200 };

Original issue reported on code.google.com by j...@johnhamelink.com on 15 Jun 2014 at 1:29