Esri / Esri/cedar

Possible to smooth lines in linechart?

Open
#288 2 comments 0 reactions 0 assignees View on GitHub
v0x
Dominant language
Handlebars
Stars
265
Forks
236
PR merge metrics
No merged PRs in 30d

Description

Was reading up on D3 and spotted [this post](http://www.d3noob.org/2013/01/smoothing-out-lines-in-d3js.html).

Is there an easy way to apply the line.interpolate("effect") to a cedar chart?

![image](https://user-images.githubusercontent.com/2769383/29297047-935b9f56-81a1-11e7-991c-a6bb1c70619f.png)

```
var valueline = d3.svg.line()
.interpolate("basis") // <=== THERE IT IS!
.x(function(d) { return x(d.date); })
.y(function(d) { return y(d.close); });
```

![image](https://user-images.githubusercontent.com/2769383/29297051-975be4a8-81a1-11e7-9933-6546031da25c.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how Cedar creates its line charts and compare that path with the D3 line generator example in the issue, especially the interpolate setting. Determine where a smoothing option would belong and define done as applying the requested interpolation to a Cedar line chart without breaking existing chart behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
d3, javascript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.