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.

Provide documentation for curve implementation

See original GitHub issue

Is your feature request related to a problem? Please describe. I’ve been unable to successfully implement curveBasis (or any other d3 curve function) with the curve input for ngx-charts-line-chart. There is a real lack of documentation for proper use. When trying to import d3 or d3-shape, I get typescript errors like this:

/node_modules/@types/d3-shape/index"' has no exported member 'curveBasis'.

Describe the solution you’d like Documentation for implementing a curve function (i.e: how to import d3 or d3-shape to get various curve options.)… or at least some support on this issue. There is already a ticket open for this but has not had a resolution., the plunkr is also out of date.

Update/Add Curve Documentation #720

Additional context Software Package Versions:

@angular/animations: 8.2.11
@angular/cdk: 8.2.3
@angular/common: 8.2.11
@angular/compiler: 8.2.11
@angular/core: 8.2.11
@angular/flex-layout: 8.0.0-beta.26
@angular/forms: 8.2.11
@angular/material: 8.2.3"
@angular/platform-browser: 8.2.11
@angular/platform-browser-dynamic: 8.2.11
@angular/router: 8.2.11
@swimlane/ngx-charts: 13.0.2
@types/d3-shape: 1.3.2"

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

17reactions
shinkhousecommented, Jan 30, 2020

instead of importing as import * as shape from 'd3-shape';

I tried import {curveBasis} from ‘d3-shape’;

and then defined my curve var as curve: any = curveBasis;

Previously examples have shown to use shape.curveBasis. Found a solution after looking at usage in ngx-charts source code. 😃 Probably should still have some documentation on how to use this… or updating any demos.

0reactions
Rlcolli4commented, Jul 22, 2022

@SivaKaruturi check out this comment from the linked bug, it should help you make sure your typings are installed correctly and some suggestions in how to import the curve. It’s worked for me where I’ve needed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Procotol Overview — Curve 1.0.0 documentation
This documentation outlines the technical implementation of the core Curve protocol and related smart contracts.
Read more >
Fit curve or surface to data - MATLAB fit - MathWorks
This MATLAB function creates the fit to the data in x and y with the model specified by fitType.
Read more >
RFC 5656 - Elliptic Curve Algorithm Integration in the Secure ...
Stebila & Green Standards Track [Page 13] RFC 5656 SSH ECC Algorithm Integration December 2009 8.2. Impact on Network Operation As this document...
Read more >
Modeling Data and Curve Fitting
The Model class in lmfit provides a simple and flexible approach to curve-fitting problems. Like scipy.optimize.curve_fit, a Model uses a model function –...
Read more >
sklearn.metrics.roc_curve — scikit-learn 1.2.0 documentation
Note: this implementation is restricted to the binary classification task. ... some suboptimal thresholds which would not appear on a plotted ROC curve....
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