Giter VIP home page Giter VIP logo

d3kit-timeline's People

Contributors

bbigras avatar chrismattmann avatar irfancharania avatar kristw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

d3kit-timeline's Issues

How to align a bunch of timelines on zero

Maybe I'm being dense, but I'm having a hard time figuring out how to have linear scale/axes on multiple timelines line up with zero in the middle. The reason is because each timeline has an index date and I want all events to display relative to this date.

My approach is: for each timeline I set the domain option to [ - max(abs(ext[0])), max(abs(ext[1])) ]. So each timeline from zero to the margin on either the left or right, but might not fill up the other side.

I'm getting two problems, probably resulting from my own bugs, but since I'm not sure how to do it right, it makes it harder to find my own bugs.

  1. When I have multiple timelines they seem to all use the same domain even though I'm setting each timeline's domain, as far as I can tell, in its own scope. All the dots are getting squeezed very close to zero (which is in the right place in the middle of all the timelines.)

  2. In a context with only one timeline, d3kit-timeline seems to ignore the domain I'm setting and place the zero where it needs to to fill out the whole timeline.

I can put together a simplified example if needed.

How to implement labels on both up and down sides?

Thanks for the great library.

Could someone please guide how to have labels on both up and down sides?

Basically, I have two categories of labels that one should show only up and the other one down.

Any help would be greatly appreciated.

Multiline label

Hi,
I'm new in web development. This library is wonderful and I've a lot of questions. So, how can I do a multiline label text? Not a wrap text, I need to set line1=blabla, line two=bloblo.

Tanks a lot,

Is there a way to control the color of the label?

Received this question from email.

Hope you are doing good !!

I came to know about your d3Kit-timeline library. This is wonderful.
I wanted to know is there a way to control the color of the label. I have to display several items on the time line, but the depending upon some condition the label color should be either green, red or black.
Following is my scenario:-

suppose I have few country name, depending upon the continent these countries labels color should appear on the time line.

Europe

UK - Red color
Ireland - Red color
Germany - Red color
France - Red color

America

Canada - Yellow color
USA - Yellow color
Brazil - Yellow color

Asia

Japan - Blue color
India - Blue color
China - Blue color

please help me to accomplish this.

Regards,
Shaheen Ahmad

Skeleton missing functionnality

I'm using your lib since few weeks it fits clearly with my exceptations, but i had to add an access to skeleton's nodes to update automatically height of chart like there http://twitter.github.io/labella.js/ when you add nodes. In horizontalTimeline.js, you can see the line that fits the height automatically:
skeleton.height(height + options.margin.top + options.margin.bottom);
and this thing is impossible to do with your lib at the moment.
I thought to add skeleton all free or juste add
var nodes = skeleton.nodes;
at the begining.

allow non-time/Date based data

Fantastic work with this and labella! I know that the purpose of this is clearly to communicate date time, so please disregard if out of scope. Could the scale be exposed in options so we could use d3.scale.linear instead of d3.time.scale? Based on my cursory reading of the code, it seems this line could accept this option, and everything would work. As an example, consider the use case presented for the htmlwidget wrapper of communicating time of goal in a soccer game where the scale would be 0 to about 90.

resizeToFit() not working

Resize to fit doesn't appear to work for me. It is cropping the timeline at the initialHeight/Width boundaries.

Calling with:

chart.data(data).visualize().updateDimensionNow().resizeToFit();

and

chart.data(data).updateDimensionNow().resizeToFit().visualize();

Not working in IE10 & IE11

The company I'm working with is interested in trying to incorporate this into the application, but I'm noticing some compatibility issues for IE10 & IE11. Are there any workarounds?

...besides the obvious of fixing IE!

Making it responsive in Bootstrap & label Auto layout option

Hi, this is very nice, can you please share some info.

  • what option tells it to resize/be responsive if the browser size changes inside a bootstrap div.
  • Also, what is the option to ensure it can auto/arrange/non-overlap labels.
  • how to place font awesome icons in labels?
  • What if the date is passed in the json? as a date and for e.g. not new date(3/2/2017), but 03/02/2017

thanks.

Overflow not handled well

When I change the demo code and clump a bunch of entry times together this pushes some of the labels off the bottom:

const data = [
    { time: new Date(1977, 4, 25), episode: 4, name: "A New Hope" },
    { time: new Date(2015, 11, 18), episode: 7, name: "The Force Awakens" },
    { time: new Date(2015, 11, 18), episode: 7, name: "The Force Awakens" },
    { time: new Date(2015, 11, 18), episode: 7, name: "The Force Awakens" },
    { time: new Date(2015, 11, 18), episode: 7, name: "The Force Awakens" },
    { time: new Date(2015, 11, 18), episode: 7, name: "The Force Awakens" },
    { time: new Date(2015, 11, 18), episode: 7, name: "The Force Awakens" }
];

Result:
image

Is there any way to avoid this happening?

Ideally I'd like it to look something like this (courtesy of my amazing paint skills):
image

Is this possible?

Rendering in hidden div

When rendering the timeline in a div that is hidden on creation the labels overlap, and are not formatted when unhidden. Any way to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.