Escolar Documentos
Profissional Documentos
Cultura Documentos
Highcharts no
ServiceNow
passo a passo
SUMÁRIO
IMPORTANTE......................................................................................................................... 4
REFERÊNCIAS ..................................................................................................................... 33
4
IMPORTANTE
<script src="https://code.highcharts.com/modules/export-
data.js"></script>
<script
src="https://code.highcharts.com/modules/accessibility.js"></script>
<figure class="highcharts-figure">
<div id="container"></div>
<p class="highcharts-description">
This pie chart shows how the chart legend can be used to provide
information about the individual slices.
</p>
</figure>
<script src="https://code.highcharts.com/gantt/highcharts-
gantt.js"></script>
<script
src="https://code.highcharts.com/gantt/modules/accessibility.js"></script>
<div id="container"></div>
// THE CHART
Highcharts.ganttChart('container', {
title: {
text: 'Highcharts Gantt With Subtasks'
},
accessibility: {
keyboardNavigation: {
seriesNavigation: {
mode: 'serialize'
}
},
point: {
descriptionFormatter: function(point) {
var dependency = point.dependency &&
point.series.chart.get(point.dependency).name,
dependsOn = dependency ? ' Depends on ' + dependency +
'.' : '';
return Highcharts.format(
'{point.yCategory}. Start {point.x:%Y-%m-%d}, end
{point.x2:%Y-%m-%d}.{dependsOn}'
);
}
}
},
lang: {
accessibility: {
axis: {
10
}]
});
<figure class="highcharts-figure">
<div id="container"></div>
</figure>
12
#container {
height: 400px;
}
.highcharts-data-table table {
font-family: Verdana, sans-serif;
border-collapse: collapse;
border: 1px solid #ebebeb;
margin: 10px auto;
text-align: center;
width: 100%;
max-width: 500px;
}
.highcharts-data-table caption {
padding: 1em 0;
font-size: 1.2em;
color: #555;
}
.highcharts-data-table th {
font-weight: 600;
padding: 0.5em;
}
.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
</style>
</j:jelly>
},
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true,
format: '{point.y:.1f}%'
}
}
},
tooltip: {
headerFormat: '<span style="font-
size:11px">{series.name}</span><br>',
pointFormat: '<span
style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of
total<br/>'
},
series: [
{
name: 'Browsers',
colorByPoint: true,
data: [
{
name: 'Chrome',
y: 63.06
14
},
{
name: 'Safari',
y: 19.84
},
{
name: 'Firefox',
y: 4.18
},
{
name: 'Edge',
y: 4.12
},
{
name: 'Opera',
y: 2.33
},
{
name: 'Internet Explorer',
y: 0.45
},
{
name: 'Other',
y: 1.582
}
]
}
]
});
<figure class="highcharts-figure">
<div id="container"></div>
</figure>
#container {
height: 400px;
}
.highcharts-data-table table {
font-family: Verdana, sans-serif;
border-collapse: collapse;
border: 1px solid #ebebeb;
margin: 10px auto;
text-align: center;
width: 100%;
max-width: 500px;
}
.highcharts-data-table caption {
padding: 1em 0;
font-size: 1.2em;
color: #555;
}
.highcharts-data-table th {
font-weight: 600;
padding: 0.5em;
}
.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
</style>
</j:jelly>
title: {
align: 'left',
text: 'Browser market shares. January, 2022'
},
accessibility: {
announceNewData: {
enabled: true
}
},
xAxis: {
type: 'category'
},
yAxis: {
title: {
text: 'Total percent market share'
}
},
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true,
format: '{point.y:.1f}%'
}
}
},
tooltip: {
headerFormat: '<span style="font-
size:11px">{series.name}</span><br>',
pointFormat: '<span
style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of
total<br/>'
},
series: [
{
name: 'Browsers',
colorByPoint: true,
data: [
{
name: 'Chrome',
y: 63.06
},
{
name: 'Safari',
y: 19.84
},
{
name: 'Firefox',
y: 4.18
},
{
18
name: 'Edge',
y: 4.12
},
{
name: 'Opera',
y: 2.33
},
{
name: 'Internet Explorer',
y: 0.45
},
{
name: 'Other',
y: 1.582
}
]
}
]
});
.highcharts-data-table th,
.highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
background: #f8f8f8;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
</style>
</j:jelly>
verticalAlign: 'top',
y: 70,
floating: true,
backgroundColor: Highcharts.defaultOptions.legend.backgroundColor
|| 'white',
borderColor: '#CCC',
borderWidth: 1,
shadow: false
},
tooltip: {
headerFormat: '<b>{point.x}</b><br/>',
pointFormat: '{series.name}: {point.y}<br/>Total:
{point.stackTotal}'
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
enabled: true
}
}
},
series: [{
name: 'BPL',
data: [{y: 3}, {y:5}, {y:1}, {y:13}]
}, {
name: 'FA Cup',
data: [{y: 14}, {y: 8}, {y: 8}, {y: 12}]
}, {
name: 'CL',
data: [{y: 0}, {y:2}, {y: 6}, {y: 3}]
}]
});
},
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true,
format: '{point.y:.1f}%'
}
}
},
tooltip: {
headerFormat: '<span style="font-
size:11px">{series.name}</span><br>',
pointFormat: '<span
style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of
total<br/>'
},
series: [{
name: 'Browsers',
colorByPoint: true,
data: [{
name: 'Chrome',
y: 63.06,
drilldown: 'Chrome'
},
25
{
name: 'Firefox',
y: 4.18,
drilldown: 'Firefox'
}
]
}],
drilldown: {
breadcrumbs: {
position: {
align: 'right'
}
},
series: [{
name: 'Chrome',
id: 'Chrome',
data: [
{name:'v65.0',
y: 0.1},
{name:'v64.0',
y: 1.3},
{name:'v63.0',
y: 53.02},
{name:'v62.0',
y: 1.4},
{name:'v61.0',
y: 0.88},
{name:'v60.0',
y: 0.56},
{name:'v59.0',
y: 0.45},
{name:'v58.0',
y: 0.49},
{name:'v57.0',
y: 0.32},
{name:'v56.0',
y: 0.29},
{name:'v55.0',
y: 0.79},
{name:'v54.0',
y: 0.18},
{name:'v51.0',
y: 0.13}
]
},
{
name: 'Firefox',
id: 'Firefox',
data: [
{name:'v58.0',
y: 1.02},
{name:'v57.0',
y: 7.36},
{name:'v56.0',
y: 0.35},
{name:'v55.0',
y: 0.11},
26
{name:'v54.0',
y: 0.1},
{name:'v52.0',
y: 0.95},
{name:'v51.0',
y: 0.15},
{name:'v50.0',
y: 0.1},
{name:'v48.0',
y: 0.31},
{name:'v47.0',
y: 0.12}
]
}
]
}
});
2.1 ASDAS
28
3.1 ASDAS
29
4.1 ASDAS
30
5.1 ASDA
31
6.1 ASD
32
7.1 ASDAS
33
REFERÊNCIAS