Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Can I Insert Chart In Tempate ? #1700

Closed
GodShuning opened this issue Aug 22, 2019 · 2 comments
Closed

How Can I Insert Chart In Tempate ? #1700

GodShuning opened this issue Aug 22, 2019 · 2 comments

Comments

@GodShuning
Copy link

###it is not useful

$asset_industry_distribute_chart = new Chart("pie",["制造业","工业","金融业","农业"],[12,23,45,23]);
$asset_industry_distribute_chart->getStyle()->setWidth(Converter::inchToEmu(2.5))->setHeight(Converter::inchToEmu(2));
$asset_industry_distribute_chart->getStyle()->setShowGridX(false);
$asset_industry_distribute_chart->getStyle()->setShowGridY(false);
$asset_industry_distribute_chart->getStyle()->setShowAxisLabels(false);
$templateProcessor->setComplexBlock('a', $asset_industry_distribute_chart);

@0b10011
Copy link
Contributor

0b10011 commented Aug 28, 2019

Chart.php is a good place to start, and to add it to a document, you can use addChart() on any AbstractContainer.

@KingComp
Copy link

...and Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants