Class ChartHelper

java.lang.Object
com.atlassian.jira.charts.jfreechart.ChartHelper

public class ChartHelper extends Object
A nice utility class to manage the generation of a charts.

The original implementation use jfreechart's one time image mechanism which can lead to JRA-21854.

New implementation is using data uri mechanism (inlining base64 encoded images directly) so the generate(int, int) and getLocation() methods are here just for backward compatibility.

When you are going to create new kind of chart you should use generateInline(int, int) instead of generate(int, int)

Since:
v4.0
See Also:
  • Constructor Details

    • ChartHelper

      public ChartHelper(org.jfree.chart.JFreeChart chart)
    • ChartHelper

      @Internal public ChartHelper(org.jfree.chart.JFreeChart chart, TempFileFactory tempFileFactory, ChartUtils chartUtils)
  • Method Details