Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 425

Summary: [TJ71016459] Having a Bar series, if you set the gradient StartColor and EndColor,...
Product: Java TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: marc
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2013-11-20 12:15:56 EST
Having a Bar series, if you set the gradient StartColor and EndColor, the StartColor is correctly used, but the series' Color is used instead of the EndColor.
Reproduced in SWT and Android
		tChart1.getAspect().setView3D(false);
		tChart1.getLegend().setVisible(false);
		Bar bar = new Bar(tChart1.getChart());
		bar.fillSampleValues();
		//bar.setColorEach(true);
		bar.setBarStyle(BarStyle.RECTGRADIENT);
		bar.getBrush().getGradient().setDirection(GradientDirection.VERTICAL);
		bar.getBrush().getGradient().setUseMiddle(false);
		bar.getBrush().getGradient().setStartColor(Color.white);
		bar.getBrush().getGradient().setEndColor(Color.red);
		// WORKAROUND: Setting the color yields a valid gradient.
		//bar.setColor(Color.purple);/**/
http://stackoverflow.com/questions/13927331/bar-setbarstylebarstyle-rectgradient-does-not-work-as-intended [created:2012-12-19T11:10:26.000+01:00 reported by:yeray@steema.com reported in version:3.2012.0808 (TeeChart Java)]
Comment 1 marc meumann 2013-12-13 10:26:54 EST
Now uses Clone Gradient as workspace for calculated canvas rendering colours. Active in Dec 2013 build.