HTML in SharePointSharePointCopilot 6 min read

D3.js in SharePoint: Turn a List Into an Animated Story With Copilot

Copilot in SharePoint can now use D3.js, which means a view on your list can tell a story about the data in it. Here's how I built a help desk request race in five prompts.

Key takeaways

  • Copilot in SharePoint can use the D3.js library to build animated, interactive views on a SharePoint list or Microsoft list. Microsoft showed it as new at Ignite 2026.
  • In my demo, one prompt produced a working animated bar chart race of help desk requests by category in about two minutes.
  • I built the view in small steps, one change per prompt: commentary, a light and dark switch, a commentary card, then the default theme.
  • Tell Copilot what the commentary may say. Mine sticks to counts and rankings from the list and doesn't guess at causes.
  • The result is a view on the list, so the data stays in SharePoint and people open it like any other view.

Copilot in SharePoint can now use D3.js, a JavaScript library for data-driven charts, to build animated and interactive views on a SharePoint list. In the video above I turn a help desk requests list into a bar chart race that plays month by month with commentary, built with five prompts to Copilot and none of the code typed by me.

Microsoft showed D3.js in HTML views as new at Ignite 2026, alongside the other Copilot in SharePoint announcements. Everything below comes from a demo tenant with sample data: a Help Desk Requests list of 452 items with a Category, a Department and a Date raised column.

What does D3.js add to a SharePoint view?

HTML views already let Copilot in SharePoint put a custom interface on a list or library. I’ve covered multi-tab views and a custom interface for a list. D3.js adds motion and data-driven drawing: bars that grow, reorder and count up as a timeline plays, scales that stretch as totals rise, and controls that redraw the chart on the fly.

In my demo the list keeps its All requests, By category and Open requests views, and Request race sits next to them as one more tab. Anyone who opens the list can switch to it.

How do you build a D3.js view with Copilot in SharePoint?

Open the list, open Copilot in SharePoint and describe the view you want. Then shape it one change at a time. These are the five steps I took, in order.

  1. Ask for the first version. I asked for an animated bar chart race called Request Race: one bar per category, a running total of requests by month using the Date raised column, play and pause, replay, a timeline slider and a Department filter. It came back in about 90 seconds to two minutes, already animating.
  2. Add commentary and slow it down. The first version already showed the month in large, bold type. I asked for a line under the chart describing each month, and for the race to slow down so there’s time to read it. At the original speed the months went past too quickly.
  3. Add a light and dark switch. One prompt, with where to put the button. It came back quickly, and the slider, buttons and chart all switch with it.
  4. Turn the commentary into a card. A line of text under the chart is easy to miss. I asked for a card at the top right that changes with each month, with the month in bold and the commentary underneath.
  5. Make light the default. The last change set the light view, on a white background, as the one people see first, with dark a click away.

The first version took the longest. The follow-up changes came back faster, and I checked each result before asking for the next one.

The finished view plays, pauses, replays, jumps month to month on the timeline, filters by department and switches between light and dark.

The exact prompts go out in the next edition of my newsletter. Subscribe above if you want them.

Tell Copilot what the commentary is allowed to say

Once Copilot is writing sentences about your data, people will read them as fact, so the prompt has to say what it may and may not say.

Mine works the commentary out from the list for that month and starts with how many requests were raised. Then it adds the single most notable change: a new leader, one category passing another in the top five, a category’s first ever request, or the busiest category that month. It names the categories exactly as they appear in the list, and it is told not to guess at reasons or causes.

I’d also hold any view like this to a few other rules:

  • Use the right date column. My list has a Date raised column for when the request came in. Created only tells you when the item was added, which for imported data is the import date.
  • Ask for every item. Tell Copilot to use the whole list, not only the first page of results, and check the final total against the item count. Mine finishes on 452.
  • Change one thing at a time. Each prompt in my build ends by asking Copilot to keep everything else exactly as it is.
  • Remember who can see the list. The view shows whatever is in the list to anyone who can open it, now as a chart and a running commentary. If a list holds something only some people should see, sort out its permissions before you put a story on top of it.

Where would you use a view like this?

Anywhere a list grows over time and someone needs to see what’s changing: help desk requests, incidents, risks, assets, renewals or project issues. A bar chart race suits a ranking that shifts, such as which category leads. Start with the list you’d most like to see month by month and describe to Copilot what you want people to notice.

Frequently asked questions

Do I need to write any code to use D3.js in SharePoint? Not in my demo. Every change came from a plain-English prompt to Copilot in SharePoint, and Copilot wrote the view. You can keep asking it to change the view after it’s created.

Can people still filter the data in a D3.js view? Yes, if you ask for it. My request race has a Department filter, so you can flick between departments to get the story for each one, or look across all of them.

How long does Copilot take to build the view? The first version took about 90 seconds to two minutes in my demo. The light and dark switch came back in less.

Can I delete the view and start again? Yes. I deleted the finished Request race view at the start of the demo and rebuilt it from the All requests view, and the list’s data was all still there.

Get these in your inbox. Three emails a week.

Practical thinking on organising your information and getting real work out of AI. Subscribers get the free SharePoint Skill course to start.