Allow customization of jqPlot parameters - show/hide canvasLegend #3341
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
wontfix
If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone
Use case: The canvas legend of pie charts doesn't make sense, actually. Currently a canvas legend with the word "visits" is shown.
This patch prepares piwik to customize plot parameters. Plot parameters that should be allowed to be customized need to be added to Piwik_ViewDataTable::init() to the protected $plotProperties variable. Plot options are then fully under control of PIWIK and if desires arise to customize other parameters as well, they can easily be added.
Of course modifications to jqplot.js are unavoidable to $.extend() the default settings.
Please review and tell if you can think of better implementations. This one seems pretty straight forward and transparent to me.
The text was updated successfully, but these errors were encountered: