2
I am implementing on my page a pivot table similar to this:
https://jsfiddle.net/nicolaskruchten/w86bgq9o/
I have the following question.
Whereas the values of the Pivot Table field sex comes as default marked, in case Female and Male.
How do I set a default value to be marked as a filter for the field sex, in the case of the first item in the list of options (Female)?
Note: I tried to insert the link images, however stackoverflow shows as forbidden format to upload
html:
<div id="output"></div>
css:
body {
font-family: Verdana;
}
Javascript + jQuery 1.11.0:
$("#output").pivotUI(
$.pivotUtilities.tipsData, {
rows: ["sex", "smoker"],
cols: ["day", "time"],
vals: ["tip", "total_bill"],
aggregatorName: "Sum over Sum",
rendererName: "Heatmap"
});
If the Sex field values are generated randomly, for example: Male, Female, common, Neuter. How would I use inclusion to leave selected only the first option, and that order I mentioned in the example would come randomly?
– LePy