Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Je viens de créer une table (qui fonctionne parfaitement)
J'aimerai implémenter les options suivantes:
- columnOrder
- columnWidths mais je sais pas ou les mettre ni le format a utuliser.
Quelqu'un peux-t-il m'aider?
Merci d'avance
I just created the following table (Works perfectly)
I would like to implement the options
- columnOrder
- and columnWidths
but I do not know where to put them or the format to use.
Can someone help me?
Thank you in advance
Daniel
app.visualization.create(
'table',
[
{
"qDef": { "qFieldDefs": ["Contrat.Nature"], "qFieldLabels": ["Nature"], "qSortCriterias": [{ "qSortByLoadOrder": 1 }], "textAlign": { "auto": false, "align": "left" } }
},
{
"qDef": {
"qLabelExpression": "=Max(Exercice,5)",
"qDef": "=$(vEffectif_FP5)"
},
"qAttributeExpressions": [
{
"qExpression": "If($(vEffectif_FP5)>10,RGB(255, 115, 115),RGB(145, 194, 106))",
"id": "cellBackgroundColor"
}
]
},
{ "qDef": { "qLabelExpression": "=Max(Exercice,4)", "qDef": "=$(vEffectif_FP4)" } },
{ "qDef": { "qLabelExpression": "=Max(Exercice,3)", "qDef": "=$(vEffectif_FP3)" } },
{ "qDef": { "qLabelExpression": "=Max(Exercice,2)", "qDef": "=$(vEffectif_FP2)" } },
{ "qDef": { "qLabelExpression": "=Max(Exercice,1)", "qDef": "=$(vEffectif_FP1)" } },
]
,
{
"showTitles": false,
"title": "Le titre",
"subtitle": "Sous-titre dan",
"footnote": "footnote dan",
"totals": {
"show": false,
"position": "bottom",
"label": "nvtotal",
},
"scrolling": {
"keepFirstColumnInView": true
},
}
).then(function (vis) {
vis.show(toto);
});