OK In progress...
This commit is contained in:
parent
7791e4e1a5
commit
7de36e6dad
|
@ -501,10 +501,13 @@ namespace CairoChart {
|
||||||
ser.grid.style.color = Color(0, 0, 0, 0.5);
|
ser.grid.style.color = Color(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
else chart.color = color;
|
else chart.color = color;
|
||||||
string text = "", time_text = "";
|
string text = "", time_text = ""; var time_text_t = new Text(chart);
|
||||||
switch (dtype) {
|
switch (dtype) {
|
||||||
case Axis.DType.NUMBERS: text = format.printf((LongDouble)v); break;
|
case Axis.DType.NUMBERS: text = format.printf((LongDouble)v); break;
|
||||||
case Axis.DType.DATE_TIME: print_dt(v, out text, out time_text); break;
|
case Axis.DType.DATE_TIME:
|
||||||
|
print_dt(v, out text, out time_text);
|
||||||
|
time_text_t = new Text(chart, time_text, font, color);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
var scr_v = scr_pos (v);
|
var scr_v = scr_pos (v);
|
||||||
var text_t = new Text(chart, text, font, color);
|
var text_t = new Text(chart, text, font, color);
|
||||||
|
@ -523,7 +526,6 @@ namespace CairoChart {
|
||||||
case Axis.DType.NUMBERS: text_t.show(); break;
|
case Axis.DType.NUMBERS: text_t.show(); break;
|
||||||
case Axis.DType.DATE_TIME:
|
case Axis.DType.DATE_TIME:
|
||||||
if (date_format != "") text_t.show();
|
if (date_format != "") text_t.show();
|
||||||
var time_text_t = new Text(chart, time_text, font, color);
|
|
||||||
chart.ctx.move_to (compact_rec_pos (v, time_text_t), print_y - dtf);
|
chart.ctx.move_to (compact_rec_pos (v, time_text_t), print_y - dtf);
|
||||||
if (time_format != "") time_text_t.show();
|
if (time_format != "") time_text_t.show();
|
||||||
break;
|
break;
|
||||||
|
@ -554,7 +556,6 @@ namespace CairoChart {
|
||||||
case Axis.DType.NUMBERS: text_t.show(); break;
|
case Axis.DType.NUMBERS: text_t.show(); break;
|
||||||
case Axis.DType.DATE_TIME:
|
case Axis.DType.DATE_TIME:
|
||||||
if (date_format != "") text_t.show();
|
if (date_format != "") text_t.show();
|
||||||
var time_text_t = new Text(chart, time_text, font, color);
|
|
||||||
chart.ctx.move_to (compact_rec_pos (v, time_text_t), print_y - dtf);
|
chart.ctx.move_to (compact_rec_pos (v, time_text_t), print_y - dtf);
|
||||||
if (time_format != "") time_text_t.show();
|
if (time_format != "") time_text_t.show();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue