The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

paulharv (5) [Avatar] Offline
#1
Hi,

Loving the book. Very well explained.

I cannot get Listing 10.1 working. Every other listing I've tried so far (Ch's 1-7) has worked. (I've not tried others yet in Ch10)

When I load the page an empty chart is created. The X-axis is blank, the Y-axis has markings for 0, 0.5, 1 and 1.5.

I verified that http://extjsinaction.com/examples/chapter10/employeeData.json.js returns data. Somehow the chart is not getting the data (if I provide a bogus url in place of the one above I get the same results.)

Would love to resolve this as it's the main thing I need to figure out today!!

Cheers

Message was edited by:
paulharv

null
jesus.garcia (463) [Avatar] Offline
#2
Re: Not working for me: Listing 10.1 Constructing a basic line chart
All of the examples at http://extjsinaction.com/examples/chapter10/ work perfectly.

some things to think about:

Are you fetching the data from your local web server or from (the remote) extjsinaction.com? Think about what you learned in chapter 7 about data stores.
paulharv (5) [Avatar] Offline
#3
Re: Not working for me: Listing 10.1 Constructing a basic line chart
Thanks! Actually, I was just coming to answer my own post - I tried the example code from the site (rather than from the book) and it worked. Not yet analyzed the difference.

Thanks for you reply.
jesus.garcia (463) [Avatar] Offline
#4
Re: Not working for me: Listing 10.1 Constructing a basic line chart
How old is the version of the book you're working on?


The latest version has the following example: http://www.extpaste.com/#3102
Christian.d (2) [Avatar] Offline
#5
Re: Not working for me: Listing 10.1 Constructing a basic line chart
http://www.extpaste.com/#3102

using this example, I have this error message:
this.swf.setType is not a function Line 35324

And if I look into FireBug -> DOM -> remoteStore it has no data.