Advertisement
Guest User

chart barra line

a guest
Nov 22nd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.title = 'FOB/Ton';
  2.  
  3. option = {
  4.     tooltip: {
  5.         trigger: 'axis',
  6.         axisPointer: {
  7.             type: 'cross',
  8.             crossStyle: {
  9.                 color: '#999'
  10.             }
  11.         }
  12.     },
  13.     toolbox: {
  14.         feature: {
  15.             dataView: {show: true, readOnly: false},
  16.             magicType: {show: true, type: ['line', 'bar']},
  17.             restore: {show: true},
  18.             saveAsImage: {show: true}
  19.         }
  20.     },
  21.     legend: {
  22.         data:['FOB (DUS-AT)','FOB (DUS-LEG)','FOB (IVVC)','Tonelaje']
  23.     },
  24.     xAxis: [
  25.         {
  26.             type: 'category',
  27.             data: ['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'],
  28.             axisPointer: {
  29.                 type: 'shadow'
  30.             }
  31.         }
  32.     ],
  33.     yAxis: [
  34.         {
  35.             type: 'value',
  36.             name: 'FOB (USD)',
  37.             min: 0,
  38.             max: 8000000000,
  39.             interval: 1000000000,
  40.             axisLabel: {
  41.                 formatter: '${value} '
  42.             }
  43.         },
  44.         {
  45.             type: 'value',
  46.             name: 'Tonelaje',
  47.             min: 0,
  48.             max: 6000000000,
  49.             interval: 1000000000,
  50.             axisLabel: {
  51.                 formatter: '{value} ton.'
  52.             }
  53.         }
  54.     ],
  55.     series: [
  56.         {
  57.             name:'FOB (DUS-AT)',
  58.             type:'bar',
  59.             stack:'fob',
  60.             data:[258222236.62,
  61. 178570324.54,
  62. 201593086.14,
  63. 412434237.41,
  64. 1017552375.11,
  65. 317129089.21,
  66. 329112813.45,
  67. 396643061.56,
  68. 964987179.16,
  69. 325555585.27,
  70. 398755149.33,
  71. 1030315911.99]
  72.         },
  73.         {
  74.             name:'FOB (DUS-LEG)',
  75.             type:'bar',
  76.             stack:'fob',
  77.             data:[104358958.34,
  78. 102193290.13,
  79. 71885288.05,
  80. 96683307.60,
  81. 111458965.00,
  82. 146741859.57,
  83. 259726590.80,
  84. 202888845.34,
  85. 273782497.87,
  86. 608842841.09,
  87. 2158491137.24,
  88. 3310455885.01]
  89.         },
  90.         {
  91.             name:'FOB (IVVC)',
  92.             type:'bar',
  93.             stack:'fob',
  94.             data:[659658711.60,
  95. 900418759.41,
  96. 893568180.32,
  97. 919874894.25,
  98. 381561588.18,
  99. 669252092.52,
  100. 1701954119.50,
  101. 1398453283.21,
  102. 631905386.35,
  103. 440585558.09,
  104. 868059347.08,
  105. 716485659.69]
  106.         },
  107.         {
  108.             name:'Tonelaje',
  109.             type:'line',
  110.             yAxisIndex: 1,
  111.             data:[1022239906.56,
  112. 1181182374.08,
  113. 1167046554.51,
  114. 1428992439.26,
  115. 1510572928.29,
  116. 1133123041.30,
  117. 2290793523.75,
  118. 1997985190.11,
  119. 1870675063.38,
  120. 1374983984.45,
  121. 3425305633.65,
  122. 5057257456.69]
  123.         }
  124.     ]
  125. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement