I am currently working on creating a stacked bar chart using SharePoint complex list data with REST and JavaScript. The challenge I'm facing is that I'm having difficulty obtaining the proper data sets.
My scenario is as follows: I have a SharePoint 2013 list with 6 columns. I need to create a bar chart where the x-axis represents column-1 (Project Type) and the y-axis stacks based on column-2 (Technology) by the count of different technologies used. There are 7 project types, 15 technologies, and approximately 200 rows with various combinations.
Project Java Python SharePoint .Net
A 3 5 12 1
B 4 7 6 3
C 0 9 1 0
I have experimented with Chart.js, whether it's chart.js, Google chart.js, or Highcharts.js. All I need is for the data to be dynamic so that whenever a user adds more values to the project column, they are automatically added to the x-axis.
I am fairly new to this concept. Can someone please assist me in accomplishing this task? I would appreciate any help, including code examples. Thank you in advance.