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 1113 - The bar series stacked property doesn't work with negative values
Summary: The bar series stacked property doesn't work with negative values
Status: CONFIRMED
Alias: None
Product: HTML5 JavaScript TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: PC Windows
: High normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-03 10:50 EST by sandra pazos
Modified: 2015-02-03 10:50 EST (History)
0 users

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 sandra pazos 2015-02-03 10:50:24 EST
The bar series stacked property doesn't work in correct way when there are negative values. Basically, the negative values in stacked bar series end up as positive values. The code below reproduces the problem: 
function draw() {
  Chart1=new Tee.Chart("canvas");
  Chart1.addSeries(new Tee.Bar([5,-3,2,-7,1]) );
  Chart1.addSeries(new Tee.Bar([4,4,-8,2,-9]) ); 
  Chart1.title.text="TeeChart for JavaScript";
  Chart1.title.format.font.style="18px Verdana";
  Chart1.series.items[0].stacked=true; 
  Chart1.series.items[1].stacked=true; 
  Chart1.draw();
  Chart1.title.format.font.gradient.visible=true;
  Chart1.draw();
}