|
Version 5.0 issue with area charts |
Posted by Dmitriy on Apr-08-2010 17:46 |
|
Hello.
I've just upgraded from version 4.1 to 5.0 and got an issue with XY area charts. It occurs if first value in dataset is NoValue and we use transparent color for gaps. In this case ChartDirector draws dark lines for each layer( see picture ).
Minimal code to reproduce it here (c++):
#include <vector>
#include <algorithm>
#include "chartdir.h"
int main()
{
XYChart *c = new XYChart(450, 350);
c->setPlotArea(70, 70, 300, 200);
std::vector<double> data( 10 );
data[ 0 ] = NoValue;
std::generate( data.begin() + 1, data.end(), rand );
c->addAreaLayer( DoubleArray( &data[0], data.size() ) )->setGapColor( Transparent );
c->makeChart("simplearea.png");
delete c;
return 0;
}
Is it a bug or a feature? =) If second how can I switch it off?
Thanks.
|
Re: Version 5.0 issue with area charts |
Posted by Peter Kwan on Apr-09-2010 01:55 |
|
Hi Dmitriy,
Thanks for informing us of this problem. I confirm it is a bug in ChartDirector for C++.
To solve the problem, I would need to issue a patch to you. Would you mind to clarify which operating system edition of ChartDirector you are using (Win32, Win64, Linux(i386), Linux(x86_64), FreeBSD(i386), FreeBSD(AMD64), Solaris(Sparc), Solaris(x86), Mac OS X)?
Regards
Peter Kwan |
Re: Version 5.0 issue with area charts |
Posted by Dmitriy on Apr-09-2010 16:12 |
|
Hi Peter,
I'm using Win32 version of ChartDirector.
Thanks. |
Re: Version 5.0 issue with area charts |
Posted by Dmitriy on Apr-12-2010 21:02 |
|
Hi Peter,
Thanks for patch. Now it's working fine. |
|