fix:pie style

parent c84087e7
...@@ -185,8 +185,8 @@ ...@@ -185,8 +185,8 @@
<v-chart :force-fit="true" :height="350" :data="pieData" :scale="pieScale"> <v-chart :force-fit="true" :height="350" :data="pieData" :scale="pieScale">
<v-tooltip :showTitle="false" dataKey="item*percent" /> <v-tooltip :showTitle="false" dataKey="item*percent" />
<v-axis /> <v-axis />
<v-legend dataKey="item" /> <v-legend dataKey="item" position="right" :offsetX="-140"/>
<v-pie position="percent" color="item" :vStyle="pieStyle" :label="labelConfig" /> <v-pie position="percent" color="item" :vStyle="pieStyle" />
<v-coord type="theta" :radius="0.75" :innerRadius="0.6" /> <v-coord type="theta" :radius="0.75" :innerRadius="0.6" />
</v-chart> </v-chart>
</div> </div>
...@@ -318,12 +318,7 @@ export default { ...@@ -318,12 +318,7 @@ export default {
pieStyle: { pieStyle: {
stroke: '#fff', stroke: '#fff',
lineWidth: 1 lineWidth: 1
}, }
labelConfig: ['percent', {
formatter: (val, item) => {
return item.point.item + ': ' + val
}
}]
} }
}, },
created () { created () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment