web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Using Chart JS to add a chart to a form

(0) ShareShare
ReportReport
Posted on by 2 User Group Leader

Hi, 

I would like to use the radar chart from Chart JS and visualize it on the Opportunity form in Sales Hub. My problem is that when I add the html webresource to the form, it adds it into an iframe and that seems to break the chart visualization. 

Has anyone tried to add a Chart JS chart to their forms successfully? 

I have seen that some people have tried adding everything (html, css, js) directly to their html file. Is that the only way? 

Hopefully someone has tried that before, 

BR, Vivian

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi Vivian,

    Could you share me screenshot that how was visualization of the chart breaked?

    We could add some CSS rules to optimize layout and appearance.

    Here is my web resource sample with chart.js, please take it as reference:

    pastedimage1587016510243v1.png

    Code:

    
    
    
      
      
      Editor
      
      
    
    
    
    
      

    For your second question, we can also import css or js as external web resource then refer them in html web resource.

    https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/webpage-html-web-resources#reference-other-web-resources-from-an-html-web-resource

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 128 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 113

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans