Jaspersoft Tech Talk Episode #15: Chart Customizers

  • 478 views
Uploaded on

Need to customize a JFreeCharts beyond what is exposed in iReport? This tech talk is about customizing JFreeCharts by implementing a Chart Customizer in Java. Intended audience is Java developers …

Need to customize a JFreeCharts beyond what is exposed in iReport? This tech talk is about customizing JFreeCharts by implementing a Chart Customizer in Java. Intended audience is Java developers looking to quickly get started customizing charts.

For more information, join the Jaspersoft Customer and Developer community: http://community.jaspersoft.com

See the video of the presentations here: http://www.youtube.com/watch?v=kjGQ5hlg__k

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
478
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
1
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • Themes are to charts as styles are to reports—they provide a means of centralizing the look of our charts. You can configure a theme and apply it to multiple charts so that all your charts reflect the color scheme you want. The external chart theme is saved to a JasperReports Chart Theme XML file, or .jrctx for short. When you configure a chart theme, iReport opens a Style Template and makes available the Template Inspector panel (similar to the Report Inspector), and a couple other theme-specific panels to help you configure your chart theme.

Transcript

  • 1. Presenter:John Johnson –Professional Services ConsultantTech Talk No. 15:Chart Customizers
  • 2. 3 Charting Libraries in Jaspersoft JFreeCharts Fusion Charts (Charts Pro) HighCharts (HTML5)©2012 Jaspersoft Corporation. Proprietary andConfidential 2
  • 3. Chart Themes Give a set of charts/graphs a common look and feel Defined in an external file (*.jrctx which becomes .jar file) iReport offers its own designer for creating a theme Template Inspector Designer Properties Chart Selector©2013 Jaspersoft Corporation. Proprietary andConfidential
  • 4. Chart Customizers When chart themes and properties aren’t enough we cancustomize the JFreeCharts class libraries through Javacode Examples: Colouring specific bars Hiding bars Width of bars Complex changes to chart display Complex logic Add trend lines©2012 Jaspersoft Corporation. Proprietary andConfidential 4
  • 5. Write a Customizer class Write class that implements InterfaceJRChartCustomizer Package new class in jar file Set Customizer Class Property Put jar on iReports classpath or in resource section onserver
  • 6. Resources iReport Ultimate Guide http://jasperreports.sourceforge.net/api http://www.jfree.org/jfreechart/api/javadoc/