leeoniya / leeoniya/uPlot

page crash when using a log axis with a min: 0

Open
#813 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
463
PR merge metrics
No merged PRs in 30d

Description

seems there might be an infinite loop?
in firefox the page never loads, on chrome the page crashes

repro:

let opts = {
	width: 1400,
	height: 400,
	scales: {
		x: {
			time: false,
			distr: 3,

			auto: false,
			range: [
				0,
				100,
			],
		},
		y: {
			auto: false,
			range: [
				0,
				100,
			],
		}
	},
	series: [
		{},
		{
			label: "One",
			stroke: "red",
		},
		{
			label: "Two",
			stroke: "blue",
		},
	]
};

const data = [
	[ 1, 2, 3, 4, 5, 6, 7],
	[40,43,60,65,71,73,80],
	[18,24,37,55,55,60,63],
];

let u = new uPlot(opts, data, chart);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the supplied uPlot reproduction in Firefox and Chrome, then trace the log-axis range handling around the new uPlot(opts, data, chart) entry point. Confirm the zero minimum causes the hang or crash, and consider the issue done when the same configuration renders without either failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.