line graph is not showing da data i am giving it
See original GitHub issueHi 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:
My issue is, that the first point is drawn at 0/0 and not at 0/1000
What have I done wrong?
Would be nice, if I could get an answer soon!
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
Solved!