OK In progress...
This commit is contained in:
parent
6e351ff465
commit
4b8947eaf3
|
@ -534,7 +534,6 @@ namespace CairoChart {
|
||||||
chart.ctx.move_to (scr_v, y);
|
chart.ctx.move_to (scr_v, y);
|
||||||
if (chart.joint_x) chart.ctx.line_to (scr_v, py0);
|
if (chart.joint_x) chart.ctx.line_to (scr_v, py0);
|
||||||
else chart.ctx.line_to (scr_v, double.min (y, py0 + ph * (1 - ser.axis_y.place.zmax)));
|
else chart.ctx.line_to (scr_v, double.min (y, py0 + ph * (1 - ser.axis_y.place.zmax)));
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
chart.ctx.move_to (ex0 + max_rec_size - text_t.width + ttwh, compact_rec_pos (v, text_t));
|
chart.ctx.move_to (ex0 + max_rec_size - text_t.width + ttwh, compact_rec_pos (v, text_t));
|
||||||
text_t.show();
|
text_t.show();
|
||||||
|
@ -543,8 +542,8 @@ namespace CairoChart {
|
||||||
chart.ctx.move_to (x, scr_v);
|
chart.ctx.move_to (x, scr_v);
|
||||||
if (chart.joint_y) chart.ctx.line_to (px1, scr_v);
|
if (chart.joint_y) chart.ctx.line_to (px1, scr_v);
|
||||||
else chart.ctx.line_to (double.max (x, px0 + pw * ser.axis_x.place.zmax), scr_v);
|
else chart.ctx.line_to (double.max (x, px0 + pw * ser.axis_x.place.zmax), scr_v);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case Axis.Position.HIGH:
|
case Axis.Position.HIGH:
|
||||||
if (is_x) {
|
if (is_x) {
|
||||||
var print_y = ey0 + max_rec_size + tthv;
|
var print_y = ey0 + max_rec_size + tthv;
|
||||||
|
@ -560,7 +559,6 @@ namespace CairoChart {
|
||||||
chart.ctx.move_to (scr_v, y);
|
chart.ctx.move_to (scr_v, y);
|
||||||
if (chart.joint_x) chart.ctx.line_to (scr_v, py1);
|
if (chart.joint_x) chart.ctx.line_to (scr_v, py1);
|
||||||
else chart.ctx.line_to (scr_v, double.max (y, py0 + ph * (1 - ser.axis_y.place.zmin)));
|
else chart.ctx.line_to (scr_v, double.max (y, py0 + ph * (1 - ser.axis_y.place.zmin)));
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
chart.ctx.move_to (ex1 - text_t.width - ttwh, compact_rec_pos (v, text_t));
|
chart.ctx.move_to (ex1 - text_t.width - ttwh, compact_rec_pos (v, text_t));
|
||||||
text_t.show();
|
text_t.show();
|
||||||
|
@ -569,10 +567,10 @@ namespace CairoChart {
|
||||||
chart.ctx.move_to (x, scr_v);
|
chart.ctx.move_to (x, scr_v);
|
||||||
if (chart.joint_y) chart.ctx.line_to (px0, scr_v);
|
if (chart.joint_y) chart.ctx.line_to (px0, scr_v);
|
||||||
else chart.ctx.line_to (double.min (x, px0 + pw * ser.axis_x.place.zmin), scr_v);
|
else chart.ctx.line_to (double.min (x, px0 + pw * ser.axis_x.place.zmin), scr_v);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue