Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] Checkin: Fix [Bugzilla] 161199: Function beforeDrawLegendItem() only works for Bar, Area, Meter, Pie, Stock Chart

Summary: Function beforeDrawLegendItem() only works for Bar, Area, Meter, Pie, Stock Chart

Bugzilla Bug (s) Resolved: 161199

Description:
Support the dynamic size of legend graphics for Line, Scatter, Bubble, Difference and Gantt charts.
The dynamic size will not distort the markers in the legend, so in the process of rendering, the chart engine does the steps as follows
1. Compare the width and height of bounds, and use the smaller one to compute the graphics.
2. If the smaller figure is less than zero, use actual marker size instead.

Support the separated width & height setting of bounds for the case of LegendItemType = Category.
Originally the graphics is always a square and only height setting can take effect.

Tests Description:  Test Manually.

Files Edited:

/org.eclipse.birt.chart.engine.extension/src/org/eclipse/birt/chart/render/Gantt.java
/org.eclipse.birt.chart.engine.extension/src/org/eclipse/birt/chart/render/Line.java
/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/EmptyWithAxes.java
/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/EmptyWithoutAxes.java


Files Added: None

Files Deleted: None


Notes to Build Team:  None

Notes to Developers:  None

Notes to QA:  None


Notes to Documentation:  None

 

Regards,

Nina Li

 

 

 


Back to the top