Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous Time Span of 1hr duration in X-Axis #22

Closed
Passwrod opened this issue Jan 23, 2018 · 2 comments
Closed

Continuous Time Span of 1hr duration in X-Axis #22

Passwrod opened this issue Jan 23, 2018 · 2 comments
Assignees

Comments

@Passwrod
Copy link

Hi,
I am using visavail chart to show a dataset. The time duration in X-Axis is getting auto adjusted as per the dataset start and end time.
But I want to keep the time span as static with a duration gap of 1 hr in X-Axis.
This will help me have a more granular view of the data set that is plotted.

Is it possible to achieve this?

Thanks In Advance.

Regards,
Shitikantha Nanda

@FunDeckHermit
Copy link

You could edit the vasavail.js script to define the startdate and enddate as a whole hour.

startDate.setMinutes (startDate.getMinutes() - 30); //get previous hour
startDate.setMinutes(0);
endDate.setMinutes (endDate.getMinutes() + 30); //get next hour
endDate.setMinutes(0);
// define scales
etc etc.

@flrs flrs self-assigned this May 8, 2018
@tanganellilore
Copy link
Collaborator

hi @Passwrod ,

now we have visavail 2.0 and the funcito is now present to display dataset in a specific time range.

the function thath you can cll is "displayDateRange(display_date_range, dataset)", display_date_range is an arry with 2 element [start_date, end_date].

Enjoy with visavail 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants