Hi, I have a CSV file with start_time and end_time and the difference.
Parameters START_TIME END_TIME DIFFERENCE IN MINS
param1 1425485370 1425490179 80.15
param2 1425525368 1425528124 45.93
param3 1425462452 1425464795 39.05
param4 1425619254 1425620315 17.68
Here the start and end time both are in epoch format.
I want to built a Gantt chart, with Y axis as "Parameters" and X-axis as time over a day.
I have taken help from the Gantt Chart visualization app , but couldn't get through.
I have altered the source code as follows:
<form script="autodiscover.js">
<label>Gantt Chart demo</label>
<row>
<html>
<h2>Gantt Chart demo</h2>
<div id="demo-search"
class="splunk-manager"
data-require="splunkjs/mvc/searchmanager"
data-options='{
"search": { "type": "token_safe", "value": "|inputcsv myfile.csv |table Parameters, START_TIME END_TIME" },
"earliest_time": { "type": "token_safe", "value": "-4h@m" },
"latest_time": { "type": "token_safe", "value": "now" },
"cancelOnUnload": true,
"preview": true
}'>
</div>
<div id="demo-view"
class="splunk-view"
data-require="app/gantt/components/gantt/gantt"
data-options='{
"managerid": "demo-search",
"startField": "START_TIME",
"endField": "END_TIME",
"categoryLabel": "Parameters",
"categoryField": "Parameters",
}'>
</div>
</html>
</row>
</form>
Please Help...!!
... View more