You want Klipfolio Dashboard to display data that is in CSV or TSV format.
Note: This article discusses advanced features that are only available in the licensed, commercial version of Klipfolio Dashboard.
The following information applies to TSV data as well. Just replace csv with tsv.
You can specify the data source as being in CSV format through either CSS or JavaScript, whichever you are comfortable with. Stylesheet definitions are the same as with XML data source format, but note the following:
a. Your CSV data must have column names; and
b. Your stylesheet must match the column names in the CSV data.
c. For type: item, use row. (See example below.)
<style>
@parse csv;
....
</style>
Option B: JavaScript
function onRefresh() {
Engines.Data.format = "csv";
...
Example<html>
Area,Rep,Bookings,Quota,Past QTD
Austria,Wessel Van Den Berg,242601.78571429,271714,247012.72727273
Germany,Vicki Nicolai,292786.66666667,351344,327921.06666667
Norway,Venu Nair,214226.58333333,270602,249786.46153846
...
</html>
Because this data is dynamically generated, names and numbers may look different, but the column names should be the same: Area, Rep, Bookings, Quota and Past QTD. To display the Areas, Reps and Quota in the first, second and third columns, respectively, all you need to do in the <style> block is:
<style>
@parse csv;
row {
type: item;
definition: all;
}
Area {
itemcol: 1;
}
Rep {
itemcol: 2;
}
Quota {
itemcol: 3;
type: number;
}
</style>
<style>
@parse csv;
Past_QTD {
...
}
For a simple Klip using the above-mentioned CSV data source, try the Sample CSV Klip.