PDA

View Full Version : [INFOREQ] Charts with 3dBars doesnt add the require and app after build doesnt work



aestevez
13 Jun 2017, 3:08 AM
Hi,

I was adding some charting with 3d Bars in one view and after I built production app.js the app doesnt work, I have figure it out that was that and I had to manually add the require Ext.chart.* after that worked but im assuming this should be caught automatically by Architect right?

petr.vecera
13 Jun 2017, 4:01 AM
Hi

Yes, it should be handled automatically by SA.
Do you have please full steps to reproduce? Because I can't reproduce it. Would you perhaps be able to reproduce it from the blank project?

Also which framework are you using ?

Thank you
Petr

aestevez
13 Jun 2017, 5:35 AM
Hi Petr,

56424

I have a project and inside one of my views, that is linked to the project i added a new chart bar 3d. After build "production" the app.js generated complains about grid/horizontal3d , to fix it I had to add requieres Ext.chart.*. Hope htat helps. Im updated to latest version of Architect and cmd is

Sencha Cmd v6.5.0.180

I had to add this var Picked up _JAVA_OPTIONS: -Xms2048m -Xmx4096m because i was reaching the GC limit for Java and was not compiling before. After edit the JAVA options the process finished.

petr.vecera
14 Jun 2017, 5:08 AM
Thanks for the additional info but I am not able to reproduce any problems.

My steps:
# Create new ExtJS 6.2 Classic project
# Add panel, add bar chart
# Remove the category axis
# Add 3D Bar Series
# Run production build

Everything works in preview.

aestevez
14 Jun 2017, 5:18 AM
Steps done:
#Create a new Extjs 6.5 Classic Project
Add panel, Add Column Chart 3D
Run production build.
Tried that?

petr.vecera
14 Jun 2017, 5:35 AM
I just tried that and everything works in the production build

56438

In the class requires there are:


requires: [ 'MyApp.view.MyPanelViewModel',
'Ext.chart.CartesianChart',
'Ext.chart.axis.Category3D',
'Ext.chart.axis.Numeric3D',
'Ext.chart.series.Bar3D'
],

Which should be really all that is needed for charts to work.