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.

line graph is not showing da data i am giving it

See original GitHub issue

Hi there!

I’ve coded a while with your Chart.js plugin to show data in my Graph, but I got an error, I cannot explain.

After I draw my graph, I printed out my Canvas.data json Element:

datasets: [
	{
		backgroundColor: "rgba(255, 99, 132, 0.2)"
		borderColor: "rgba(255, 99, 132, 1)"
		borderWidth: 1
		data: [ 1000, 200000, 20000 ]
		label: "Ah Price for ancient_debris"

		labels: [
			"18.11.2020  20:49",
			"21.11.2020  12:31",
			"23.11.2020  23:25"
		]
	}
]

But the graph looks like this:

github report

My issue is, that the first point is drawn at 0/0 and not at 0/1000

github report

What have I done wrong?

Would be nice, if I could get an answer soon!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stockiNailcommented, Dec 10, 2020

@Crafter-Y I think the chart is working well. The problem is the scale is too large. It seems it’s starting from zero but it is not.

If you reduce the max value of your data (from 200000 to 20000) you can see the 1 data correctly.

0reactions
Crafter-Ycommented, Dec 10, 2020

Solved!

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Line chart may plot gaps in lines when the data range ...
Click your Line chart to start it. On the Tools menu, click Options. On the Chart tab, click Interpolated, and then click OK....
Read more >
How to deal with missing data in line charts
Then, go to Step 3: Visualize > Refine tab > Customize lines and assign a specific color to each city:
Read more >
Line Graph showing 'No Data' when there is data
I have told the graph to Plot Null Data Points, and have tried to make the text for months with no data display...
Read more >
Excel chart not showing data. Which one was your problem?
00:00 Reasons chart not showing all the rows of data00:12 Data selected for chart misses bottom rows00:55 Chart data source is not on...
Read more >
How to correct a Line chart with no line on the chart in Excel
... that there are no lines in your line chart in the Excel, it is very weird and difficult to understand why it...
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