Improvements #12495
openEnable charting library to use external javascript libraries such as Charts.js or D3js
0%
Description
With Bootstrap 5, Flex, and other modern libraries, a missing modernization is charts.
There is no way to do stacked-bar, or several other types of charts that are starting to become popular. Even Bootstrap 5 themes have basic included chart templates that cannot be easily configured by Wt.
Like TinyMCE is a plug-in to Wt, a plug-in charting option would be very welcome.
Files
MV Updated by Matthias Van Ceulebroeck over 1 year ago
- Target version set to future
RM Updated by Romain Mardulyn about 1 year ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
RM Updated by Romain Mardulyn about 1 year ago
- Private changed from No to Yes
Including an optional library would not really be feasible without decoupling charts from painted widgets, which would itself, be hard to do without breaking retro-compatibility. Instead we should make a tutorial on how to integrate an external library to Wt.
RM Updated by Romain Mardulyn about 1 year ago
- Private changed from Yes to No
RM Updated by Romain Mardulyn about 1 year ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
RM Updated by Romain Mardulyn 2 months ago
- Target version changed from future to 4.15.0
MT Updated by Mark Travis 2 months ago
- File BarLineLineChart.cpp BarLineLineChart.cpp added
- File WChartJSOptions.h WChartJSOptions.h added
- File WChartJSLibrary.h WChartJSLibrary.h added
- File WChartJSLibrary.C WChartJSLibrary.C added
- File WChartJSOptions.C WChartJSOptions.C added
- File WChartJSDataSeries.h WChartJSDataSeries.h added
- File BarLineLineChart.h BarLineLineChart.h added
- File Chart.js-Wt-Implementation.txt Chart.js-Wt-Implementation.txt added
- File WChartJSDataSeries.C WChartJSDataSeries.C added
Romain Mardulyn wrote in #note-3:
Including an optional library would not really be feasible without decoupling charts from painted widgets, which would itself, be hard to do without breaking retro-compatibility. Instead we should make a tutorial on how to integrate an external library to Wt.
I noticed this just got added to 4.15.0. Is the effort still to create a tutorial? Or do you plan to create a working version?
I'll contribute my chartjs implementation. I decoupled it from the Wt internal structure, but it tries its best to use the Wt data libraries as designed. I'm sure your team can make it better, which is why I didn't open a pull request.
There's a txt file that gives a broad overview on how to use it. BarLineLineChart is a crude, sample implementation.
ED Updated by emil de keyser 2 months ago
- Assignee set to emil de keyser