Skip to main content

Designing Custom Block using Chart JS, What is syntax to get column array data from table into data point

  • July 29, 2020
  • 1 reply
  • 17 views

Hi folks, I’m having alot of issues calling the records array that holds all the column data in my grid into my chart.js react file.

Currently I have a static array in my data field where I am manually entering inputs but I want the data field to be able to read directly from a specific column array so it will update dynamically?

Does anyone have any examples on how to have this done?

1 reply

Forum|alt.badge.img+18
  • Inspiring
  • July 30, 2020

This may or may not be helpful. First, here’s a link to the simple chart index.js file.

Look at functions useRecords and getChartData.

Good luck!