I was looking for a nice wrapper for Charts.js lib...
# cfml-general
p
I was looking for a nice wrapper for Charts.js library and came across the one in ForgeBox for Preside CMS... It seems to lack the ColdBox modularization code, has anybody used it without Preside installed with ColdBox or vanilla CF? https://forgebox.io/view/preside-ext-chart-js
b
That isn't a ColdBox module, it's a Preside CMS plugin, which is a CMS built on top of ColdBox.
You'd need to be using Preside CMS to drop it in and use it
p
Yep, 100% figured that part out. Just wanted to be sure I wasn't overlooking anything. (Their documentation talks about how to make their modules ColdBox compatible, but it looks like this one is intentionally made not to work that way.)
s
What are you looking for in a Chart.js wrapper?
p
Just a quicker way to integrate it into projects, especially when building out a quick dashboard. CFChart is kinda finicky, at least on 21, but it does hide the basics nicely for passing it data and what not.
s
I recently wrote a JS wrapper for passing data int Chart.js from an HTML table, but really nowhere near as full-featured as cfchart. It would be interesting to write custom html elements as a wrapper for Chart.js though...
p
The Preside module I linked above seems to be generally heading in a nice direction, especially where it sourcing data from a query object. I'll probably just cobble something together, but it is so annoying to see it already done, but not quite, you know?