Oddities in building area charts


#1

I’ve created an area chart that is intended to show values above and below zero over time. In general, this works. However, I am often seeing an odd artifact in which an area is being created that is not actually being plotted by my code. It’s as if, after plotting all of my specified points, an additional point is being plotted randomly.  Generally this point reaches back to 0,0, but not in all cases.  In addition, this invalid area has a gradient on it, while the areas that I’m intentionally plotting do not.  Unfortunately I don’t have an available URL for the screenshot of what I’m seeing at the moment, but if someone can reach out to me with some contact information, I can email it along. I’ve included logging statements that represent all of the data points that are being plotted within my dataPointAtIndex datasource method. I think you will notice that there is nothing extraordinary in the x,y values. I'm at a loss.

2013-01-28 02:23:56.714 ChartTest[2272:c07] Data Point Index: 0  x: 0  y: -2.530001

2013-01-28 02:23:56.714 ChartTest[2272:c07] Data Point Index: 1  x: 1  y: 18.469999

2013-01-28 02:23:56.714 ChartTest[2272:c07] Data Point Index: 2  x: 2  y: 12.469999

2013-01-28 02:23:56.715 ChartTest[2272:c07] Data Point Index: 3  x: 3  y: 12.469999

2013-01-28 02:23:56.715 ChartTest[2272:c07] Data Point Index: 4  x: 4  y: -13.530001

2013-01-28 02:23:56.715 ChartTest[2272:c07] Data Point Index: 5  x: 5  y: 2.469999

2013-01-28 02:23:56.715 ChartTest[2272:c07] Data Point Index: 6  x: 6  y: -12.530001

2013-01-28 02:23:56.715 ChartTest[2272:c07] Data Point Index: 7  x: 7  y: -11.530001

2013-01-28 02:23:56.716 ChartTest[2272:c07] Data Point Index: 8  x: 8  y: -14.530001

2013-01-28 02:23:56.716 ChartTest[2272:c07] Data Point Index: 9  x: 9  y: 19.469999

2013-01-28 02:23:56.716 ChartTest[2272:c07] Data Point Index: 10  x: 10  y: -11.530001

2013-01-28 02:23:56.716 ChartTest[2272:c07] Data Point Index: 11  x: 11  y: 1.469999

2013-01-28 02:23:56.717 ChartTest[2272:c07] Data Point Index: 12  x: 12  y: 12.469999

2013-01-28 02:23:56.717 ChartTest[2272:c07] Data Point Index: 13  x: 13  y: 13.469999

2013-01-28 02:23:56.717 ChartTest[2272:c07] Data Point Index: 14  x: 14  y: -0.530001

2013-01-28 02:23:56.717 ChartTest[2272:c07] Data Point Index: 15  x: 15  y: -24.530001

2013-01-28 02:23:56.718 ChartTest[2272:c07] Data Point Index: 16  x: 16  y: 19.469999

2013-01-28 02:23:56.718 ChartTest[2272:c07] Data Point Index: 17  x: 17  y: 11.469999

2013-01-28 02:23:56.718 ChartTest[2272:c07] Data Point Index: 18  x: 18  y: 0.469999

2013-01-28 02:23:56.718 ChartTest[2272:c07] Data Point Index: 19  x: 19  y: 1.469999

2013-01-28 02:23:56.719 ChartTest[2272:c07] Data Point Index: 20  x: 20  y: 13.469999

2013-01-28 02:23:56.719 ChartTest[2272:c07] Data Point Index: 21  x: 21  y: 22.469999

2013-01-28 02:23:56.719 ChartTest[2272:c07] Data Point Index: 22  x: 22  y: -25.530001

2013-01-28 02:23:56.719 ChartTest[2272:c07] Data Point Index: 23  x: 23  y: -15.530001

2013-01-28 02:23:56.720 ChartTest[2272:c07] Data Point Index: 24  x: 24  y: 18.469999

2013-01-28 02:23:56.720 ChartTest[2272:c07] Data Point Index: 25  x: 25  y: 3.469999

2013-01-28 02:23:56.720 ChartTest[2272:c07] Data Point Index: 26  x: 26  y: -18.530001

2013-01-28 02:23:56.721 ChartTest[2272:c07] Data Point Index: 27  x: 27  y: -18.530001

2013-01-28 02:23:56.721 ChartTest[2272:c07] Data Point Index: 28  x: 28  y: 6.469999

2013-01-28 02:23:56.721 ChartTest[2272:c07] Data Point Index: 29  x: 29  y: 21.469999

