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 - [TJ71016459] Having a Bar series, if you set the gradient StartColor and EndColor,...
Summary: [TJ71016459] Having a Bar series, if you set the gradient StartColor and EndC...
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-19 11:10 EST by yeray alonso
Modified: 2013-12-13 10:26 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.