I am trying to access the queried date range from within a plugin, so that I can do calculations based on the length of time being queried. Is there a way to do this?
For example, I may have an aggregated sum of hits and I want to calculate the average number of hits per second and display that number in the visualization.
Thank you very much! I was able to get the length of time with: var ms = Date.parse($scope.timefilter.getBounds().max._d) - Date.parse($scope.timefilter.getBounds().min._d);
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.