How to get the initial x-axis value in Flot?

I would like to know how to get the initial x-axis value in the JS Flot library. I know the value of the x axis at the beginning (obviously, because I fill it with my own data), but if you set:

pan: { interactive: true } 

How the user can pan the graph ( example here ), and if the user views the graph, the x values ​​change. I looked into jquery.flot.js to find where these values ​​are calculated, but no luck.

+4
source share
1 answer

I understood. The solution was in front of me all the time (example):

  var axes = plot.getAxes(); var min = axes.xaxis.min; 
+7
source

Source: https://habr.com/ru/post/1385371/


All Articles