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

use showRangeSelector for dygraph #648

Open
gizzygizmo opened this issue Jul 6, 2021 · 1 comment
Open

use showRangeSelector for dygraph #648

gizzygizmo opened this issue Jul 6, 2021 · 1 comment
Labels
Future Future support

Comments

@gizzygizmo
Copy link

In file /app/templates/device_dashboard.html adding 'showRangeSelector: true," to line 520ish where "g2 = new Dygraph(" will enable the range selector which I believe is easier to navigate.

Opening a beer log that is multiple days is easier to navigate with the range selector slider than using zoom/selector.

@gizzygizmo
Copy link
Author

g2 = new Dygraph(
    document.getElementById("graphdiv2"),
    {#  TODO - Something here if active beer isn't set #}
    "{{ beer_file_url }}", // path to CSV file
    {
{#        labels: [{{ column_headers|safe }}],#}
        labelsDiv: document.getElementById('label-div'), // Technically, this is unused because of legend:never
        legend: "never",
        axisLabelFontSize: 14,
        displayAnnotations: true,
        showLabelsOnHighlight: true,
        hideOverlayOnMouseOut: false,
        showRangeSelector: true,
        // TODO - Test this with gravity data
{% if beer.model_version > 1 %}
...

@thorrak thorrak added the Future Future support label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Future Future support
Projects
None yet
Development

No branches or pull requests

2 participants