Closed sarinapadilla closed 1 year ago
The Extramural Funds highchart currently hardcodes the data for the chart within the .js file. The javascript should load the data from a JSON file uploaded in the CMS.
Chart .js: https://github.com/NCIOCPL/cgov-digital-platform/blob/develop/docroot/profiles/custom/cgov_site/themes/custom/cgov/cgov_common/src/libraries/charts/library/html-extramural.js
Parent Issue: #3008
Data:
{ chart: { type: 'NCI_pie' }, title: { text: 'Extramural Funds' }, subtitle: { text: 'Fiscal Year 2021' }, series: [{ name: 'Budget', data: [{ name: 'Contracts', y: 842246516, drilldown: 'Contracts' }, { name: 'Grants', y: 4035080270, drilldown: 'Grants' }] }], drilldown: { series: [{ name: 'Contracts', id: 'Contracts', colors: ['#2DC799', '#ABE9D6', '#229573', '#17644D', '#D5F4EB', '#0B3226'], data: [['Research & Development (R&D) Contracts', 812246516], ['Buildings and Facilities', 30000000], ['Construction Contracts', 0]] }, { name: 'Grants', id: 'Grants', colors: ['#80378B', '#602968', '#B387B9', '#532C68', '#D0B9D7', '#5A4F79', '#DCD5E1', '#995FA2'], data: [['Research Project Grants (RPGs)', 2822414508], ['Centers/Specialized Centers/SPORES', 563521069], ['NRSA', 92995313], ['Other Research Grants', 556149380]] }] } }
This task was completed with PR #3778, so closing this ticket!
The Extramural Funds highchart currently hardcodes the data for the chart within the .js file. The javascript should load the data from a JSON file uploaded in the CMS.
Chart .js: https://github.com/NCIOCPL/cgov-digital-platform/blob/develop/docroot/profiles/custom/cgov_site/themes/custom/cgov/cgov_common/src/libraries/charts/library/html-extramural.js
Parent Issue: #3008
Notes
Data: