[
https://issues.apache.org/jira/browse/JSPWIKI-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18040159#comment-18040159
]
Alex O'Ree commented on JSPWIKI-1102:
-------------------------------------
ok so here's where i'm at. i was able to get most of it together bundled within
the wiki.js file, however currently the table and span are rendering like so
!image-2025-11-23-14-07-13-571.png!
so when the chartist_behavior function fires off, it's looking for child
elements to the span class=chartist-line. It's not a child to it, it's up a
level and a sibling. I'll push what i have to my fork at
[https://github.com/spyhunter99/jspwiki/tree/feature/JSPWIKI-1102]
most of the changes were to Wiki.js at jspwiki-war\src\main\scripts\wiki\Wiki.js
i don't think anything changed with regards to the rendering process for the
double percent and tables on the main branch (v3.0.0) so I'm guessing we need
some other way to locate the corresponding table element from the span.
have any ideas [~brushed] ?
> Add charting library to JSPWiki distribution
> --------------------------------------------
>
> Key: JSPWIKI-1102
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1102
> Project: JSPWiki
> Issue Type: Improvement
> Components: Templates and UI
> Reporter: Dirk Frederickx
> Priority: Minor
> Attachments: image-2025-11-23-14-07-13-571.png
>
>
> Add a charting library to JSPWiki for easy rendering data in TABLE's as line,
> pie- or bar-charts.
> The charting library should provide well chosen defaults to keep the extra
> markup as little as possible.
> Proposal:
> Include [https://gionkunz.github.io/chartist-js/] (MIT license) in the
> standard JSPWiki's distribution.
> * small footprint (10K zipped JS; only loaded in pages with require charts)
> * usage of svg; high quality device independent
> * highly customizable; but using 'convention over configuration' (great
> defaults)
> * responsive (great output on mobile devices)
>
> Prereq: https://issues.apache.org/jira/browse/JSPWIKI-1040
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)