question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Zoom speed on large data

See original GitHub issue

Hi.

I’m trying to make faster zooming when there is large data in chart.

My chart looks like this: https://imgur.com/a/9EvD3ua

So problem is when I’m trying to zoom in, I must scroll too much ( 10 seconds ) to zoom in to maximum.

I’ve used this props: zoom: { enabled: true, drag: false, mode: "x", speed: 0.1, sensitivity: 0.01 },

Is there any option, solution for faster zooming ? Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

5reactions
datainvestorcommented, Jun 17, 2020

I faced similar problem. I think it was sort of resolved when I changed X-axis to be of type “time”

 xAxes: [
            {
              type: "time"
            }
          ],

And that made the zoom and panning quite smooth.

0reactions
michael-harleycommented, Feb 14, 2021

I got this to work after a lot of trial and error looking for answers. In case anyone of you wondering how to make it work (Zoom faster with type time)

{
    scales: {
        xAxes: [
        {
            type: "time",
            time: { unit: "day", displayFormats: { day: "DD-MM-YYYY" } },
            // distribution: "series", // Careful with this, this creates another problem when you pan the chart. Issue: #361
        },
        ],
        yAxes: [
        {
            ticks: { beginAtZero: true },
        },
        ],
    },
    plugins: {
        zoom: {
        pan: {
            enabled: true,
            mode: "x",
            speed: 15,
            threshold: 5,
            onPan: (x) => console.log("Pan!", x),
            onPanComplete: (x) => console.log("Complete Pan!", x),
        },
        zoom: {
            enabled: true,
            // drag: {
            //   animationDuration: 1000,
            // },
            mode: "x",
            speed: 0.1,
            threshold: 2,
            sensitivity: 3,
            onZoom: (x) => console.log("Zoom!", x),
            onZoomComplete: (x) => console.log("Complete Zoom!", x),
        },
        },
    },
}

Related Issue:

  1. Distribution series problem when Panning the chart. #361
Read more comments on GitHub >

github_iconTop Results From Across the Web

How Much Data Does a Zoom Meeting Use - Reviews.org
Zoom internet recommendations · High-quality video: 600kbps · 720p HD video: 1.2-1.8Mbps(down) · 1080p HD video: 2-3Mbps.
Read more >
How to Reduce Zoom Data Usage | SatelliteInternet.com
Zoom uses about 888 MB of data per hour.1 You should expect to consume that much data if you use Zoom primarily for...
Read more >
Zoom system requirements: Windows, macOS, Linux
~600kbps (down) for high-quality video; ~1.2-1.8Mbps (down) for 720p HD video; ~2-3Mbps (down) for 1080p HD video. For screen sharing ...
Read more >
How much data does Zoom use? - WhistleOut
Zoom data usage a group call ; High, 450MB per hour, 360MB per hour, 810MB per hour ; 720p, 675MB per hour, 675MB...
Read more >
Does Your Zoom Call Use More Data Than You Think?
Zoom data usage: 1:1 calls ; Call quality, Recommended download speed, Recommended upload speed, How much data does it use? ; “High-quality” video ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found