Jamol
Jamol

Reputation: 3908

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.

Upvotes: 1

Views: 1386

Answers (2)

Shivkumar Loka
Shivkumar Loka

Reputation: 14

I created an app with sencha cmd, included "sencha-charts" package in the required fields in app.json app.json looks like this.

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

Main.js looks like this.

Built the app using Cmd. sencha app watch.

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

app running on server

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.

Upvotes: -1

Shivkumar Loka
Shivkumar Loka

Reputation: 14

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

code-3d pie deployed 3d pie

Upvotes: -1

Related Questions