简体   繁体   中英

Extjs 5.0.0 does not show labels in 3d pie chart

I am using extjs 5 charts and want to create 3d pie chart. I am using the following code to show legend on the right hand side:

legend: {
    docked: 'right',
},

It works in pie series, but not in pie3d.

Can anyone help me to show the legend in 3d pie properly using the following examples: http://dev.sencha.com/extjs/5.0.0/examples/kitchensink/?charts=true#pie-3d http://dev.sencha.com/extjs/5.0.0/examples/kitchensink/?charts=true#pie-basic

As can be seen, even example page does not provide legend for 3d pie chart, so I think there must be something wrong.

I created an app with sencha cmd, included "sencha-charts" package in the required fields in app.json app.json看起来像这样。

added some static data with the code from the kitchen sink example app. in app->view->main

Main.js看起来像这样。

Built the app using Cmd. sencha app watch.

This is what my app looks like (since I have docked the legend on the right:

在服务器上运行的应用

please post your entire code so i can take a look. Ask if you need some further help with this example.

PS: If you look at the sencha sample app from the kitchen sink, the legend is docked at the bottom of the page and can be seen upon scrolling down.

The 3d pie app is just a sample to show that legend displays fine.

This is the 3d pie chart code screen shot and the screen shot of the deployed project.

代码3d派部署的3d派

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM