Page MenuHomePhabricator

Broken html formatting in jqplotchart donut legend
Closed, DeclinedPublic

Description

Author: adb30

Description:
Summary: Broken html formatting in jqplotchart donut legend

<nowiki>{{#ask: ... | format = jqplotchart | charttype = donut | theme = simple }}</nowiki>

Hello,
I have used something similar to the above to create [http://wiki.guildwars2.com/wiki/Template:Drop_rate_lookup_table], which mostly displays as intended. However, upon inspection of the html it is generating a formatting line for the legend with the following:

<table class="jqplot-table-legend" style="top: 10px; right: 10px; font-family:; font-size: 8.93px; position: absolute;" 102);margin-top:10px;margin-bottom:0px;margin-left:0px;margin-right:10px;"="" 102,="" ms",arial,helvetica,sans-serif;color:rgb(102,="" trebuchet="">

...whereas it should be writing something like:

<table class="jqplot-table-legend" style="top: 10px; right: 10px; font-family:'trebuchet ms',arial,helvetica,sans-serif; font-size: 8.93px; position: absolute; margin: 10px 10px 0 0; color:rgb(102,102,102);">

(I suspect the problem comes from the quotes around "trebuchet ms"). This ends up dropping a lot of the formatting for the legend.

Thanks, Alex.


Version: unspecified
Severity: minor

Details

Reference
bz54800

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:28 AM
bzimport set Reference to bz54800.
bzimport added a subscriber: Unknown Object (MLST).
Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticResultFormats/issues . We are sorry for the inconvenience.