charts
3 TopicsChartJs How to Include and Consume
I am trying to use this web page to create a Chart.JS webpart. https://dataninjago.com/2016/11/28/building-sharepoint-framework-client-side-chart-web-parts-using-chart-js/ I am having only one problem when I try to consume the ChartJS object at this line of code: const chart = new jsChart(ctx, { The error is: Error - [tsc] src/webparts/chartJs/components/ChartJs.tsx(38,19): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature. I am adding the ChartJS cdn in the config.json file in the externals section: "externals": { "jsChart": { "path": "https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.bundle.min.js", "globalName": "jsChart" } } What am I supposed to be doing differently?Solved2.2KViews0likes1CommentChart from a calendar
I'm just starting on my SharePoint journey. I'd like to put a calendar of events I've got booked on my site, which is fairly simple, I've worked that much out. Below this I'd like to put a column chart showing how many events I've got booked in each month. I know I could possibly export the calendar as a csv, then come up with a way of doing a count, or even a pivot chart in excel and maybe import that back into SharePoint, but I was hoping for a more dynamic solution, where the chart would be linked to the calendar, and would update as new events are added. Is this possible?907Views0likes1CommentFriday Functions : Easy Punch List App with a Mini Percent-Complete Bar Chart!
Learn how to take two rectangles and make your own mini percent complete bar chart from them. This could be modified to be a fun Gantt chart too! Please share if you have you own ideas on how to achieve this idea - in your own creative ways. Enjoy your weekend! Audrie https://www.youtube.com/watch?v=5qfGxYrmSpM