以更加理解的方式重新提问我。
我希望我的yAxis包含士兵名字。我的xAx包含日期。士兵的名字都在我的csv中。士兵名称的每一行都有一个广泛的开始和停止日期列表。这是从excel表中转储的。如果soldier_A在CVS的行中有16个日期,那么他应该在图表的行中有8个事件。如果有4,应该有2等等,我一直在网上搜索示例和howto's,但我尝试的一切都以失败告终,我可以使用一些帮助。感谢。
我找到了这段代码:JSFiddle
我需要从CSV文件中提取。基本上,任何人都知道如何使用上面的示例代码?这是我的CSV,部分:
Soldier_A,2/28/2014,3/3/2014,1/10/2014,1/12/2014,4/4/2014,4/7/2014,1/24/2014,2/6/2014,2/8/2014,2/9/2014,3/7/2014,3/9/2014,6/18/2014,6/27/2014,5/2/2014,5/4/2014,6/21/2014,6/22/2014,7/9/2014,7/9/2014,7/12/2014,8/1/2014,8/2/2014,8/3/2014,9/6/2014,9/10/2014,9/20/2014,9/21/2014,11/1/2013,11/5/2013,11/7/2013,11/10/2013,12/7/2013,12/14/2013
Soldier_B,1/10/2014,1/12/2014,1/13/2014,1/17/2014,1/27/2014,1/31/2014,2/6/2014,2/9/2014,2/10/2014,2/14/2014,2/21/2014,2/23/2014,2/27/2014,3/2/2014,3/7/2014,3/9/2014,3/11/2014,3/11/2014,3/14/2014,3/16/2014,4/1/2014,4/6/2014,4/8/2014,4/8/2014,4/29/2014,5/4/2014,5/13/2014,5/13/2014,6/16/2014,6/22/2014,7/8/2014,7/8/2014,7/14/2014,7/21/2014,8/12/2014,8/12/2014,9/12/2014,9/12/2014,9/6/2014,9/7/2014,1/14/2013,1/14/2013,10/6/2013,10/6/2013,10/7/2013,10/7/2013,10/8/2013,10/8/2013,11/1/2013,11/6/2013,11/15/2013,11/17/2013,12/6/2013,12/8/2013,12/10/2013,12/10/2013
Soldier_C,10/9/2013,10/15/2013,10/22/2013,10/26/2013,11/3/2013,11/5/2013,11/13/2013,11/19/2013,12/6/2013,12/8/2013,12/15/2013,12/20/2013
Soldier_D,10/3/2013,10/7/2013,10/31/2013,11/6/2013
Soldier_E,10/3/2013,10/7/2013,10/24/2013,10/28/2013,10/31/2013,11/6/2013,11/14/2013,11/18/2013,12/5/2013,12/9/2013
Soldier_F,10/6/2013,10/7/2013,10/8/2013,10/8/2013
Soldier_G,10/3/2013,10/7/2013,10/17/2013,10/21/2013,10/31/2013,11/6/2013,11/14/2013,11/18/2013,12/9/2013,12/13/2013
Soldier_H,1/3/2013,1/6/2013,1/3/2013,1/6/2013,1/3/2013,1/6/2013,1/10/2013,1/13/2013,1/10/2013,1/13/2013,1/10/2013,1/13/2013,1/23/2013,1/27/2013,1/23/2013,1/27/2013,1/30/2013,2/2/2013,1/30/2013,2/2/2013,2/6/2013,2/9/2013,2/20/2013,2/24/2013,2/27/2013,3/3/2013,2/27/2013,3/3/2013,3/13/2013,3/17/2013,3/13/2013,3/17/2013,4/10/2013,4/14/2013,5/15/2013,5/19/2013,8/2/2013,8/22/2013,10/3/2013,10/7/2013,10/3/2013,10/7/2013,10/17/2013,10/20/2013,10/24/2013,10/28/2013,11/1/2013,11/4/2013,11/14/2013,11/18/2013,11/14/2013,11/18/2013,11/14/2013,11/18/2013,11/22/2013,11/25/2013,12/5/2013,12/8/2013,12/5/2013,12/8/2013,12/5/2013,12/9/2013,12/5/2013,12/9/2013,12/10/2013,12/13/2013
Soldier_I,10/3/2013,10/7/2013,10/31/2013,11/4/2013,11/14/2013,11/18/2013,12/5/2013,12/9/2013
Soldier_J,1/4/2013,1/5/2013,1/9/2013,1/13/2013,1/21/2013,1/21/2013,1/23/2013,1/23/2013,2/5/2013,2/10/2013,2/6/2013,2/10/2013,2/8/2013,2/9/2013,2/18/2013,2/18/2013,2/20/2013,2/20/2013,2/28/2013,3/2/2013,2/28/2013,3/2/2013,3/18/2013,3/18/2013,3/20/2013,3/20/2013,4/2/2013,4/6/2013,4/11/2013,4/13/2013,4/22/2013,4/22/2013,4/22/2013,4/28/2013,4/24/2013,4/24/2013,5/1/2013,5/5/2013,5/2/2013,5/4/2013,5/20/2013,5/20/2013,5/22/2013,5/22/2013,6/4/2014,6/13/2014,6/4/2014,6/13/2014,6/14/2014,6/19/2014,6/14/2014,6/19/2014,7/8/2013,7/14/2013,7/14/2013,7/19/2013,7/14/2013,7/21/2013,7/22/2013,7/22/2013,7/24/2013,7/24/2013,8/1/2013,8/10/2013,8/19/2013,8/19/2013,8/21/2013,8/21/2013,9/23/2013,9/23/2013,9/24/2013,9/24/2013,10/5/2013,10/6/2013,10/16/2013,10/21/2013,10/22/2013,10/22/2013,10/24/2013,10/24/2013,10/30/2013,11/4/2013,11/19/2013,11/19/2013,11/21/2013,11/21/2013,12/17/2013,12/17/2013,12/19/2013,12/19/2013
Soldier_K,1/14/2013,1/14/2013,1/10/2014,1/12/2014,1/13/2014,1/17/2014,1/27/2014,1/31/2014,2/6/2014,2/9/2014,2/10/2014,2/14/2014,2/21/2014,2/23/2014,2/27/2014,3/2/2014,3/7/2014,3/9/2014,3/11/2014,3/11/2014,3/14/2014,3/16/2014,4/1/2014,4/6/2014,4/8/2014,4/8/2014,4/29/2014,5/4/2014,5/13/2014,5/13/2014,6/16/2014,6/22/2014,7/8/2014,7/8/2014,7/14/2014,7/21/2014,8/12/2014,8/12/2014,9/12/2014,9/12/2014,9/6/2014,9/7/2014,11/2/2013,11/3/2013,11/4/2013,11/6/2013,12/6/2013,12/8/2013,12/10/2013,12/10/2013
Soldier_L,10/3/2013,10/7/2013,10/17/2013,10/21/2013,10/30/2013,11/4/2013,11/14/2013,11/18/2013
答案 0 :(得分:0)
Highcharts有CSV导入方法。你读过http://www.highcharts.com/docs/working-with-data/preprocessing-data-from-a-file-csv-xml-json#1
吗?