Can we render canvas.js charts in Yellowfin chart creation?

Chandana K shared this question 5 years ago
Answered

Hi Team,

I am trying to create Pyramid chart using JS.

I am using canvas.js charts.

I am getting error like "window.onload" is not a function.

Till now I created charts using Google charts and d3.js charts.

Can we render charts using canvas.js ?

I am attaching script for reference.


Regards

Chandana

Replies (1)

photo
1

Hi Chandana,

Window.onload should not be needed in this case, as the generate chart function already serves this purpose.

Are you able to get this to work when you remove this function?

Nathan

photo
1

Hi Nathan,

Thanks for the reply.

I removed window.onload function and tried to execute.

But still I am not able to get it.

and more over it is not showing any error in console.

here is the script after removing window.onload function.


Thanks

Chandana

photo
1

Hi Chandana,

That code does look okay to me, and it is difficult to say what is causing the problems. I would only suggest adding console.log statements to see how far the code gets before it fails.

Unfortunately e do not have any readily available examples of Canvas.js charts, and I am not able to put too much time into solving this as JS charts fall squarely under professional services rather than support.

If you are interested I can get in touch with your account manager to arrange this?

Nathan

photo
1

Hi Chandana,

I am going to close this for now.

Nathan

photo
Leave a Comment
 
Attach a file