From c765c0ef1f9a8ef7fa42b22f5b97cb8f29003849 Mon Sep 17 00:00:00 2001 From: "Heiko W. Rupp" Date: Sat, 6 Aug 2016 22:20:07 +0200 Subject: [PATCH] Apply sorting by x-axis to chart. Fixes #3 --- lib/chart_view_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/chart_view_controller.rb b/lib/chart_view_controller.rb index 115c15e..22ceb3f 100644 --- a/lib/chart_view_controller.rb +++ b/lib/chart_view_controller.rb @@ -9,6 +9,7 @@ class ChartViewController < Java::javafx::scene::layout::VBox def initialize @chart_items = Set.new @chosen_range = 12 * 3600 * 1000 + @FXMLChart.axis_sorting_policy = LineChart::SortingPolicy::X_AXIS end # Add item when it is not yet there, remove otherwise