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

Summary: [TJ71016043] The add method that accepts 2 arrays of doubles enters into a neveren...
Product: Java TeeChart Reporter: yeray alonso <yeray>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: major CC: yeray
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

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.