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 1069

Summary: MultiLine labels property of axes throws a fatal error
Product: PHP TeeChart Reporter: sandra pazos <sandra>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: pep
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description sandra pazos 2015-01-02 04:58:28 EST
The MultiLine labels property of axes throws a fatal error when you set this to true. Here's the error: Fatal error: Call to a member function indexOf() on a non-object in E:\Program Files (x86)\Steema Software\TeeChartPHP2014.07.31.004_with_Sources\sources\axis\AxisLabels.php on line 384 
The code below reproduces the problem: 
…
$chart1 = new TChart(1200,400);
$chart1->getAspect()->setView3D(false);
$FastLine = new FastLine($chart1->getChart());
$chart1->addSeries($FastLine);
$FastLine->FillSampleValues();
$chart1->getAxes()->getBottom()->getLabels()->setMultiLine(true);
…
Comment 1 pep jorge 2015-09-15 04:29:57 EDT
Fixed, in order to use multiline axis labels the user has to specify by \n where the line break is. i.e. :
$arrow->AddXYText(0,10,"Hello\n world");