This repository has been archived by the owner on May 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Home
Adil edited this page Jul 31, 2014
·
58 revisions
Keshif only has one main function: kshf.init, and all the configuration is done by modifying the parameters passed to this function.
kshf.init({
domID : "#chart_div4",
categoryTextWidth:186,
source : {
gdocId : '0Ai6LdDWgaqgNdFhuMXh0V1E2Wk5tU19JaDltUWVMVnc',
sheets : [ {name:"Posts"} ]
},
loadedCb: function(){
postCols = kshf.dt_ColNames.Posts;
kshf.cellToArray(kshf.dt.Posts, [postCols.categories], ",", false);
},
facets: [ // 2 facets
{ facetTitle: "Category",
timeTitle: "Date" // displays timeline coupled with category property of "posts"
},{
facetTitle: "Author"
}
],
itemDisplay:{
sortColWidth: 55,
columns : [
{ name: 'Date', value: function(d){ return d.data[postCols.date].getUTCFullYear(); } }
],
textSearch : 'Title',
contentFunc : function(d) {
// return an html string which you can generate from the data parameter, d
return d.data.Name; // We are using the "Name" data of the object.
}
}
});
Tutorial is here . Using Nobel dataset, first simply import the data with default configurations, then customize for more effective and detailed browsing.
- World Country Flags – 193 items
- Nobel Prize Winners – 863 items
- Ben Bederson’s publications – 144 items
- Accidents – Road Safety 2012 – UK – 3939 items
- Petroleum Spills – 366 items
- Product – Tablet Computers on Amazon – 573 items
- Teaching Assistant Evaluations – 151 items
- UMD HCIL Lab publications – 711 items
- 112th Senate Roll – 486 items
- Transactions In Major League Baseball – 4022 items
- Zoo – Some Animal List
- Reuters 1987 News Dataset – 21578 items
- Marvin Minsky’s publications – 248 items
Main Parameters
Data Source Parameters
Facet Parameters
List Parameters
Notes
Mehmet Adil Yalcin @ HCIL, University of Maryland, College Park
Funded in part by Huawei.
Mehmet Adil Yalcin - HCIL - University of Maryland, College Park