2013-01-28 02:23:56.721 ChartTest[2272:c07] Data Point Index: 30  x: 30  y: -11.530001

2013-01-28 02:23:56.722 ChartTest[2272:c07] Data Point Index: 31  x: 31  y: 6.469999

2013-01-28 02:23:56.722 ChartTest[2272:c07] Data Point Index: 32  x: 32  y: 23.469999

2013-01-28 02:23:56.722 ChartTest[2272:c07] Data Point Index: 33  x: 33  y: -21.530001

2013-01-28 02:23:56.722 ChartTest[2272:c07] Data Point Index: 34  x: 34  y: 3.469999

2013-01-28 02:23:56.723 ChartTest[2272:c07] Data Point Index: 35  x: 35  y: 10.469999

2013-01-28 02:23:56.723 ChartTest[2272:c07] Data Point Index: 36  x: 36  y: -8.530001

2013-01-28 02:23:56.723 ChartTest[2272:c07] Data Point Index: 37  x: 37  y: 14.469999

2013-01-28 02:23:56.723 ChartTest[2272:c07] Data Point Index: 38  x: 38  y: -22.530001

2013-01-28 02:23:56.724 ChartTest[2272:c07] Data Point Index: 39  x: 39  y: 10.469999

2013-01-28 02:23:56.724 ChartTest[2272:c07] Data Point Index: 40  x: 40  y: -25.530001

2013-01-28 02:23:56.724 ChartTest[2272:c07] Data Point Index: 41  x: 41  y: 8.469999

2013-01-28 02:23:56.724 ChartTest[2272:c07] Data Point Index: 42  x: 42  y: -1.530001

2013-01-28 02:23:56.725 ChartTest[2272:c07] Data Point Index: 43  x: 43  y: 18.469999

2013-01-28 02:23:56.725 ChartTest[2272:c07] Data Point Index: 44  x: 44  y: -1.530001

2013-01-28 02:23:56.725 ChartTest[2272:c07] Data Point Index: 45  x: 45  y: 1.469999

2013-01-28 02:23:56.726 ChartTest[2272:c07] Data Point Index: 46  x: 46  y: 9.469999

2013-01-28 02:23:56.726 ChartTest[2272:c07] Data Point Index: 47  x: 47  y: -13.530001

2013-01-28 02:23:56.726 ChartTest[2272:c07] Data Point Index: 48  x: 48  y: 23.469999

2013-01-28 02:23:56.726 ChartTest[2272:c07] Data Point Index: 49  x: 49  y: 22.469999

2013-01-28 02:23:56.727 ChartTest[2272:c07] Data Point Index: 50  x: 50  y: -22.530001

2013-01-28 02:23:56.727 ChartTest[2272:c07] Data Point Index: 51  x: 51  y: -0.530001

2013-01-28 02:23:56.727 ChartTest[2272:c07] Data Point Index: 52  x: 52  y: -1.530001

2013-01-28 02:23:56.728 ChartTest[2272:c07] Data Point Index: 53  x: 53  y: -23.530001

2013-01-28 02:23:56.728 ChartTest[2272:c07] Data Point Index: 54  x: 54  y: 4.469999

2013-01-28 02:23:56.728 ChartTest[2272:c07] Data Point Index: 55  x: 55  y: -18.530001

2013-01-28 02:23:56.728 ChartTest[2272:c07] Data Point Index: 56  x: 56  y: -12.530001

2013-01-28 02:23:56.729 ChartTest[2272:c07] Data Point Index: 57  x: 57  y: 14.469999

2013-01-28 02:23:56.729 ChartTest[2272:c07] Data Point Index: 58  x: 58  y: 22.469999

2013-01-28 02:23:56.729 ChartTest[2272:c07] Data Point Index: 59  x: 59  y: 12.469999

2013-01-28 02:23:56.729 ChartTest[2272:c07] Data Point Index: 60  x: 60  y: 13.469999

2013-01-28 02:23:56.730 ChartTest[2272:c07] Data Point Index: 61  x: 61  y: 7.469999

2013-01-28 02:23:56.730 ChartTest[2272:c07] Data Point Index: 62  x: 62  y: -16.530001

2013-01-28 02:23:56.730 ChartTest[2272:c07] Data Point Index: 63  x: 63  y: -15.530001

2013-01-28 02:23:56.730 ChartTest[2272:c07] Data Point Index: 64  x: 64  y: 22.469999

2013-01-28 02:23:56.731 ChartTest[2272:c07] Data Point Index: 65  x: 65  y: 17.469999

