Fixes #152: Different series title sizes not vcentered in the top/bottom legend.
This commit is contained in:
parent
a45ac5d20f
commit
e6cad468e0
|
@ -140,7 +140,7 @@ namespace CairoChart {
|
||||||
switch (process_type) {
|
switch (process_type) {
|
||||||
case ProcessType.DRAW:
|
case ProcessType.DRAW:
|
||||||
var x = legend_x0 + leg_width_sum + (leg_width_sum == 0.0 ? 0.0 : text_hspace);
|
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
|
// series title
|
||||||
chart.ctx.move_to (x + line_length, y);
|
chart.ctx.move_to (x + line_length, y);
|
||||||
|
|
Loading…
Reference in New Issue