Extension talk:Semantic Result Formats/jqplotbar and jqplotpie formats

To support German Umlaute the file jqplot.canvasTextRenderer.min.js needs to be patched:

136c136 <            this.height = this.normalizedFontSize * this.pt2px; --- >            this.height = this.normalizedFontSize * this.pt2px + 4; 340c340,346 <         '~': { width: 24, points: 3,6],[3,8],[4,11],[6,12],[8,12],[10,11],[14,8],[16,7],[18,7],[20,8],[21,10],[-1,-1],[3,8],[4,10],[6,11],[8,11],[10,10],[14,7],[16,6],[18,6],[20,7],[21,10],[21,12 } --- >         '~': { width: 24, points: 3,6],[3,8],[4,11],[6,12],[8,12],[10,11],[14,8],[16,7],[18,7],[20,8],[21,10],[-1,-1],[3,8],[4,10],[6,11],[8,11],[10,10],[14,7],[16,6],[18,6],[20,7],[21,10],[21,12 }, >         'Ä': { width: 18, points: 6,26],[5,27],[4,26],[5,25],[6,26],[-1,-1],[15,26],[14,27],[13,26],[14,25],[15,26],[-1,-1],[9,21],[1,0],[-1,-1],[9,21],[17,0],[-1,-1],[4,7],[14,7 }, >         'Ö': { width: 22, points: 7,26],[6,27],[5,26],[6,25],[7,26],[-1,-1],[15,26],[14,27],[13,26],[14,25],[15,26],[-1,-1],[9,21],[7,20],[5,18],[4,16],[3,13],[3,8],[4,5],[5,3],[7,1],[9,0],[13,0],[15,1],[17,3],[18,5],[19,8],[19,13],[18,16],[17,18],[15,20],[13,21],[9,21 }, >         'Ü': { width: 22, points: 7,26],[6,27],[5,26],[6,25],[7,26],[-1,-1],[15,26],[14,27],[13,26],[14,25],[15,26],[-1,-1],[4,21],[4,6],[5,3],[7,1],[10,0],[12,0],[15,1],[17,3],[18,6],[18,21 }, >         'ä': { width: 19, points: 7,20],[6,21],[5,20],[6,19],[7,20],[-1,-1],[15,20],[14,21],[13,20],[14,19],[15,20],[-1,-1],[15,14],[15,0],[-1,-1],[15,11],[13,13],[11,14],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3 }, >         'ö': { width: 19, points: 7,20],[6,21],[5,20],[6,19],[7,20],[-1,-1],[15,20],[14,21],[13,20],[14,19],[15,20],[-1,-1],[8,14],[6,13],[4,11],[3,8],[3,6],[4,3],[6,1],[8,0],[11,0],[13,1],[15,3],[16,6],[16,8],[15,11],[13,13],[11,14],[8,14 }, >         'ü': { width: 19, points: 7,20],[6,21],[5,20],[6,19],[7,20],[-1,-1],[15,20],[14,21],[13,20],[14,19],[15,20],[-1,-1],[4,14],[4,4],[5,1],[7,0],[10,0],[12,1],[15,4],[-1,-1],[15,14],[15,0 }

Make sure the file jqplot.canvasTextRenderer.min.js is saved UTF-8 encoded!

Have fun. /--Planetenxin 19:45, 31 January 2011 (UTC)


 * Thanks for this fix - I just looked into this now, and it looks like the newest version of jqPlot (contained in the latest version of SRF, 1.5.3, from last week) fixes this problem - no code changes were required, thankfully. Yaron Koren 17:48, 11 February 2011 (UTC)