Last active
March 10, 2016 10:13
-
-
Save erikwett/1a822a065e18e90831de to your computer and use it in GitHub Desktop.
Create a chart and specify labels with Visualization API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.visualization.create( 'pivot-table', | |
[ | |
"Year", //dimension | |
{"qDef" : { "qFieldDefs" : ["Case Owner Group"], "qFieldLabels" : ["Group"] }}, //dimension with label | |
{"qDef" : { "qDef" : "=Avg([Case Duration Time])", "qLabel" : "Avg Case Duration Time" }},//measure with label | |
{"qDef" : { "qDef" : "Sum( [Open Cases] )", "qLabel" : "Open Cases" }} //measure with label | |
], | |
{"title" : "Case Owner Group Case stats per year"} | |
).then( function ( visual ) { | |
visual.show( 'QV01' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment