Home forums Report Bugs TyprError: a.replace is not a function

This topic contains 1 reply, has 1 voice, and was last updated by  pineyscripter 3 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #9768

    Charts had been working great then all of a sudden I am getting no chart and when I look at the console error log I see that error

    TyprError: a.replace is not a function

    current jquery version 1.11.3
    current jqueryui version 1.11.4
    current CanvasJS version 1.7.0


    Finally figured it out:
    when creating the graph I pass variables to most of the options
    and the variable passed to the labelText: and label: options were not strings
    it always worked before so I am at a loss as to why it stopped working.
    anyway I toString() ‘d the variable and now it all works again.
    I use an ajax call to get the data for the graph
    I use mysql to provide the data to the ajax call
    The only thing that I had changed was that I did move my server to a VPS server (from a shared hosting account)

    the TypeError: a.replace is not a function spoofed me – the processes just didn’t get passed a complete/correct set of data and that triggered that particular error

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.