使用D3绘制简单的时间轴 [英] Draw simple timeline with D3

查看:4708
本文介绍了使用D3绘制简单的时间轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这正是我要完成的工作:

This is what I'm trying to accomplish:

在此示例中,我有一个开始日期(2011年6月1日),结束日期(2012年7月1日)

In this example, I have a starting date (1º Jun 2011), an ending date (1º Jul 2012) and multiple events between this range.

每个活动都与日历的一天相关(虽然可能在一天内有多个活动)。

Each event is related to one day of the calendar (although it is possible to have many events on a single day).

此资料是从MySQL DB撷取。

This data is fetched from a MySQL DB.

任何帮助或建议将非常感谢。

Any help or suggestion will be highly appreciated.

推荐答案

我最近不得不做类似的事情。我最后写了一个d3插件,可以处理这种情况下,其他几个人。 https://github.com/jiahuang/d3-timeline

I recently had to do something similar. I ended up writing a d3 plugin that could handle this case among a few others. https://github.com/jiahuang/d3-timeline

>

我对D3也很新,但我希望它很有用。

I'm pretty new to D3 as well, but I hope it's useful.

这篇关于使用D3绘制简单的时间轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