javasws opened a new issue #13172:
URL: https://github.com/apache/incubator-echarts/issues/13172


   option = {
           legend: {},
           tooltip: {},
           dataset: {
               source: [
                   ['product', '2013', '2014', '2015'],
                   ['繁忙', 41.1, 30.4, 65.1, 53.3],
                   ['小休', 86.5, 92.1, 85.7, 83.1],
                   ['离开', 24.1, 67.2, 79.5, 86.4],
                   ['用餐', 55.2, 67.1, 69.2, 72.4]
               ]
           },
           series: [{
               type: 'pie',
               radius: ['10%', '15%'],
               center: ['50%', '20%'],
               encode: {
                   itemName: 'product',
                   value: '2013',
               },
               label:{
                   formatter: [
                       '{Sunny|}{value|{c}}{rate|{d}}',
                       '{hr|}',
                       '{title|{b}}',
                   ].join('\n'),
                   // backgroundColor: '#eee',
                   borderWidth: 1,
                   borderRadius: 4,
                   rich: {
                       title: {
                           color: '#0ff',
                           height: 25,
                           align: 'center'
                       },
                       Sunny: {
                           height: 20,
                           align: 'left',
                       },
                       hr: {
                           borderColor: '#777',
                           width: '100%',
                           borderWidth: 0.5,
                           height: 0
                       },
                       value: {
                           width: 20,
                           padding: [0, 20, 0, 30],
                           align: 'left'
                       },
                       rate: {
                           width: 40,
                           align: 'right',
                           padding: [0, 10, 0, 0]
                       }
                   }
               }
           }, {
               type: 'pie',
               radius: ['10%', '15%'],
               center: ['50%', '50%'],
               encode: {
                   itemName: 'product',
                   value: '2014'
               },
                label:{
                   formatter: [
                       '{Sunny|}{value|{c}}{rate|{d}}',
                       '{hr|}',
                       '{title|{b}}',
                   ].join('\n'),
                   // backgroundColor: '#eee',
                   borderWidth: 1,
                   borderRadius: 4,
                   rich: {
                       title: {
                           color: '#0ff',
                           height: 25,
                           align: 'center'
                       },
                       Sunny: {
                           height: 20,
                           align: 'left',
                       },
                       hr: {
                           borderColor: '#777',
                           width: '100%',
                           borderWidth: 0.5,
                           height: 0
                       },
                       value: {
                           width: 20,
                           padding: [0, 20, 0, 30],
                           align: 'left'
                       },
                       rate: {
                           width: 40,
                           align: 'right',
                           padding: [0, 10, 0, 0]
                       }
                   }
               }
           }, {
               type: 'pie',
               radius: ['10%', '15%'],
               center: ['50%', '80%'],
               encode: {
                   itemName: 'product',
                   value: '2015'
               },
                label:{
                   formatter: [
                       '{Sunny|}{value|{c}}{rate|{d}}',
                       '{hr|}',
                       '{title|{b}}',
                   ].join('\n'),
                   // backgroundColor: '#eee',
                   borderWidth: 1,
                   borderRadius: 4,
                   rich: {
                       title: {
                           color: '#0ff',
                           height: 25,
                           align: 'center'
                       },
                       Sunny: {
                           height: 20,
                           align: 'left',
                       },
                       hr: {
                           borderColor: '#777',
                           width: '100%',
                           borderWidth: 0.5,
                           height: 0
                       },
                       value: {
                           width: 20,
                           padding: [0, 20, 0, 30],
                           align: 'left'
                       },
                       rate: {
                           width: 40,
                           align: 'right',
                           padding: [0, 10, 0, 0]
                       }
                   }
               }
           }]
       };


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to