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 - MultiLine labels property of axes throws a fatal error
Summary: MultiLine labels property of axes throws a fatal error
Status: RESOLVED FIXED
Alias: None
Product: PHP TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-02 04:58 EST by sandra pazos
Modified: 2015-09-15 04:29 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 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");