Article Preview
Buy Now
FEATURE
PDF Pie Charts
Adding Xojo Charts to Your PDFs
Issue: 20.4 (July/August 2022)
Author: Stefanie Juchmes
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 20,176
Starting Page Number: 36
Article Number: 20404
Resource File(s):
project20404.zip Updated: 2022-06-30 18:36:03
Related Link(s): None
Excerpt of article text...
In this article we combine the power of the MBS ChartDirector Plugin with the MBS DynaPDF Plugin. Since ChartDirector library added PDF support in version 6, we can export a chart not just to image formats and SVG, but also get vector graphics to PDF format.
Than we can load the PDF page with the chart into a template for DynaPDF and place it on PDF pages. We can scale the chart on the page to the desired size.
Create a pie chart
Let's start with the pie chart. We add a method
CreatePieChart
returning the chart as aCDBaseChartMBS
object. In this method, we first define with, two constants, the width and height of the chart in points.
Public Function CreatePieChart() as CDBaseChartMBS
...End of Excerpt. Please purchase the magazine to read the full article.