2013-01-28 02:23:56.731 ChartTest[2272:c07] Data Point Index: 66  x: 66  y: -16.530001

2013-01-28 02:23:56.731 ChartTest[2272:c07] Data Point Index: 67  x: 67  y: -11.530001

2013-01-28 02:23:56.731 ChartTest[2272:c07] Data Point Index: 68  x: 68  y: 17.469999

2013-01-28 02:23:56.731 ChartTest[2272:c07] Data Point Index: 69  x: 69  y: -25.530001

2013-01-28 02:23:56.732 ChartTest[2272:c07] Data Point Index: 70  x: 70  y: 12.469999

2013-01-28 02:23:56.732 ChartTest[2272:c07] Data Point Index: 71  x: 71  y: -8.530001

2013-01-28 02:23:56.732 ChartTest[2272:c07] Data Point Index: 72  x: 72  y: 3.469999

2013-01-28 02:23:56.733 ChartTest[2272:c07] Data Point Index: 73  x: 73  y: -7.530001

2013-01-28 02:23:56.733 ChartTest[2272:c07] Data Point Index: 74  x: 74  y: -0.530001

2013-01-28 02:23:56.734 ChartTest[2272:c07] Data Point Index: 75  x: 75  y: -5.530001

2013-01-28 02:23:56.734 ChartTest[2272:c07] Data Point Index: 76  x: 76  y: -16.530001

2013-01-28 02:23:56.734 ChartTest[2272:c07] Data Point Index: 77  x: 77  y: -5.530001

2013-01-28 02:23:56.734 ChartTest[2272:c07] Data Point Index: 78  x: 78  y: 5.469999

2013-01-28 02:23:56.735 ChartTest[2272:c07] Data Point Index: 79  x: 79  y: -7.530001

2013-01-28 02:23:56.735 ChartTest[2272:c07] Data Point Index: 80  x: 80  y: -23.530001

2013-01-28 02:23:56.735 ChartTest[2272:c07] Data Point Index: 81  x: 81  y: -13.530001

2013-01-28 02:23:56.736 ChartTest[2272:c07] Data Point Index: 82  x: 82  y: 16.469999

2013-01-28 02:23:56.736 ChartTest[2272:c07] Data Point Index: 83  x: 83  y: -12.530001

2013-01-28 02:23:56.736 ChartTest[2272:c07] Data Point Index: 84  x: 84  y: 3.469999

2013-01-28 02:23:56.736 ChartTest[2272:c07] Data Point Index: 85  x: 85  y: 2.469999

2013-01-28 02:23:56.737 ChartTest[2272:c07] Data Point Index: 86  x: 86  y: 0.469999

2013-01-28 02:23:56.737 ChartTest[2272:c07] Data Point Index: 87  x: 87  y: 12.469999

2013-01-28 02:23:56.737 ChartTest[2272:c07] Data Point Index: 88  x: 88  y: -18.530001

2013-01-28 02:23:56.737 ChartTest[2272:c07] Data Point Index: 89  x: 89  y: -16.530001

2013-01-28 02:23:56.738 ChartTest[2272:c07] Data Point Index: 90  x: 90  y: -20.530001

2013-01-28 02:23:56.738 ChartTest[2272:c07] Data Point Index: 91  x: 91  y: 15.469999

2013-01-28 02:23:56.738 ChartTest[2272:c07] Data Point Index: 92  x: 92  y: -7.530001

2013-01-28 02:23:56.738 ChartTest[2272:c07] Data Point Index: 93  x: 93  y: 16.469999

2013-01-28 02:23:56.739 ChartTest[2272:c07] Data Point Index: 94  x: 94  y: -9.530001

2013-01-28 02:23:56.739 ChartTest[2272:c07] Data Point Index: 95  x: 95  y: 15.469999

2013-01-28 02:23:56.744 ChartTest[2272:c07] Data Point Index: 96  x: 96  y: -23.530001

2013-01-28 02:23:56.744 ChartTest[2272:c07] Data Point Index: 97  x: 97  y: 0.469999

2013-01-28 02:23:56.744 ChartTest[2272:c07] Data Point Index: 98  x: 98  y: -8.530001

2013-01-28 02:23:56.745 ChartTest[2272:c07] Data Point Index: 99  x: 99  y: -23.530001


#2

Hi Robert,

That does sound a litlte odd! If you can send me in any more info you have - a screenshot would be awesome - to info@shinobicontrols.com then I can take a look for you  :grin:

Cheers,

Simon