This file contains hidden or 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
MetadataService.MetadataPort service = createService(); | |
//save new custom label | |
MetadataService.CustomLabel cl = new MetadataService.CustomLabel(); | |
cl.fullName = 'CustomLabel1'; | |
cl.language = 'en_US'; | |
cl.protected_x = true; | |
cl.shortDescription = 'Custom label short description'; | |
cl.value = 'Custom label value'; | |
This file contains hidden or 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
var mainChart = new google.visualization.PieChart(document.getElementById('mainChart')); | |
mainChart.draw(dataTable, option); | |
google.visualization.events.addListener(mainChart, 'select', function() { | |
var selection = mainChart.getSelection(); | |
var message = ''; | |
for (var i = 0; i < selection.length; i++) { | |
var item = selection[i]; | |
This file contains hidden or 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
var data = new google.visualization.DataTable(); | |
data.addColumn('string', 'Range'); | |
data.addColumn('number', NPS); | |
data.addColumn({'type': 'string', 'role': 'tooltip', 'p': {'html': true}}); | |
// allow html on tooltip | |
for(var i = 0; i < result.length; i++) { | |
var p = result[i]; | |
// change tooltip content by adding text with html | |
data.addRow([p.chartLabel , p.nps , '<b> NPS : </b>' + p.nps ]); |
This file contains hidden or 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
vAxes: { | |
0: {logScale: false, maxValue: 100, minValue: 0, textStyle : { color: '#ffffff'}}, | |
1: {logScale: false, maxValue: 100, minValue:-100, textStyle : { color:'#ffffff'}} | |
} |
This file contains hidden or 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
var options = { | |
title : 'With labels on vertical axes', | |
vAxes: { | |
0: {logScale: false, maxValue: 100, minValue: 0}, | |
1: {logScale: false, maxValue: 100, minValue: -100} | |
}, | |
seriesType: "bars", | |
isStacked: true, | |
series: { | |
0: { targetAxisIndex:0 }, |