ngx-charts: Line chart timeline doesn't seem to work / doesn't tell me if I'm doing something wrong
I’m submitting a … (check one with “x”)
- bug report - search github for a similar issue or PR before submitting
- feature request
- support request - use StackOverflow (add the
ngx-chartstag) or the gitter chat for support questions
Current behavior Timeline doesn’t show up for seemingly no reason at all. Even if the timeline isn’t showing up because I’ve done something wrong, something still needs to be fixed here since there are no errors in the console at all.
Note: The large white space below each chart is where the timeline should be in case that wasn’t obvious.
Expected behavior The timeline shows up when I want it to show up.
Reproduction of the problem I have no idea how to reproduce this. It was working when there was no data on the chart, but the moment I put data in it, nothing.
What is the motivation / use case for changing the behavior? The timeline should work how it is “advertised” to work.
Please tell us about your environment: Windows 10 & Custom Linux
-
ngx-charts version: 8.1.0
-
Angular version: 6.0.3
-
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
-
Language: [all | TypeScript X.X | ES6/7 | ES5]
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 19 (5 by maintainers)
I am not getting the console errors you are seeing above. I would suspect it’s something in your data that is causing it, but until I have that data I can’t guess.
Also, if you’d like a time scale on the x axis, I would suggest making the
nameproperty be javascriptDate, rather than numbers.So it seems as though the issue was that the name attributes of each data point cannot be strings, and even though that issue is fixed after converting them to numbers (date in ms), I have found another issue. The chart should still put a warning in the console if you’ve enabled timeline and the data you’re feeding it is not valid for timeline.
New bug / issue: If you mess with the timeline and then change the graph data to something completely different, it messes with the xscale of the graph.