Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Highcharts.chart('container', {
  2.  
  3. chart: {
  4. type: 'heatmap',
  5. marginTop: 40,
  6. marginBottom: 80,
  7. plotBorderWidth: 1
  8. },
  9.  
  10.  
  11. title: {
  12. text: 'Sales per employee per weekday'
  13. },
  14.  
  15. xAxis: {
  16. },
  17.  
  18. yAxis: {
  19. title: null
  20. },
  21.  
  22. colorAxis: {
  23. min: 0,
  24. minColor: '#FFFFFF',
  25. maxColor: Highcharts.getOptions().colors[0]
  26. },
  27.  
  28. legend: {
  29. align: 'right',
  30. layout: 'vertical',
  31. margin: 0,
  32. verticalAlign: 'top',
  33. y: 25,
  34. symbolHeight: 280
  35. },
  36.  
  37. tooltip: {
  38. formatter: function () {
  39. return '<b>' + this.series.xAxis.categories[this.point.x] + '</b> sold <br><b>' +
  40. this.point.value + '</b> items on <br><b>' + this.series.yAxis.categories[this.point.y] + '</b>';
  41. }
  42. },
  43.  
  44. series: [{
  45. name: 'Sales per employee',
  46. borderWidth: 1,
  47. data: [[0, 0, 10], [1, 0, 19], [2,0, 8], [3, 0, 24], [4, 0, 67], [5, 0, 2], [6, 0, 16], [7, 0, 10], [8, 0, 5], [9, 0, 50]],
  48. dataLabels: {
  49. enabled: true,
  50. color: '#000000'
  51. }
  52. }]
  53.  
  54. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement