BioWu opened a new issue #8548: 堆积条形图和数输入数据dataset不对应。
URL: https://github.com/apache/incubator-echarts/issues/8548
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   我应用了dataset,但是显然这各堆积条形图和我的输入数据是不对应的。但是,我也没找出来那里是错误的。
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4.1.0rc
   + Browser version [浏览器类型和版本]:Chrome 59.0.3071.115
   + OS Version [操作系统类型和版本]: Linux CentOS7
   
   
   
   
   
   ### Expected behaviour [期望结果]
   此外,我还想让这个figure legend能放在图形的右边(现在是覆盖到了图形的上面)。
   
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   {
       "title": {
           "text": "Interspersed Repeat Landscape",
           "subtext": "",
           "x": "center"
       },
       "tooltip": {
           "trigger": "item",
           "axisPointer": {
               "type": "shadow"
           }
       },
       "toolbox": {
           "show": true,
           "feature": {
               "mark": {
                   "show": true
               },
               "dataView": {
                   "show": true,
                   "readOnly": false
               },
               "magicType": {
                   "show": true,
                   "type": [
                       "pie",
                       "funnel"
                   ],
                   "option": {
                       "funnel": {
                           "x": "25%",
                           "width": "50%",
                           "funnelAlign": "left",
                           "max": 1548
                       }
                   }
               },
               "restore": {
                   "show": true
               },
               "saveAsImage": {
                   "show": true
               }
           }
       },
       "legend": {
           "type": "scroll",
           "orient": "vertical",
           "itemHeight": 11,
           "itemGap": 3,
           "right": "right",
           "top": 50
       },
       "dataset": {
           "source": [
               [
                   "Other",
                   "DNA/CMC",
                   "DNA/Crypton",
                   "DNA/Harbinger",
                   "DNA/hAT",
                   "DNA/Maverick",
                   "DNA",
                   "DNA/MULE",
                   "DNA/P",
                   "DNA/PiggyBac",
                   "DNA/TcMar",
                   "RC/Helitron",
                   "LTR/Pao",
                   "LTR/Copia",
                   "LTR/Gypsy",
                   "LINE/R1",
                   "LINE/Jockey-I"
               ],
               [
                   "0",
                   0.0032192,
                   0.0116608,
                   0.014516,
                   0.0000568,
                   0.0331536,
                   0.0085608,
                   0.0002216,
                   0.0014448,
                   0.0066264,
                   0,
                   0.1415824,
                   0.0011136,
                   1.023628,
                   0.3127176,
                   3.3720664,
                   0.2429456,
                   0.2629344,
                   0.0069976
               ],
               [
                   "1",
                   0.0052976,
                   0.0087424,
                   0.000916,
                   0,
                   0.0019352,
                   0.0190464,
                   0,
                   0.0002424,
                   0.1357784,
                   0.0015712,
                   0.0201504,
                   0.0003488,
                   0.1890264,
                   0.086456,
                   1.1669912,
                   0.1066704,
                   0.0332248,
                   0.0094352
               ],
               [
                   "2",
                   0.0051768,
                   0.0293944,
                   0.006336,
                   0,
                   0.0025792,
                   0.0124544,
                   0,
                   0,
                   0.1507968,
                   0,
                   0.016768,
                   0.001108,
                   0.293852,
                   0.0465432,
                   0.5492168,
                   0.2186376,
                   0.0117136,
                   0.0088704
               ],
               [
                   "3",
                   0.0024056,
                   0.0312656,
                   0.0066488,
                   0.0005832,
                   0.0049592,
                   0.0067264,
                   0,
                   0,
                   0.1111456,
                   0.001072,
                   0.0301352,
                   0.003108,
                   0.294836,
                   0.0341184,
                   0.4384064,
                   0.0950424,
                   0.0053512,
                   0.0018424
               ],
               [
                   "4",
                   0.0001112,
                   0.03766,
                   0.0035296,
                   0.0009288,
                   0.008856,
                   0.0009112,
                   0.0003416,
                   0,
                   0.0729424,
                   0.0019416,
                   0.0416808,
                   0.004608,
                   0.2660472,
                   0.0125864,
                   0.4106632,
                   0.0459256,
                   0.0231744,
                   0.0031128
               ],
               [
                   "5",
                   0,
                   0.0301888,
                   0.0010928,
                   0.0009608,
                   0.0044216,
                   0.0007072,
                   0.0012592,
                   0,
                   0.0494144,
                   0.0008696,
                   0.0443912,
                   0.0072208,
                   0.0925344,
                   0.0094824,
                   0.3718024,
                   0.037016,
                   0.0491472,
                   0.0006552
               ],
               [
                   "6",
                   0.0001888,
                   0.0149512,
                   0.000232,
                   0.0020408,
                   0.0051264,
                   0.0009368,
                   0.0008544,
                   0,
                   0.0269144,
                   0,
                   0.029916,
                   0.0137808,
                   0.0328824,
                   0.0123056,
                   0.3671568,
                   0.0320496,
                   0.0544488,
                   0.0006168
               ],
               [
                   "7",
                   0.0001888,
                   0.0089088,
                   0.000756,
                   0.00068,
                   0.0047064,
                   0.0001904,
                   0.0013416,
                   0.0000864,
                   0.0109616,
                   0.0001736,
                   0.021552,
                   0.0192272,
                   0.0202496,
                   0.006896,
                   0.2971664,
                   0.0277576,
                   0.023656,
                   0.0001376
               ],
               [
                   "8",
                   0,
                   0.005728,
                   0.0003504,
                   0.0012032,
                   0.0020952,
                   0,
                   0.001612,
                   0.0003472,
                   0.0111144,
                   0,
                   0.037332,
                   0.0355736,
                   0.0233744,
                   0.0064808,
                   0.2904992,
                   0.0183616,
                   0.0259064,
                   0
               ],
               [
                   "9",
                   0.000228,
                   0.004228,
                   0.0000784,
                   0.0009592,
                   0.0081,
                   0.0006528,
                   0.0008768,
                   0.0004608,
                   0.0104928,
                   0,
                   0.0518272,
                   0.0431408,
                   0.0224592,
                   0.0027464,
                   0.345344,
                   0.0122288,
                   0.0175216,
                   0
               ],
               [
                   "10",
                   0.0007176,
                   0.0060016,
                   0.0000824,
                   0.0006072,
                   0.001956,
                   0.00022,
                   0.0012672,
                   0.0001136,
                   0.0099888,
                   0.00016,
                   0.0238896,
                   0.0582024,
                   0.0252456,
                   0.0003672,
                   0.2352656,
                   0.0224208,
                   0.0092992,
                   0.000112
               ],
               [
                   "11",
                   0.0003432,
                   0.0037152,
                   0,
                   0.001124,
                   0.0023544,
                   0.000476,
                   0.0006104,
                   0.0010856,
                   0.0057152,
                   0.0008352,
                   0.017132,
                   0.0589424,
                   0.0257696,
                   0.00174,
                   0.1777736,
                   0.0216848,
                   0.004932,
                   0
               ],
               [
                   "12",
                   0.001912,
                   0.0024944,
                   0.000028,
                   0.000276,
                   0.002988,
                   0.000288,
                   0.0009832,
                   0.0001656,
                   0.0078216,
                   0,
                   0.0163432,
                   0.0581264,
                   0.017764,
                   0.0017312,
                   0.1849848,
                   0.0272872,
                   0.0073152,
                   0.0000656
               ],
               [
                   "13",
                   0.0032312,
                   0.0007496,
                   0,
                   0.0001832,
                   0.0027656,
                   0,
                   0.0014424,
                   0.0001648,
                   0.0047064,
                   0,
                   0.0114344,
                   0.054776,
                   0.0180368,
                   0.0008552,
                   0.165572,
                   0.0204848,
                   0.0058744,
                   0.0000336
               ],
               [
                   "14",
                   0.00358,
                   0.0001736,
                   0,
                   0.0002336,
                   0.0034144,
                   0.0002032,
                   0.0010696,
                   0.0005624,
                   0.0037024,
                   0,
                   0.0074608,
                   0.0557272,
                   0.0140688,
                   0.0005104,
                   0.158268,
                   0.0200168,
                   0.0069544,
                   0
               ],
               [
                   "15",
                   0.0039584,
                   0.0005768,
                   0,
                   0,
                   0.0034208,
                   0,
                   0.0014192,
                   0,
                   0.0036864,
                   0,
                   0.0034384,
                   0.0466888,
                   0.0114856,
                   0.0004912,
                   0.1375096,
                   0.010432,
                   0.0050504,
                   0
               ],
               [
                   "16",
                   0.0013512,
                   0.0010168,
                   0,
                   0,
                   0.003544,
                   0,
                   0.0011384,
                   0.0002192,
                   0.0049456,
                   0,
                   0.0030128,
                   0.04154,
                   0.0112808,
                   0.0004424,
                   0.1385032,
                   0.0080824,
                   0.0030032,
                   0
               ],
               [
                   "17",
                   0.000656,
                   0.0004032,
                   0,
                   0,
                   0.0047664,
                   0,
                   0.000624,
                   0,
                   0.0038272,
                   0,
                   0.001724,
                   0.0476712,
                   0.010688,
                   0.0001768,
                   0.1515456,
                   0.0042888,
                   0.0025344,
                   0
               ],
               [
                   "18",
                   0.0002072,
                   0.000548,
                   0,
                   0,
                   0.0013928,
                   0,
                   0.0003112,
                   0,
                   0.0062192,
                   0,
                   0.002216,
                   0.0364216,
                   0.010904,
                   0.0003704,
                   0.1633096,
                   0.0048992,
                   0.0043688,
                   0
               ],
               [
                   "19",
                   0,
                   0.0002552,
                   0.0000496,
                   0,
                   0.001208,
                   0.0001248,
                   0.0007448,
                   0,
                   0.0033552,
                   0,
                   0.002048,
                   0.0295688,
                   0.0097448,
                   0.000392,
                   0.1492296,
                   0.0049808,
                   0.0025168,
                   0
               ],
               [
                   "20",
                   0.0001408,
                   0.0004624,
                   0.000032,
                   0,
                   0.000316,
                   0,
                   0.0006624,
                   0,
                   0.0023448,
                   0,
                   0.0017504,
                   0.026336,
                   0.0119008,
                   0.0004808,
                   0.111344,
                   0.0025096,
                   0.0022376,
                   0
               ],
               [
                   "21",
                   0.00014,
                   0.0002048,
                   0,
                   0,
                   0.0012544,
                   0,
                   0.0005848,
                   0,
                   0.002036,
                   0,
                   0.0016744,
                   0.0242488,
                   0.0074,
                   0.0002464,
                   0.0958752,
                   0.003496,
                   0.003692,
                   0.000048
               ],
               [
                   "22",
                   0,
                   0.000468,
                   0,
                   0,
                   0.0007688,
                   0,
                   0.0007256,
                   0,
                   0.0012288,
                   0,
                   0.0017296,
                   0.0182968,
                   0.0078496,
                   0.000984,
                   0.0959712,
                   0.0025512,
                   0.00256,
                   0
               ],
               [
                   "23",
                   0,
                   0.0001848,
                   0,
                   0.0000376,
                   0.0009992,
                   0.0001128,
                   0.0006472,
                   0,
                   0.0015744,
                   0,
                   0.000596,
                   0.0204672,
                   0.0051768,
                   0.000256,
                   0.0792264,
                   0.0026608,
                   0.00304,
                   0
               ],
               [
                   "24",
                   0,
                   0,
                   0,
                   0,
                   0.0004696,
                   0,
                   0.0013144,
                   0,
                   0.000764,
                   0,
                   0.0007064,
                   0.0158792,
                   0.0047856,
                   0.0006248,
                   0.0699104,
                   0.0019576,
                   0.000912,
                   0
               ],
               [
                   "25",
                   0,
                   0.0001984,
                   0,
                   0,
                   0.000492,
                   0.0002832,
                   0.0009328,
                   0,
                   0.0007952,
                   0,
                   0.0007848,
                   0.0159672,
                   0.0047048,
                   0.0012864,
                   0.068464,
                   0.0014952,
                   0.00078,
                   0
               ],
               [
                   "26",
                   0,
                   0.0011512,
                   0,
                   0,
                   0.0003504,
                   0,
                   0.0011384,
                   0,
                   0.0003432,
                   0,
                   0.0005408,
                   0.0113456,
                   0.003832,
                   0.0013424,
                   0.069768,
                   0.0012656,
                   0.00044,
                   0
               ],
               [
                   "27",
                   0,
                   0.0002784,
                   0.0001656,
                   0,
                   0.0008128,
                   0.000076,
                   0.000768,
                   0,
                   0.0011368,
                   0,
                   0.0004128,
                   0.0087872,
                   0.0059576,
                   0.0016224,
                   0.0801088,
                   0.001252,
                   0.0011912,
                   0
               ],
               [
                   "28",
                   0,
                   0.0012368,
                   0,
                   0,
                   0.0001696,
                   0.0001592,
                   0.0004952,
                   0,
                   0.0010616,
                   0,
                   0.0004512,
                   0.0071376,
                   0.0068376,
                   0.000968,
                   0.0740088,
                   0.0004744,
                   0.0007928,
                   0
               ],
               [
                   "29",
                   0,
                   0.0005128,
                   0.0003416,
                   0,
                   0,
                   0,
                   0.000688,
                   0.0000448,
                   0.0003456,
                   0,
                   0.0001336,
                   0.0051304,
                   0.0064584,
                   0.0014664,
                   0.0791528,
                   0.001764,
                   0.0014576,
                   0
               ],
               [
                   "30",
                   0,
                   0.0006944,
                   0.000248,
                   0,
                   0.0006208,
                   0,
                   0.0005584,
                   0,
                   0.0008192,
                   0.0000936,
                   0.0004712,
                   0.0047176,
                   0.0042384,
                   0.00172,
                   0.115972,
                   0.0015784,
                   0.0017704,
                   0
               ],
               [
                   "31",
                   0,
                   0.0005784,
                   0,
                   0,
                   0.0002392,
                   0,
                   0.0014008,
                   0,
                   0.0003192,
                   0,
                   0.0000536,
                   0.0046104,
                   0.0065944,
                   0.0029704,
                   0.1296152,
                   0.0010976,
                   0.0020384,
                   0
               ],
               [
                   "32",
                   0,
                   0.0006152,
                   0.0001136,
                   0,
                   0.0002904,
                   0.000224,
                   0.0014688,
                   0,
                   0,
                   0,
                   0.0002352,
                   0.0028976,
                   0.010068,
                   0.0052328,
                   0.0871648,
                   0.001152,
                   0.0006968,
                   0
               ],
               [
                   "33",
                   0,
                   0,
                   0,
                   0,
                   0.0001616,
                   0.0002664,
                   0.0009312,
                   0,
                   0.0004288,
                   0,
                   0.0009984,
                   0.0022912,
                   0.0133576,
                   0.0080896,
                   0.0832176,
                   0.0015424,
                   0.0004048,
                   0
               ],
               [
                   "34",
                   0,
                   0.000964,
                   0,
                   0,
                   0.0001616,
                   0.000164,
                   0.0008368,
                   0,
                   0.0002248,
                   0,
                   0.000884,
                   0.0017768,
                   0.0170248,
                   0.0106416,
                   0.088036,
                   0.0020376,
                   0.0008536,
                   0
               ],
               [
                   "35",
                   0,
                   0.0004984,
                   0,
                   0,
                   0.000272,
                   0.0003,
                   0.0014392,
                   0,
                   0.0000104,
                   0,
                   0.0007896,
                   0.0005824,
                   0.0197216,
                   0.0204136,
                   0.0926296,
                   0.001196,
                   0.0012688,
                   0
               ],
               [
                   "36",
                   0,
                   0.0005864,
                   0,
                   0,
                   0,
                   0.0005176,
                   0.000628,
                   0,
                   0.0001152,
                   0,
                   0.0017184,
                   0.0004392,
                   0.054088,
                   0.0198704,
                   0.064948,
                   0.0005312,
                   0.000904,
                   0
               ],
               [
                   "37",
                   0,
                   0,
                   0,
                   0,
                   0.0000792,
                   0.0007544,
                   0.000328,
                   0,
                   0,
                   0,
                   0.001468,
                   0.000288,
                   0.0227232,
                   0.0111416,
                   0.0685568,
                   0.0003232,
                   0.0020376,
                   0
               ],
               [
                   "38",
                   0,
                   0.0009288,
                   0,
                   0,
                   0.0004648,
                   0.0006704,
                   0.000152,
                   0,
                   8e-7,
                   0,
                   0.0005128,
                   0.0001744,
                   0.0075096,
                   0.0110016,
                   0.0694952,
                   0,
                   0.0004016,
                   0
               ],
               [
                   "39",
                   0,
                   0.0002024,
                   0,
                   0,
                   0,
                   0.0005552,
                   0,
                   0,
                   0.0001112,
                   0,
                   0.0007864,
                   0.0000032,
                   0.010444,
                   0.006888,
                   0.0560312,
                   0.0000688,
                   0.0004392,
                   0
               ],
               [
                   "40",
                   0,
                   0.0005048,
                   0,
                   0,
                   0.0010672,
                   0,
                   0.000376,
                   0,
                   0,
                   0,
                   0.0005056,
                   0,
                   0.0079888,
                   0.0054208,
                   0.0438136,
                   0.0001504,
                   0.0005216,
                   0
               ],
               [
                   "41",
                   0,
                   0.0003152,
                   0,
                   0,
                   0,
                   0.0003816,
                   0.0000728,
                   0,
                   0.0001656,
                   0,
                   0.0004496,
                   0.00008,
                   0.0036024,
                   0.0028304,
                   0.032628,
                   0.0001368,
                   0.0002408,
                   0
               ],
               [
                   "42",
                   0,
                   0.0003664,
                   0,
                   0,
                   0.0011912,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0.0001824,
                   0,
                   0.0007016,
                   0.00976,
                   0.0277536,
                   0.0001632,
                   0.0006376,
                   0
               ],
               [
                   "43",
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0.0003856,
                   0,
                   0,
                   0,
                   0.0004808,
                   0,
                   0.0030568,
                   0.0042272,
                   0.0193976,
                   0,
                   0.0002728,
                   0
               ],
               [
                   "44",
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0.000596,
                   0,
                   0.0006304,
                   0.0019544,
                   0.0179832,
                   0.0004008,
                   0,
                   0
               ],
               [
                   "45",
                   0,
                   0,
                   0,
                   0,
                   0,
                   0.0002032,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0.0010296,
                   0.0017776,
                   0.0089008,
                   0.0003296,
                   0.0002712,
                   0
               ],
               [
                   "46",
                   0,
                   0.0001944,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0.000888,
                   0.0002592,
                   0.0082264,
                   0.0002568,
                   0,
                   0
               ],
               [
                   "47",
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0.0014864,
                   0,
                   0.005568,
                   0.0001376,
                   0,
                   0
               ],
               [
                   "48",
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0,
                   0.0002512,
                   0,
                   0.0006816,
                   0.000708,
                   0.001692,
                   0,
                   0,
                   0
               ],
               "49"
           ]
       },
       "xAxis": {
           "type": "category"
       },
       "yAxis": {
           "type": "value"
       },
       "series": [
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           },
           {
               "type": "bar",
               "stack": "total"
           }
       ]
   }
   
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   ```html
   <!DOCTYPE html>
   <html style="height: 100%">
       <head>
           <meta charset="utf-8">
       </head>
       <body style="height: 100%; margin: 0">
           <div id="container" style="height: 70%; width: 40%; float: left; 
margin-left: 5%; margin-top: 5%; margin-right: 10%"></div>
           <div id="pie" style="height: 80%; width: 40%; float: right; 
margin-right: 5%;  margin-top: 5%;"></div>
           <script type="text/javascript" src="./echarts.min.js"></script>
           <script type="text/javascript">
               var dom = document.getElementById("container");
               var myChart = echarts.init(dom);
               var dataset={ 
        dataset:{
                source:[
        ['Other', 'DNA/CMC', 'DNA/Crypton', 'DNA/Harbinger', 'DNA/hAT', 
'DNA/Maverick', 'DNA', 'DNA/MULE', 'DNA/P', 'DNA/PiggyBac', 'DNA/TcMar', 
'RC/Helitron', 'LTR/Pao', 'LTR/Copia', 'LTR/Gypsy', 'LINE/R1', 'LINE/Jockey-I'],
                ['0', 0.0032192, 0.0116608, 0.014516, 5.68e-05, 0.0331536, 
0.0085608, 0.0002216, 0.0014448, 0.0066264, 0, 0.1415824, 0.0011136, 1.023628, 
0.3127176, 3.3720664, 0.2429456, 0.2629344, 0.0069976],
                ['1', 0.0052976, 0.0087424, 0.000916, 0, 0.0019352, 0.0190464, 
0, 0.0002424, 0.1357784, 0.0015712, 0.0201504, 0.0003488, 0.1890264, 0.086456, 
1.1669912, 0.1066704, 0.0332248, 0.0094352],
                ['2', 0.0051768, 0.0293944, 0.006336, 0, 0.0025792, 0.0124544, 
0, 0, 0.1507968, 0, 0.016768, 0.001108, 0.293852, 0.0465432, 0.5492168, 
0.2186376, 0.0117136, 0.0088704],
                ['3', 0.0024056, 0.0312656, 0.0066488, 0.0005832, 0.0049592, 
0.0067264, 0, 0, 0.1111456, 0.001072, 0.0301352, 0.003108, 0.294836, 0.0341184, 
0.4384064, 0.0950424, 0.0053512, 0.0018424],
                ['4', 0.0001112, 0.03766, 0.0035296, 0.0009288, 0.008856, 
0.0009112, 0.0003416, 0, 0.0729424, 0.0019416, 0.0416808, 0.004608, 0.2660472, 
0.0125864, 0.4106632, 0.0459256, 0.0231744, 0.0031128],
                ['5', 0, 0.0301888, 0.0010928, 0.0009608, 0.0044216, 0.0007072, 
0.0012592, 0, 0.0494144, 0.0008696, 0.0443912, 0.0072208, 0.0925344, 0.0094824, 
0.3718024, 0.037016, 0.0491472, 0.0006552],
                ['6', 0.0001888, 0.0149512, 0.000232, 0.0020408, 0.0051264, 
0.0009368, 0.0008544, 0, 0.0269144, 0, 0.029916, 0.0137808, 0.0328824, 
0.0123056, 0.3671568, 0.0320496, 0.0544488, 0.0006168],
                ['7', 0.0001888, 0.0089088, 0.000756, 0.00068, 0.0047064, 
0.0001904, 0.0013416, 8.64e-05, 0.0109616, 0.0001736, 0.021552, 0.0192272, 
0.0202496, 0.006896, 0.2971664, 0.0277576, 0.023656, 0.0001376],
                ['8', 0, 0.005728, 0.0003504, 0.0012032, 0.0020952, 0, 
0.001612, 0.0003472, 0.0111144, 0, 0.037332, 0.0355736, 0.0233744, 0.0064808, 
0.2904992, 0.0183616, 0.0259064, 0],
                ['9', 0.000228, 0.004228, 7.84e-05, 0.0009592, 0.0081, 
0.0006528, 0.0008768, 0.0004608, 0.0104928, 0, 0.0518272, 0.0431408, 0.0224592, 
0.0027464, 0.345344, 0.0122288, 0.0175216, 0],
                ['10', 0.0007176, 0.0060016, 8.24e-05, 0.0006072, 0.001956, 
0.00022, 0.0012672, 0.0001136, 0.0099888, 0.00016, 0.0238896, 0.0582024, 
0.0252456, 0.0003672, 0.2352656, 0.0224208, 0.0092992, 0.000112],
                ['11', 0.0003432, 0.0037152, 0, 0.001124, 0.0023544, 0.000476, 
0.0006104, 0.0010856, 0.0057152, 0.0008352, 0.017132, 0.0589424, 0.0257696, 
0.00174, 0.1777736, 0.0216848, 0.004932, 0],
                ['12', 0.001912, 0.0024944, 2.8e-05, 0.000276, 0.002988, 
0.000288, 0.0009832, 0.0001656, 0.0078216, 0, 0.0163432, 0.0581264, 0.017764, 
0.0017312, 0.1849848, 0.0272872, 0.0073152, 6.56e-05],
                ['13', 0.0032312, 0.0007496, 0, 0.0001832, 0.0027656, 0, 
0.0014424, 0.0001648, 0.0047064, 0, 0.0114344, 0.054776, 0.0180368, 0.0008552, 
0.165572, 0.0204848, 0.0058744, 3.36e-05],
                ['14', 0.00358, 0.0001736, 0, 0.0002336, 0.0034144, 0.0002032, 
0.0010696, 0.0005624, 0.0037024, 0, 0.0074608, 0.0557272, 0.0140688, 0.0005104, 
0.158268, 0.0200168, 0.0069544, 0],
                ['15', 0.0039584, 0.0005768, 0, 0, 0.0034208, 0, 0.0014192, 0, 
0.0036864, 0, 0.0034384, 0.0466888, 0.0114856, 0.0004912, 0.1375096, 0.010432, 
0.0050504, 0],
                ['16', 0.0013512, 0.0010168, 0, 0, 0.003544, 0, 0.0011384, 
0.0002192, 0.0049456, 0, 0.0030128, 0.04154, 0.0112808, 0.0004424, 0.1385032, 
0.0080824, 0.0030032, 0],
                ['17', 0.000656, 0.0004032, 0, 0, 0.0047664, 0, 0.000624, 0, 
0.0038272, 0, 0.001724, 0.0476712, 0.010688, 0.0001768, 0.1515456, 0.0042888, 
0.0025344, 0],
                ['18', 0.0002072, 0.000548, 0, 0, 0.0013928, 0, 0.0003112, 0, 
0.0062192, 0, 0.002216, 0.0364216, 0.010904, 0.0003704, 0.1633096, 0.0048992, 
0.0043688, 0],
                ['19', 0, 0.0002552, 4.96e-05, 0, 0.001208, 0.0001248, 
0.0007448, 0, 0.0033552, 0, 0.002048, 0.0295688, 0.0097448, 0.000392, 
0.1492296, 0.0049808, 0.0025168, 0],
                ['20', 0.0001408, 0.0004624, 3.2e-05, 0, 0.000316, 0, 
0.0006624, 0, 0.0023448, 0, 0.0017504, 0.026336, 0.0119008, 0.0004808, 
0.111344, 0.0025096, 0.0022376, 0],
                ['21', 0.00014, 0.0002048, 0, 0, 0.0012544, 0, 0.0005848, 0, 
0.002036, 0, 0.0016744, 0.0242488, 0.0074, 0.0002464, 0.0958752, 0.003496, 
0.003692, 4.8e-05],
                ['22', 0, 0.000468, 0, 0, 0.0007688, 0, 0.0007256, 0, 
0.0012288, 0, 0.0017296, 0.0182968, 0.0078496, 0.000984, 0.0959712, 0.0025512, 
0.00256, 0],
                ['23', 0, 0.0001848, 0, 3.76e-05, 0.0009992, 0.0001128, 
0.0006472, 0, 0.0015744, 0, 0.000596, 0.0204672, 0.0051768, 0.000256, 
0.0792264, 0.0026608, 0.00304, 0],
                ['24', 0, 0, 0, 0, 0.0004696, 0, 0.0013144, 0, 0.000764, 0, 
0.0007064, 0.0158792, 0.0047856, 0.0006248, 0.0699104, 0.0019576, 0.000912, 0],
                ['25', 0, 0.0001984, 0, 0, 0.000492, 0.0002832, 0.0009328, 0, 
0.0007952, 0, 0.0007848, 0.0159672, 0.0047048, 0.0012864, 0.068464, 0.0014952, 
0.00078, 0],
                ['26', 0, 0.0011512, 0, 0, 0.0003504, 0, 0.0011384, 0, 
0.0003432, 0, 0.0005408, 0.0113456, 0.003832, 0.0013424, 0.069768, 0.0012656, 
0.00044, 0],
                ['27', 0, 0.0002784, 0.0001656, 0, 0.0008128, 7.6e-05, 
0.000768, 0, 0.0011368, 0, 0.0004128, 0.0087872, 0.0059576, 0.0016224, 
0.0801088, 0.001252, 0.0011912, 0],
                ['28', 0, 0.0012368, 0, 0, 0.0001696, 0.0001592, 0.0004952, 0, 
0.0010616, 0, 0.0004512, 0.0071376, 0.0068376, 0.000968, 0.0740088, 0.0004744, 
0.0007928, 0],
                ['29', 0, 0.0005128, 0.0003416, 0, 0, 0, 0.000688, 4.48e-05, 
0.0003456, 0, 0.0001336, 0.0051304, 0.0064584, 0.0014664, 0.0791528, 0.001764, 
0.0014576, 0],
                ['30', 0, 0.0006944, 0.000248, 0, 0.0006208, 0, 0.0005584, 0, 
0.0008192, 9.36e-05, 0.0004712, 0.0047176, 0.0042384, 0.00172, 0.115972, 
0.0015784, 0.0017704, 0],
                ['31', 0, 0.0005784, 0, 0, 0.0002392, 0, 0.0014008, 0, 
0.0003192, 0, 5.36e-05, 0.0046104, 0.0065944, 0.0029704, 0.1296152, 0.0010976, 
0.0020384, 0],
                ['32', 0, 0.0006152, 0.0001136, 0, 0.0002904, 0.000224, 
0.0014688, 0, 0, 0, 0.0002352, 0.0028976, 0.010068, 0.0052328, 0.0871648, 
0.001152, 0.0006968, 0],
                ['33', 0, 0, 0, 0, 0.0001616, 0.0002664, 0.0009312, 0, 
0.0004288, 0, 0.0009984, 0.0022912, 0.0133576, 0.0080896, 0.0832176, 0.0015424, 
0.0004048, 0],
                ['34', 0, 0.000964, 0, 0, 0.0001616, 0.000164, 0.0008368, 0, 
0.0002248, 0, 0.000884, 0.0017768, 0.0170248, 0.0106416, 0.088036, 0.0020376, 
0.0008536, 0],
                ['35', 0, 0.0004984, 0, 0, 0.000272, 0.0003, 0.0014392, 0, 
1.04e-05, 0, 0.0007896, 0.0005824, 0.0197216, 0.0204136, 0.0926296, 0.001196, 
0.0012688, 0],
                ['36', 0, 0.0005864, 0, 0, 0, 0.0005176, 0.000628, 0, 
0.0001152, 0, 0.0017184, 0.0004392, 0.054088, 0.0198704, 0.064948, 0.0005312, 
0.000904, 0],
                ['37', 0, 0, 0, 0, 7.92e-05, 0.0007544, 0.000328, 0, 0, 0, 
0.001468, 0.000288, 0.0227232, 0.0111416, 0.0685568, 0.0003232, 0.0020376, 0],
                ['38', 0, 0.0009288, 0, 0, 0.0004648, 0.0006704, 0.000152, 0, 
8e-07, 0, 0.0005128, 0.0001744, 0.0075096, 0.0110016, 0.0694952, 0, 0.0004016, 
0],
                ['39', 0, 0.0002024, 0, 0, 0, 0.0005552, 0, 0, 0.0001112, 0, 
0.0007864, 3.2e-06, 0.010444, 0.006888, 0.0560312, 6.88e-05, 0.0004392, 0],
                ['40', 0, 0.0005048, 0, 0, 0.0010672, 0, 0.000376, 0, 0, 0, 
0.0005056, 0, 0.0079888, 0.0054208, 0.0438136, 0.0001504, 0.0005216, 0],
                ['41', 0, 0.0003152, 0, 0, 0, 0.0003816, 7.28e-05, 0, 
0.0001656, 0, 0.0004496, 8e-05, 0.0036024, 0.0028304, 0.032628, 0.0001368, 
0.0002408, 0],
                ['42', 0, 0.0003664, 0, 0, 0.0011912, 0, 0, 0, 0, 0, 0.0001824, 
0, 0.0007016, 0.00976, 0.0277536, 0.0001632, 0.0006376, 0],
                ['43', 0, 0, 0, 0, 0, 0, 0.0003856, 0, 0, 0, 0.0004808, 0, 
0.0030568, 0.0042272, 0.0193976, 0, 0.0002728, 0],
                ['44', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.000596, 0, 0.0006304, 
0.0019544, 0.0179832, 0.0004008, 0, 0],
                ['45', 0, 0, 0, 0, 0, 0.0002032, 0, 0, 0, 0, 0, 0, 0.0010296, 
0.0017776, 0.0089008, 0.0003296, 0.0002712, 0],
                ['46', 0, 0.0001944, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.000888, 
0.0002592, 0.0082264, 0.0002568, 0, 0],
                ['47', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0014864, 0, 
0.005568, 0.0001376, 0, 0],
                ['48', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0002512, 0, 0.0006816, 
0.000708, 0.001692, 0, 0, 0],
                ['49', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0001248, 0, 0.0002128, 
0, 0.0022632, 0, 0, 0]
                ['50', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6.48e-05, 0, 
0.0011136, 0, 0, 0]
        ]},
        pieData : [
                {name : 'Structural_RNA', value : 41206},
                {name : 'Satellite', value : 1770036},
                {name : 'Simple_repeat', value : 4070048},
                {name : 'LINE/R2', value : 39882},
                {name : 'LINE/Jockey-I', value : 718710},
                {name : 'LINE/R1', value : 1235378},
                {name : 'LTR/Gypsy', value : 13464093},
                {name : 'LTR/Copia', value : 821387},
                {name : 'LTR/Pao', value : 3222339},
                {name : 'RC/Helitron', value : 935388},
                {name : 'DNA/TcMar', value : 652274},
                {name : 'DNA/PiggyBac', value : 8534},
                {name : 'DNA/P', value : 800460},
                {name : 'DNA/MULE', value : 6165},
                {name : 'DNA', value : 36013},
                {name : 'DNA/Maverick', value : 70070},
                {name : 'DNA/hAT', value : 143699},
                {name : 'DNA/Harbinger', value : 12628},
                {name : 'DNA/Crypton', value : 44575},
                {name : 'DNA/CMC', value : 262930},
                {name : 'Other', value : 25524},
                {name : 'Unmasked',value :96618661},
        ]
   };
   
               option = null;
               option = {
                   title: {
                       text: 'Interspersed Repeat Landscape',
                       subtext: '',
                       x: 'center'
                   },
                   tooltip: {
                       trigger: 'item',
                       axisPointer: {
                           type: 'shadow'
                       }
                   },
                   toolbox: {
                       show: true,
                       feature: {
                           mark: {show: true},
                           dataView: {show: true, readOnly: false},
                           magicType: {
                               show: true,
                               type: ['pie', 'funnel'],
                               option: {
                                   funnel: {
                                       x: '25%',
                                       width: '50%',
                                       funnelAlign: 'left',
                                       max: 1548
                                   }
                               }
                           },
                           restore: {show: true},
                           saveAsImage: {show: true}
                       }
                   },
                   legend: {
                       type: 'scroll',
                       orient: 'vertical',
                       itemHeight: 11,
                       itemGap: 3,
                       right: 'right',
                       top: 50
                   },
                   dataset: dataset.dataset,
                   xAxis: {type: 'category'},
                   yAxis: {type:'value'},
                   series: [
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'},
                       {type: 'bar', stack: 'total'}
                   ]
               };
               
               if (option && typeof option === "object") {
                   console.log(JSON.stringify(option, null, 4));
                   myChart.setOption(option, true);
               }
   //pie chart
               var dom = document.getElementById("pie");
               var myChart = echarts.init(dom);
               var app = {};
               option = null;
               option = {
                   title: {
                       text: 'Genome Fraction',
                       subtext: '',
                       x: 'center'
                   },
                   toolbox: {
                       show: true,
                       feature: {
                           mark: {show: true},
                           dataView: {show: true, readOnly: false},
                           magicType: {
                               show: true,
                               type: ['pie', 'funnel'],
                               option: {
                                   funnel: {
                                       x: '25%',
                                       width: '50%',
                                       funnelAlign: 'left',
                                       max: 1548
                                   }
                               }
                           },
                           restore: {show: true},
                           saveAsImage: {show: true}
                       }
                   },
                   tooltip: {
                       trigger: 'item',
                       formatter: "{a} <br/>{b} : {c} ({d}%)"
                   },
                   series: [
                       {
                           type: 'pie',
                           radius: '55%',
                           center: ['40%', '50%'],
                           data: dataset.pieData,
                           itemStyle: {
                               emphasis: {
                                   shadowBlur: 10,
                                   shadowOffsetX: 0,
                                   shadowColor: 'rgba(0, 0, 0, 0.5)'
                               }
                           }
                       }
                   ]
               };
   
   
               if (option && typeof option === "object") {
                   myChart.setOption(option, true);
               }
           </script>
       </body>
   </html>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to