Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getTransactionFraud(data) {
- Highcharts.chart('container', {
- chart: {
- plotBackgroundColor: null,
- plotBorderWidth: null,
- plotShadow: false,
- type: 'pie'
- },
- title: {
- text: 'Stock Percentage APD'
- },
- tooltip: {
- pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
- },
- plotOptions: {
- pie: {
- allowPointSelect: true,
- cursor: 'pointer',
- dataLabels: {
- enabled: true,
- format: '<b>{point.name}</b>: {point.percentage:.1f} %',
- style: {
- color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
- }
- }
- }
- },
- series: [{
- name: 'Brands',
- colorByPoint: true,
- data: data.data,
- }]
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement