-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Numeric range for the x-axis #92
Comments
Not yet. We are about to implement a line chart in the timeline though, having an horizontal a time axis and a vertical number axis. When we do that, it is a little step to just support two types of axis (Dates and Numbers), and support them both horizontally and vertically. |
Has this feature been implemented yet? |
No, not yet. I also don't expect to see this before the end of the year. If you were referring to the line chart, that is available but also only for time data. Regards, Alex |
Hi, Over the last year a lot of feature requests have been made. We have just introduced our new website which has a list of the requested features. We have placed this request on that list. The list can be found here: An explaination of the new system can be found here: I would like to stress that this does not mean we abandon this request. Discussion here will continue if needed on this feature but we will close it to keep our Github issue page more of a bug-todo list. Future feature requests will still be made here and then added to the website by us. Regards, Alex |
Hi, |
number as date expects a unix timestamp in milliseconds, like |
This is propably a duplicate of #455 and should be fixed together. |
Reopening as Feature-Request issue (see #2114). |
This would be highly helpful! I'm currently providing arbitrary DateTime data, hiding the x-axis with CSS, and using labels to represent a new x-axis. This feature would save me so much hassle! |
Hi @sawatsky , are you able to pick up this feature? |
@yotamberk I'd love to if I had the time. Unfortunately, I am completely swamped with work! I'm the only frontend developer working on a new project for network simulations. |
@sawatsky & @audy I've managed to accomplish this with the current var options = {
start: new Date(0),
end: new Date(100),
min: new Date(0),
format: {
minorLabels: function(date, scale, step) {
switch (scale) {
case 'millisecond':
return new Date(date).getTime() + "ms";
case 'second':
var seconds = Math.round(new Date(date).getTime() / 1000);
return seconds + "s";
case 'minute':
var minutes = Math.round(new Date(date).getTime() / 1000 * 60);
return minutes + "m";
............................ and so on ..........................
}
}
}; You can change how the label will be presented. The above is a simple example. I'm closing this issue. If this doesn't fulfill your needs, please reopen and elaborate what is missing. |
@yotamberk In the context of the timeline it might be enough to just show numbers instead of dates. But in the graph-2D a real number-scale is still needed. See #455 |
Dear future people, since it was never clearly stated here is the solution: In the options of the timeline set the following:
Then each timeline item can be like so:
You are welcome future people. (probably future me.) ... This should really get it's own example. |
Has this feature implemented, I have the same requirement of plain numeric series on x-axis |
Thank you so much this code solve my biggest problem... :) |
Is it possible to create a Timeline with a plain numeric range for the x-axis?
The text was updated successfully, but these errors were encountered: