Jump to content
JChartFX Community
  • 0
JohnDeery

toUppserCase is not a function when using Motifs

Question

I'm having an issue when trying to use Motifs in my charts. When adding in a call to the hook motif (and tested on others too), I'm seeing the following error:

TypeError: c.toUpperCase is not a function (jchartfx.motif.hook.js:21:309)

  • chart https://website/jchartfx/motifs/jchartfx.motif.hook.js:21
  • _Em https://website/js/jchartfx/jchartfx.system.js:4
  • _0_4 https://website/js/jchartfx/jchartfx.coreVector.js:710
  • e https://website/js/jchartfx/jchartfx.coreVector.js:691

I have tried to include jchartfx.motif.js and that doesn't fix it (in fact if I use that file and remove the actual motif, I still get the error), but according to the documentation from the main site it looks like I only need to include the motif.hook file.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Can you please let us know the version of jchartfx you are using

alert(cfx.Version);

Also can you duplicate this problem with a dummy chart on a test page?

The minimum set of files you would need to create a chart with a specific motif are jchartfx.system.js, jchartfx.coreVector.js and jchartfx.motif.hook.js

Regards,

JuanC

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, JuanC said:

Hi Juan,

I'm using 7.5.5900.27885. Everything seems to work until I add that file in, however I was able to set up a bare-bones example and I didn't get that error, so it looks like something else in my script it triggering it. I'm going to have another go at it to see if I can figure out what's up, thanks for looking in to it though!

 

Share this post


Link to post
Share on other sites
  • 0

I was checking the source of our motifs and the code that uses toUpperCase is generally associated with code that tries to customize the look of the control when the object is created.

Are you passing any parameters to the new cfx.Chart() call ?

PS: You might want to try making a backup copy of your jChartFX scripts and downloading our most recent build from jchartfx.com

Regards,

JuanC

Share this post


Link to post
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...