Charts in Libchart

2

I'm developing a presentation in Libchart. See below:

$dataSet->addPoint(new Point("Ensino Fundamental","16%"));
$dataSet->addPoint(new Point("Ensino Médio/Técnico","52%"));
$dataSet->addPoint(new Point("Graduação", "41%"));
$dataSet->addPoint(new Point("Pós/Especialização","2%"));
$dataSet->addPoint(new Point("Mestrado", "0%"));
$dataSet->addPoint(new Point("Doutorado", "0%"));

So far so good, but when I change 16% by 6% gives error. See below:

6% is wrong:

With16%right:

    
asked by anonymous 26.05.2015 / 22:34

1 answer

2

I managed to resolve. Just change the 6% by 06%. All numbers less than or equal to 9, have to put the 0 before. Ex.:

$dataSet->addPoint(new Point("Ensino Fundamental","06%"));
    
28.05.2015 / 14:09