{"action":"created","issue":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/741","repository_url":"https://api.github.com/repos/plotly/plotly.js","labels_url":"https://api.github.com/repos/plotly/plotly.js/issues/741/labels{/name}","comments_url":"https://api.github.com/repos/plotly/plotly.js/issues/741/comments","events_url":"https://api.github.com/repos/plotly/plotly.js/issues/741/events","html_url":"https://github.com/plotly/plotly.js/issues/741","id":165318692,"number":741,"title":"Plot running slow when many points are displayed","user":{"login":"ifll","id":16896039,"avatar_url":"https://avatars.githubusercontent.com/u/16896039?v=3","gravatar_id":"","url":"https://api.github.com/users/ifll","html_url":"https://github.com/ifll","followers_url":"https://api.github.com/users/ifll/followers","following_url":"https://api.github.com/users/ifll/following{/other_user}","gists_url":"https://api.github.com/users/ifll/gists{/gist_id}","starred_url":"https://api.github.com/users/ifll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifll/subscriptions","organizations_url":"https://api.github.com/users/ifll/orgs","repos_url":"https://api.github.com/users/ifll/repos","events_url":"https://api.github.com/users/ifll/events{/privacy}","received_events_url":"https://api.github.com/users/ifll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T13:20:23Z","updated_at":"2016-07-13T15:21:28Z","closed_at":"2016-07-13T15:21:28Z","body":"I have noticed that the more points you are displaying in a scatterplot the more computing power it requires to interact with the plot, and there could appear some lagging while using plotly...\r\n\r\nIn my case I have to plot over 50k points in a scatter plot, which makes it necessary not to be so \"laggy\"...\r\n\r\nIs there any solution to increase the performance of the plot?\r\n\r\ni have realised that when I hover my cursor over an area from the plot with high point density (lets say 10000 points per cm2) it is more \"laggy\" than when I hover the mouse in an area with lower point density (100 points per cm2). At the time I am hovering the mouse over there is some information which appears on the \"text\" field of the marker. Is there any way to fire this option only at the moment that the cursor is steady for \"X\" seconds instead of always? (I guess that with this solution plotly would run much smoother, as it would only refresh the information when the cursor is steady and not always)\r\n\r\nIf anyone have any other ideas on how to plot over 50k points in a scatter plot with plotly and make them run smooth please help me.\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/comments/232389635","html_url":"https://github.com/plotly/plotly.js/issues/741#issuecomment-232389635","issue_url":"https://api.github.com/repos/plotly/plotly.js/issues/741","id":232389635,"user":{"login":"etpinard","id":6675409,"avatar_url":"https://avatars.githubusercontent.com/u/6675409?v=3","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T15:21:28Z","updated_at":"2016-07-13T15:21:28Z","body":"Thanks for writing in.\r\n\r\n> In my case I have to plot over 50k points in a scatter plot, which makes it necessary not to be so \"laggy\"...\r\n\r\nYep. That's an known issue, mainly cause by our svg implementation.\r\n\r\n> Is there any solution to increase the performance of the plot?\r\n\r\nUse the `scattergl` trace type which is designed for large datasets. See example with 1 million points: http://codepen.io/etpinard/pen/XXrzBe\r\n\r\n> Is there any way to fire this option only at the moment that the cursor is steady for \"X\" seconds instead of always?\r\n\r\nYou can try different values of the [`HOVERMINTIME`](https://github.com/plotly/plotly.js/blob/ead4bc51f2c7b6ba25d49be36eb6dbe6451d7884/src/plots/cartesian/constants.js#L69) constant we use to determine the delay between calls to the pick-on-hover routine. Note that this constant isn't configurable via the API; you'll have to build your own plotly.js bundle in order to use custom values.\r\n\r\n----\r\n\r\n@ifll I'm going to close this issue as it is mostly an implementation question. Please use our community [forums](http://community.plot.ly/) for questions of the likes in the future."}}
{"actor":{"display_login":"etpinard"}}