OK In progress...
This commit is contained in:
parent
2f0ee8b45a
commit
6672e08132
|
@ -515,18 +515,17 @@ namespace CairoChart {
|
||||||
var tthv = title.text == "" ? font.vspacing : title.height + 2 * font.vspacing;
|
var tthv = title.text == "" ? font.vspacing : title.height + 2 * font.vspacing;
|
||||||
var ttwh = title.text == "" ? font.hspacing : title.width + 2 * font.hspacing;
|
var ttwh = title.text == "" ? font.hspacing : title.width + 2 * font.hspacing;
|
||||||
var dtf = (date_format == "" ? 0 : text_t.height + font.vspacing);
|
var dtf = (date_format == "" ? 0 : text_t.height + font.vspacing);
|
||||||
var py0 = chart.plarea.y0, ey0 = chart.evarea.y0 + max_rec_size + tthv, py1 = chart.plarea.y1, ey1 = chart.evarea.y1;
|
var py0 = chart.plarea.y0, ey0 = chart.evarea.y0 + max_rec_size + tthv, ey1 = chart.evarea.y1 - tthv;
|
||||||
var px0 = chart.plarea.x0, ex0 = chart.evarea.x0, px1 = chart.plarea.x1, ex1 = chart.evarea.x1;
|
var px0 = chart.plarea.x0, ex0 = chart.evarea.x0, px1 = chart.plarea.x1, ex1 = chart.evarea.x1;
|
||||||
var ph = chart.plarea.height, pw = chart.plarea.width;
|
var ph = chart.plarea.height, pw = chart.plarea.width;
|
||||||
switch (position) {
|
switch (position) {
|
||||||
case Axis.Position.LOW:
|
case Axis.Position.LOW:
|
||||||
if (is_x) {
|
if (is_x) {
|
||||||
var print_y = ey1 - tthv;
|
chart.ctx.move_to (compact_rec_pos (v, text_t), ey1); text_t.show();
|
||||||
chart.ctx.move_to (compact_rec_pos (v, text_t), print_y); text_t.show();
|
|
||||||
if (dtype == Axis.DType.DATE_TIME)
|
if (dtype == Axis.DType.DATE_TIME)
|
||||||
{ chart.ctx.move_to (crpt, print_y - dtf); time_text_t.show(); }
|
{ chart.ctx.move_to (crpt, ey1 - dtf); time_text_t.show(); }
|
||||||
ser.grid.style.apply(chart);
|
ser.grid.style.apply(chart);
|
||||||
double y = ey1 - max_rec_size - tthv; chart.ctx.move_to (scr_v, y);
|
double y = ey1 - max_rec_size; 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)));
|
||||||
} else {
|
} else {
|
||||||
|
@ -549,7 +548,7 @@ namespace CairoChart {
|
||||||
}
|
}
|
||||||
ser.grid.style.apply(chart);
|
ser.grid.style.apply(chart);
|
||||||
chart.ctx.move_to (scr_v, ey0);
|
chart.ctx.move_to (scr_v, ey0);
|
||||||
if (chart.joint_x) chart.ctx.line_to (scr_v, py1);
|
if (chart.joint_x) chart.ctx.line_to (scr_v, chart.plarea.y1);
|
||||||
else chart.ctx.line_to (scr_v, double.max (ey0, py0 + ph * (1 - ser.axis_y.place.zmin)));
|
else chart.ctx.line_to (scr_v, double.max (ey0, py0 + ph * (1 - ser.axis_y.place.zmin)));
|
||||||
} 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));
|
||||||
|
|
Loading…
Reference in New Issue