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.

LineChart example repro issue

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
athalaycommented, Jan 31, 2017

Thanks Marjan, I added es6-shim classlist , now the diagram appears, though for tooltips the following error comes up:

Exception was thrown at line 13086, column 21 in eval code
JavaScript runtime error: Error: Error in ./AreaTooltip class AreaTooltip - inline template:4:6 caused by: Object doesn't support this action
Exception was thrown at line 3707, column 17 in eval code
JavaScript runtime error: Error: Error in ./AreaTooltip class AreaTooltip - inline template:4:6 caused by: Object doesn't support this action
Unhandled exception at line 72795, column 13 in eval code
JavaScript runtime error: Error: Error in ./AreaTooltip class AreaTooltip - inline template:4:6 caused by: Object doesn't support this action

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 😦

0reactions
athalaycommented, Jan 31, 2017

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...

Read more comments on GitHub >

github_iconTop 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 >

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