From e2e0b33c6a7b55c4b0f7a268dd37e545feefc5a2 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Tue, 21 Aug 2018 18:54:52 +0300 Subject: [PATCH 1/1] Render last known value in time series chart hairline value tip Previously if a history item's data stream did not (yet) contain a value with a timestamp >= than the chart hairline time, the value time on top of the chart would not paint any value at all for that item. The best thing the chart can do in such circumstances to prevent unwanted visual skipping in the UI is to paint the last known sample's value regardless of its endTime value. gitlab #85 Change-Id: I362a19b8699c8c4a96240ddfc3fd68a91d6bbd06 --- .../src/org/simantics/trend/impl/Plot.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bundles/org.simantics.trend/src/org/simantics/trend/impl/Plot.java b/bundles/org.simantics.trend/src/org/simantics/trend/impl/Plot.java index bbeb3e695..d014d6556 100644 --- a/bundles/org.simantics.trend/src/org/simantics/trend/impl/Plot.java +++ b/bundles/org.simantics.trend/src/org/simantics/trend/impl/Plot.java @@ -475,8 +475,16 @@ public class Plot extends TrendGraphicalNode { } if ( vb.getSample()!=null ) { - - if (isLast && vb.hasEndTime() && vb.getEndTimeDouble()