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 437 - [TJ71016043] The add method that accepts 2 arrays of doubles enters into a neveren...
Summary: [TJ71016043] The add method that accepts 2 arrays of doubles enters into a ne...
Status: RESOLVED WORKSFORME
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: High major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-20 10:09 EST by yeray alonso
Modified: 2014-05-15 10:41 EDT (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:16:37 EST
The add method that accepts 2 arrays of doubles enters into a neverending loop!!!
	private static double[] xValues = { -2.3, -1.0, 0.3, 1.4, 2.7 };
	private static double[] yValues = { 10.4, 3.4, 5.4, -3.2, 7.6 };
	private static void initializeChart() {
		// ThemesList.applyTheme(tChart1.getChart(), 1);
		int addMode = 2; // =2 gives error, =1 flows
		
		Line series = new Line(tChart1.getChart());
		// Populate Series (2 alternative ways offered here)
		if (addMode == 1) { // one-by-one
			for (int i = 0; i < xValues.length; i++) {
				series.add(xValues[i], yValues[i]);
			}
		} else if (addMode == 2) { // arrays
			series.add(xValues, yValues);
		}
	}
Customer:
seb@sebservices.no [created:2012-02-20T10:09:40.000+01:00 reported by:yeray@steema.com reported in version:3.2012.0202 (TeeChart Java)]
Comment 1 yeray alonso 2014-05-15 10:41:53 EDT
This works fine with the actual version.