Javascript CSV路径在动态图表中不起作用
下面是我的Javascript代码:Javascript CSV路径在动态图表中不起作用,javascript,csv,dygraphs,Javascript,Csv,Dygraphs,下面是我的Javascript代码: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Dygraph</title> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dygraph/1.1.1/dygraph-combined.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Dygraph</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/dygraph/1.1.1/dygraph-combined.js">
</script>
</head>
<body>
<div id="graphdiv"></div>
<script type="text/javascript">
g = new Dygraph(
// containing div
document.getElementById("graphdiv"),
// CSV or path to a CSV file.
"/home/khlim/Desktop/WeatherData/NewYork.csv", // path to CSV file
{} // options
);
</script>
</body>
它总共包含50000行。您有两个问题:
DATE TMAX
20150101 39
20150102 56
20150103 50
20150104 139
20150105 100