Gave Chart Component access to CMS table

we have chart component, and v9.0 also have cms which collection feature supports many data types including number.
how about allowing chart component to use cms collection(s) as it’s dataset

That’s an interesting idea. Can you give an example of the type of data you would be displaying on your chart? Is this mainly to make use of the CSV import in the CMS?

1 Like

yes and no, it is mainly to use the CMS Collection it self, so whether one import it from csv, or write it directly on BSS it should work the same;

generaly speaking, I would like chart component to treat the CMS collection dataset to be a pseudo API for it(the chart) to render;

something like this:

“name”; “struct”; “anthenas”; “location”
“tower 1”; “tower-1”; 12; “east side”
“tower 4”; “tower-4”; 9; “new town”
“tower 6”; “tower-6”; 3; “farm land”
“tower 2”; “tower-2”; 24; “new town”
“tower 12”; “tower-12”; 6; “old east side”

or any dataset which ussually being sent from server, csv’ed flattened json REST API.
bassically to turn CMS collection as local pseudo csv resource API before export/publish;

problem is perhaps simple statistic like sum, count, etc, I don’t think BSS need to handle that(for dev time memory efficiency), and should be push to chart.js on runtime, which still require BSS to feed the correct dataset to chart js correct attribute/data-attribute name;

*Alternative for js developer
allows dev to add specific CMS Collection data to settings → design → meta tags on specific page


perhaps as JSON-LD, which then can be used via javascript runtime;