Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bar no smoothing line #43

Open
sunworshipper opened this issue Apr 6, 2020 · 1 comment
Open

Bar no smoothing line #43

sunworshipper opened this issue Apr 6, 2020 · 1 comment

Comments

@sunworshipper
Copy link

Is there a way to look at the data without smoothing? i.e. you see a histogram like view with the actual data at each base?

@MatSchaeff
Copy link
Contributor

There is actually a hidden parameter for the line feature, I should add it to the doc. I originately used it to compare different styles before selecting the actual way of displaying it. You can choose the type of line with the "interpolation" option when adding the feature.
And you can find the different types of D3 interpolation here :
https://coderwall.com/p/thtwbw/d3-js-interpolation-options
Example :

ft3.addFeature({
    data: data,
    name: "test feature",
    color: "#667580",
    type: "line",
    height:"5",
    interpolation:"step-before"
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants