Advertisement
Guest User

Untitled

a guest
Sep 8th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.17 KB | None | 0 0
  1.         function initGraph(graphJSON){
  2.             graph = Highcharts.chart('container', {
  3.                 chart: {
  4.                     type: 'column'
  5.                 },
  6.                 title: {
  7.                     text: graphJSON.name,
  8.                     style: {
  9.                         "fontSize": "18px",
  10.                         "text-transform": "uppercase",
  11.                         "font-weight": "bold"
  12.                     }
  13.                 },
  14.                 legend: {
  15.                     itemWidth:100,
  16.                     useHTML:true
  17.                 },
  18.                 yAxis:{
  19.                     title:{
  20.                         text: ''
  21.                     },
  22.                     labels:{
  23.                         format: '{value} ' + graphJSON.label
  24.                     }
  25.                 },
  26.                 xAxis: {
  27.                     categories: graphJSON.categories
  28.                 },
  29.                 credits: {
  30.                     enabled: false
  31.                 },
  32.                 tooltip: {
  33.                     valueSuffix: ' ' + graphJSON.label,
  34.                     shared: true
  35.                 },
  36.                 series: []
  37.             });
  38.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement