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.

Implement different data-based autorange mode

See original GitHub issue

Scatter graph with traces using autorange on x-axis has left and right gap if any of the traces has markers flag set on trace.mode.

If mode='lines' for all traces, the leftmost trace points are displayed on the leftmost point of X-axis, but if the mode is changed to e.g. lines+markers, there is a gap from the left and from the right. This visualization looks strange for time series data - it looks like there are no data point within the gaps…

See sample, change the traceX.mode to lines to see the difference.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:3
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
amroczeKcommented, Apr 29, 2021

Not sure if this helps you guys, but here is an example of removing the padding on the X-Axis for line+scatter charts.

https://jsfiddle.net/amroczeK90/waj25yc8/3/

Setting the range on the X-Axis did the trick.

xaxis: { range: [data[0][“x”][0], data[0][“x”][data[0][“x”].length-1]] }

Also make sure you haven’t set “autorange” to true.

1reaction
erikrenbergcommented, Apr 24, 2018

Any progress on this?

It’s a bit of a waste to have padding that could be used for actual data at both ends of the chart when markers are used.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing database connections
You can connect as many private databases to your Mode Workspace as you like. Mode supports connecting to most popular types of relational...
Read more >
Set a database to single-user mode - SQL Server
Right-click the database to change, and then select Properties. In the Database Properties dialog box, select the Options page.
Read more >
Configure database connections | DataGrip Documentation
This mode allows you to see the temporary objects in the database tree, or use the same transaction in different query consoles.
Read more >
Multiple databases
If you don't want every application to be synchronized onto a particular database, you can define a database router that implements a policy...
Read more >
hyper tough 10711wdi multimeter manual
Manual Ranging: Multimeters - Another Teaching Moment | Digi-Key Electronics how to use digital multimeter urdu/hindiULTRICS Digital LCD Multimeter Unboxing ...
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