OK In progress...

This commit is contained in:
Kolan Sh 2018-01-23 15:20:13 +03:00
parent fa93997f27
commit 08e154ce6a
1 changed files with 4 additions and 3 deletions

View File

@ -350,7 +350,6 @@ namespace CairoChart {
} }
chart.ctx.move_to(scr_x - title.width / 2, scr_y); chart.ctx.move_to(scr_x - title.width / 2, scr_y);
chart.color = color; chart.color = color;
if (chart.joint_x) chart.color = chart.joint_color;
} else { } else {
var scr_y = chart.plarea.y0 + chart.plarea.height * (1 - (place.zmin + place.zmax) / 2); var scr_y = chart.plarea.y0 + chart.plarea.height * (1 - (place.zmin + place.zmax) / 2);
switch (position) { switch (position) {
@ -363,9 +362,11 @@ namespace CairoChart {
chart.ctx.move_to(scr_x, scr_y + title.height / 2); chart.ctx.move_to(scr_x, scr_y + title.height / 2);
break; break;
} }
chart.color = color;
if (chart.joint_y) chart.color = chart.joint_color;
} }
if (is_x && chart.joint_x || !is_x && chart.joint_y)
chart.color = chart.joint_color;
else
chart.color = color;
title.show(); title.show();
} }