Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.25 KB | None | 0 0
  1. function getTransactionFraud(data) {
  2.             Highcharts.chart('container', {
  3.                 chart: {
  4.                     plotBackgroundColor: null,
  5.                     plotBorderWidth: null,
  6.                     plotShadow: false,
  7.                     type: 'pie'
  8.                 },
  9.                 title: {
  10.                     text: 'Stock Percentage APD'
  11.                 },
  12.                 tooltip: {
  13.                     pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
  14.                 },
  15.                 plotOptions: {
  16.                     pie: {
  17.                         allowPointSelect: true,
  18.                         cursor: 'pointer',
  19.                         dataLabels: {
  20.                             enabled: true,
  21.                             format: '<b>{point.name}</b>: {point.percentage:.1f} %',
  22.                             style: {
  23.                                 color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
  24.                             }
  25.                         }
  26.                     }
  27.                 },
  28.                 series: [{
  29.                     name: 'Brands',
  30.                     colorByPoint: true,
  31.                     data: data.data,
  32.                 }]
  33.             });
  34.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement