From ea84cb3a0c7f306a9637e995b587c34c64712819 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 23 Jan 2018 18:22:52 +0300 Subject: [PATCH] OK In progress... --- src/Axis.vala | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Axis.vala b/src/Axis.vala index e4d6d59..18fa4ee 100644 --- a/src/Axis.vala +++ b/src/Axis.vala @@ -522,13 +522,9 @@ namespace CairoChart { case Axis.Position.LOW: if (is_x) { var print_y = ey1 - tthv; - chart.ctx.move_to (compact_rec_pos (v, text_t), print_y); - switch (dtype) { - case Axis.DType.NUMBERS: text_t.show(); break; - case Axis.DType.DATE_TIME: - text_t.show(); chart.ctx.move_to (crpt, print_y - dtf); time_text_t.show(); - break; - } + chart.ctx.move_to (compact_rec_pos (v, text_t), print_y); text_t.show(); + if (dtype == Axis.DType.DATE_TIME) + { chart.ctx.move_to (crpt, print_y - dtf); time_text_t.show(); } ser.grid.style.apply(chart); double y = ey1 - max_rec_size - tthv; chart.ctx.move_to (scr_v, y);