LineChart example repro issue
See original GitHub issueI’m trying to use this library in my project, set up mostly everything as described in this example:
https://swimlane.gitbooks.io/ngx-charts/content/charts/line-chart.html
In my app.component.template I copied the chart from the example also:
<ngx-charts-line-chart
[view]="view"
[scheme]="colorScheme"
[results]="multi"
[gradient]="gradient"
[xAxis]="showXAxis"
[yAxis]="showYAxis"
[legend]="showLegend"
[showXAxisLabel]="showXAxisLabel"
[showYAxisLabel]="showYAxisLabel"
[xAxisLabel]="xAxisLabel"
[yAxisLabel]="yAxisLabel"
[autoScale]="autoScale"
(select)="onSelect($event)">
</ngx-charts-line-chart>
, and I copied every property too, including data (though not using Object.assign, just setting the single/multi arrays in the constructor).
When I run the app, the chart’s ‘frame’ (including the gridlines) appear, though the chart not, and I get the following error in the console:
Unhandled Promise rejection: Error in ./LineSeriesComponent class LineSeriesComponent - inline template:19:8 caused by: Unable to get property 'remove' of undefined or null reference ; Zone: <root> ; Task: Promise.then ; Value: Error: Error in ./LineSeriesComponent class LineSeriesComponent - inline template:19:8 caused by: Unable to get property 'remove' of undefined or null reference Error: Error in ./LineSeriesComponent class LineSeriesComponent - inline template:19:8 caused by: Unable to get property 'remove' of undefined or null reference
at DebugAppView.prototype._rethrowWithContext (eval code:12915:21)
at DebugAppView.prototype.detectChanges (eval code:12888:17)
at AppView.prototype.internalDetectChanges (eval code:12723:17)
at View_LineChartComponent3.prototype.detectChangesInternal (Function code:212:3)
at AppView.prototype.detectChanges (eval code:12738:13)
at DebugAppView.prototype.detectChanges (eval code:12885:17)
at ViewContainer.prototype.detectChangesInNestedViews (eval co
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Line Chart Understanding with Convolutional Neural Network
In this paper, we propose a problem definition for explicitly understanding knowledge in a line chart and provide an algorithm for ...
Read more >line chart with {x, y} point data displays only 2 values
Very simple example but the chart displays only the first two points. I would have expected the chart to scale to the min...
Read more >Is it possible to fix the line chart to show a line ... - Domo Dojo
I found a workaround by forcing a 0 in a beast mode when the value is null in the column. It fixes the...
Read more >Line Graph is not showing up in SSRS 2005 - MSDN - Microsoft
Line chart never come up on report surface. ... If that is ok, please give your dataset sample here so that we maybe...
Read more >Line graph | BetterEvaluation
This example from the California Budget Project is an example of a line chart ... other (only when data values are very dense...
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
Thanks Marjan, I added es6-shim classlist , now the diagram appears, though for tooltips the following error comes up:
I got it, that you mentioned you don’t actively support IE 11, though is there a chance to solve this issue?
I need to use IE because that allows proper debugging with Visual Studio only 😦
Unfortunately I can’t really find out 😦 The highest-level of the error-call stack give this error:
stack = "Error: Error in ./AreaTooltip class AreaTooltip - inline template:4:6 caused by: Object doesn't support this action\n at DebugAppView.prototype._rethrowWithContext (eval code:12915:21)\n at Anonymous function (eval code:12932:21)\n at Anonymous funct...