n3-charts / line-chart

Awesome charts for AngularJS.

Home Page:http://n3-charts.github.io/line-chart/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Line renders strangely when there are "holes" in data

krisskross opened this issue · comments

n3-charts is awesome!

This rendering is something i discovered when there are large holes in the data points.

Not sure how this should render,really, but it looks kind of ugly as of right now.

Thanks ! This is due to the interpolation mode you've chosen. I guess this works better with evenly-distributed data sets... Have you tried another one ?

It works great with "good" data. I discovered from d3 that you can set interpolate mode and tension.

Using .interpolate('cardinal').tension(0.95) worked ok.

I guess I should add an option to set the interpolation tension... What do you think ?

yeah, that would be great!

is there any progress on this? i'm seeing this issue as well

Hi

I'm currently rewriting the library in coffeescript (from develop branch). After that I'll add the tension option. Should be done in january, if I find enough time ! :-)

Fixed in develop dc39228, will be included in 1.0.4.

how to put data dynamic in the chart