gpt4 book ai didi

javascript - 将 csv 数据放入 highcharts

转载 作者:行者123 更新时间:2023-11-28 08:54:21 26 4
gpt4 key购买 nike

以更理解的方式重新提出我的问题..

我希望我的 yAxis 包含士兵姓名。我的 xAxis 包含日期。士兵的名字都在我的 csv 中。每行士兵姓名都有详细的开始和结束日期列表。这是从 Excel 表中转储的。如果士兵_A 在 CVS 中的行上有 16 个日期,那么他在图表中的行上应该有 8 个事件。如果有 4 个,应该有 2 个,等等。我一直在网上搜索示例和操作方法,但我尝试的一切都以失败告终,我需要一些帮助。谢谢。

我找到了这个代码: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

最佳答案

关于javascript - 将 csv 数据放入 highcharts,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18708922/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com