This issue has been created
 
 
ChartJS Integration / cid:jira-generated-image-avatar-2ae57e9b-3833-4197-920c-417e681bc883 CHARTJS-43 Open

Show the charts of the chartjs and tableToChartJS macros in the WYSIWYG editor

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ae36df3e-478d-405b-92c4-3dab5e20ac23 Charpentier Lucas created this issue on 23/Oct/26 10:29
 
Summary: Show the charts of the chartjs and tableToChartJS macros in the WYSIWYG editor
Issue Type: cid:jira-generated-image-avatar-2ae57e9b-3833-4197-920c-417e681bc883 Improvement
Affects Versions: 1.6.3
Assignee: Unassigned
Created: 23/Oct/26 10:29
Priority: cid:jira-generated-image-static-major-c91dd50d-2178-45f3-912d-ffb374de558f Major
Reporter: Charpentier Lucas
Description:

The chartjs and tableToChartJS macros draw their chart with JavaScript in a canvas. In the WYSIWYG editor the canvas stays blank, with no placeholder and no text, so nothing tells the user that a chart is there or what it shows.

The macros to change, with the file where most of the fix is done:

What the macros could show in the editor: a frame with the icon of the chart type and a summary of the chart, like "Pie chart" with the source of its data, the table of the content for tableToChartJS, or the chart itself if Chart.js can be run in the editor.

Depends on

  • XWIKI-25523, which gives the macros a supported way to know they are rendered for the WYSIWYG editor and a shared edit-mode representation to reuse.

KOs covered

Macro Criterion Problem Depends on
chartjs E1 wysiwyg The editor shows an empty block of about 155 pixels: the canvas stays blank, with no chart, no placeholder and no text, while view mode draws the chart with its legend. XWIKI-25523
tableToChartJS E1 wysiwyg The editor shows the table and a blank area in place of the chart, with no placeholder and no text, while view mode draws the chart with its legend. XWIKI-25523

Impact found on macro fluidity

These 2 KOs come from the WYSIWYG usability audit of the macros, under the criterion E1 wysiwyg of its usability criteria, which accepts a dedicated edit representation that keeps the meaning of the macro. The page of each macro, linked in the table, has the full notes and the steps to reproduce. Fixing them means giving the macros an edit-mode representation built on XWIKI-25523.