Home › forums › Using CanvasJS › Drawing a graph on a pre-existing canvas › Reply To: Drawing a graph on a pre-existing canvas
As of now it requires a div element inside which the chart is rendered. This is because chart includes various other DOM elements like menu button, etc.
I would suggest rendering chart inside a hidden div element and then copying the content of chart into your canvas using drawImage method.
ASP.NET MVC Charts
ContactSales EnquiriesSupport ForumTwitter Support Handle