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 410

Summary: [TF90016564] The line width is being carried over, and I have echoed my variables ...
Product: PHP TeeChart Reporter: yeray alonso <yeray>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: major    
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2013-11-20 12:03:13 EST
The line width is being carried over, and I have echoed my variables out right before and after the line code and they are correct. This only occurs for a line set as non-solid that occurs in code after another line. The width instructed is ignored and the lower-in-code Line carries the greater width set by another higher in the code.
http://www.teechart.net/support/viewtopic.php?f=11&t=14025
    $chart->getAspect()->setView3D(false);
    $line1 = new Line($chart->getChart());
    $line1->addArray(array(10,20,30,40,50));
    $line2 = new Line($chart->getChart());
    $line2->addArray(array(20,30,40,50, 60));
    $line3 = new Line($chart->getChart());
    $line3->addArray(array(30,40,50, 60, 70));
    
    //Example1: This results in Lines 2 and 3 displaying at a width of 3 per Line 1, regardlesss instruction otherwise.
    /*$line1->getLinePen()->setStyle(DashStyle::$DASH);
    $line1->getLinePen()->setWidth(3);
    $line2->getLinePen()->setStyle(DashStyle::$DASHDOT);
    $line2->getLinePen()->setWidth(1);
    $line3->getLinePen()->setStyle(DashStyle::$DOT);
    $line3->getLinePen()->setWidth(1);/**/
    
    //Example2: This results in Line 3 displaying at a width of 3 per Line 2
    /*$line1->getLinePen()->setStyle(DashStyle::$SOLID);
    $line1->getLinePen()->setWidth(3);
    $line2->getLinePen()->setStyle(DashStyle::$DASH);
    $line2->getLinePen()->setWidth(3);
    $line3->getLinePen()->setStyle(DashStyle::$DOT);
    $line3->getLinePen()->setWidth(1);/**/
    
    //Example3: This results in Line 2 displaying at a width of 3 per Line 1
    /*$line1->getLinePen()->setStyle(DashStyle::$DOT);
    $line1->getLinePen()->setWidth(3);
    $line2->getLinePen()->setStyle(DashStyle::$DASH);
    $line2->getLinePen()->setWidth(1);
    $line3->getLinePen()->setStyle(DashStyle::$SOLID);
    $line3->getLinePen()->setWidth(2);/**/
    
    //Example4: This results in Line 1, Line 2, and Line 3 displaying as specified.
    /*$line1->getLinePen()->setStyle(DashStyle::$DOT);
    $line1->getLinePen()->setWidth(1);
    $line2->getLinePen()->setStyle(DashStyle::$DASH);
    $line2->getLinePen()->setWidth(1);
    $line3->getLinePen()->setStyle(DashStyle::$DASHDOT);
    $line3->getLinePen()->setWidth(3);/**/
             
    //Example5: This results in Line 3 displaying at a width of 3 per Line 2 even though Line 2 is set as solid.
    /*$line1->getLinePen()->setStyle(DashStyle::$DOT);
    $line1->getLinePen()->setWidth(1);
    $line2->getLinePen()->setStyle(DashStyle::$SOLID);
    $line2->getLinePen()->setWidth(3);
    $line3->getLinePen()->setStyle(DashStyle::$DASH);
    $line3->getLinePen()->setWidth(1);/**/   [created:2013-05-06T15:27:38.000+01:00 reported by:yeray@steema.com reported in version:TeeChart for PHP 2012.02 (TeeChart PHP)]