You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.4 KiB

3 years ago
  1. /*
  2. * 图表配置文件
  3. * */
  4. //不同类型的配置
  5. var typeConfig = [
  6. {
  7. chart: {
  8. type: 'line'
  9. },
  10. plotOptions: {
  11. line: {
  12. dataLabels: {
  13. enabled: false
  14. },
  15. enableMouseTracking: true
  16. }
  17. }
  18. }, {
  19. chart: {
  20. type: 'line'
  21. },
  22. plotOptions: {
  23. line: {
  24. dataLabels: {
  25. enabled: true
  26. },
  27. enableMouseTracking: false
  28. }
  29. }
  30. }, {
  31. chart: {
  32. type: 'area'
  33. }
  34. }, {
  35. chart: {
  36. type: 'bar'
  37. }
  38. }, {
  39. chart: {
  40. type: 'column'
  41. }
  42. }, {
  43. chart: {
  44. plotBackgroundColor: null,
  45. plotBorderWidth: null,
  46. plotShadow: false
  47. },
  48. plotOptions: {
  49. pie: {
  50. allowPointSelect: true,
  51. cursor: 'pointer',
  52. dataLabels: {
  53. enabled: true,
  54. color: '#000000',
  55. connectorColor: '#000000',
  56. formatter: function() {
  57. return '<b>'+ this.point.name +'</b>: '+ ( Math.round( this.point.percentage*100 ) / 100 ) +' %';
  58. }
  59. }
  60. }
  61. }
  62. }
  63. ];