Fixes #152: Different series title sizes not vcentered in the top/bottom legend.

This commit is contained in:
Kolan Sh 2018-01-21 19:44:08 +03:00
parent a45ac5d20f
commit e6cad468e0
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ namespace CairoChart {
switch (process_type) {
case ProcessType.DRAW:
var x = legend_x0 + leg_width_sum + (leg_width_sum == 0.0 ? 0.0 : text_hspace);
var y = legend_y0 + leg_height_sum + max_font_heights[heights_idx];
var y = legend_y0 + leg_height_sum + max_font_heights[heights_idx] / 2.0 + s.title.height / 2.0;
// series title
chart.ctx.move_to (x + line_length, y);