box3_left.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*大屏*/
  2. var dom = document.getElementById("box3_left");
  3. var myChart = echarts.init(dom);
  4. var app = {};
  5. option = null;
  6. app.title = '极坐标系下的堆叠柱状图';
  7. option = {
  8. textStyle:{//图例文字的样式
  9. color:'#dbdbdb',
  10. fontSize:10
  11. },
  12. angleAxis: {
  13. },
  14. radiusAxis: {
  15. type: 'category',
  16. data: ['周一', '周二', '周三', '周四'],
  17. z: 10
  18. },
  19. polar: {
  20. },
  21. series: [{
  22. type: 'bar',
  23. data: [1, 2, 3, 4],
  24. coordinateSystem: 'polar',
  25. name: 'A',
  26. stack: 'a'
  27. }, {
  28. type: 'bar',
  29. data: [2, 4, 6, 8],
  30. coordinateSystem: 'polar',
  31. name: 'B',
  32. stack: 'a'
  33. }, {
  34. type: 'bar',
  35. data: [1, 2, 3, 4],
  36. coordinateSystem: 'polar',
  37. name: 'C',
  38. stack: 'a'
  39. }],
  40. legend: {
  41. show: true,
  42. textStyle:{//图例文字的样式
  43. color:'#dbdbdb',
  44. fontSize:10
  45. },
  46. data: ['A', 'B', 'C']
  47. }
  48. };
  49. ;
  50. if (option && typeof option === "object") {
  51. myChart.setOption(option, true);
  52. }