Addepar / ember-charts

Home Page:https://opensource.addepar.com/ember-charts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember-Charts excluding lastObject in the given linedata.

balajinunna opened this issue · comments

am using Time series component chart Yearly interval, In my object I have given the data object from past 2011 to 2015.

But, In UI data renders upto 2014 only. reproduced the scenario in this below jsbin
http://emberjs.jsbin.com/hudote/1/edit?output

Am I missing something? Please help.

Hi @balun200!

Since your data ends on Jan 1 2015, that will be the very last data point in your chart. Since the first data point in your chart is precisely 4 years earlier, the 5th year label doesn't get rendered. You can work around this limitation by having data be one day more in the future (I changed the data here to be able to more clearly see the changes from year to year): http://emberjs.jsbin.com/tabefideta/1/edit?html,js,output

Alternatively, much like with #60, this could be resolved precisely for your use case by overriding the labeling function with your own.

In the future, please ask questions like this on StackOverflow, where they'll get more exposure. We use GitHub issues primarily for reporting software bugs, enhancement requests, and holding discussions on planned changes and project roadmaps.