sunil Posted March 20, 2013 Report Share Posted March 20, 2013 i am using jchartfx to draw charts & i am getting following error. Uncaught TypeError: Cannot read property 'Y' of undefined jchartfx.coreBasic.js Uncaught TypeError: Cannot read property 'Area' of undefined Please help me to solve this problem Quote Link to comment Share on other sites More sharing options...
0 angelr Posted March 20, 2013 Report Share Posted March 20, 2013 Make sureyou are adding the required JavaScript Libraries. The only twofiles required in any scenario are:- jchartfx.coreVector.jsor jchartfx.coreBasic.js(depending on whether you want to use Vector based rendering or not)- jchartfx.system.js Beyond thosetwo, you can add or remove references as needed based on the functionality you want to make available on the chart. Are youcalling a specific method when received this error? Quote Link to comment Share on other sites More sharing options...
0 sunil Posted March 21, 2013 Author Report Share Posted March 21, 2013 I have added both the references @**@ script is : $("div", ".ChartDiv1").chart({ gallery: cfx.Gallery.Area, data: { series: 2 }, series: [{ color: "#801702D1", border: { width: 4 } }, { gallery: cfx.Gallery.Lines }], allSeries: { pointLabels: { visible: false }, MarkerShape: cfx.MarkerShape.None }, LegendBox: { visible: true, dock: cfx.DockArea.Bottom }, //----Assign data fields-------- dataSourceSettings: { fields: [{ name: "LowerLimit", usage: cfx.FieldUsage.FromValue }, { name: "UpperLimit", usage: cfx.FieldUsage.Value }, { name: "Value", usage: cfx.FieldUsage.Value }, { name: "Date", usage: cfx.FieldUsage.XValue }] }, //----Set Sample Data------------ dataValues: items }); i am using mvc3 thanks. Quote Link to comment Share on other sites More sharing options...
0 sunil Posted March 21, 2013 Author Report Share Posted March 21, 2013 Angelr, Whenever i add references of "jchartfx.coreBasic.js" script. I get an "Uncaught TypeError: Cannot read property 'Y' of undefined jchartfx.coreBasic.js" error what was the wrong here? Thanks. Quote Link to comment Share on other sites More sharing options...
0 Sacher Posted March 21, 2013 Report Share Posted March 21, 2013 Hi Sunil, Are you using JQuery mobile? If yes, and if you are trying embed the chart inside something like Accordion etc. this may happen. (at least I have seen this issue in such a situation). Apparently the chart cannot reside inside some jqm components. Hope this helps, Sacher Quote Link to comment Share on other sites More sharing options...
Question
sunil
i am using jchartfx to draw charts & i am getting following error.
Uncaught TypeError: Cannot read property 'Y' of undefined jchartfx.coreBasic.js
Uncaught TypeError: Cannot read property 'Area' of undefined
Please help me to solve this problem
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.