Dear
There is no feature in PHPMaker 2020 to show or Hide data label on chart i.e. bar,line,pie chart etc. After google I find there is JS Chart plugin “Label Plugin for JS Chart” in github. Kindly add data label feature for charts.
You may do the follows to add any plugin for charts:
- Use Tools → Scripts and Stylesheets to add the .js of the plugin, then
2a. Use server side Chart_Rendered event (see the topic Server Events and Client Scripts in the help file), or
2b. Use client side “chart” event, e.g. if the plugin is “labels”
$(document).on(“chart”, function(args) {
var options = args.config.options;
if (!options.plugins) options.plugins = {};
options.plugins.labels = { … your settings for the plugin… };
});
Hi,
I have added ///http:cdn.jsdelivr.net/gh/emn178/chartjs-plugin-labels/src/chartjs-plugin-labels.js in script(global).///
After adding it , it showing lables in all chart but in %.
I want to remove it but It is not visible Script (Global) page.
I have deleted cache and updated the template also.
How to remove this script from Global.
Dear, I did the same.
This script is added in project file. It is not reading the project file properly.
In pie chart legands display setting is not working . To display legends I have to right custom code.
You can try this script :
Chart.defaults.global.plugins.labels = {
render: ‘label’,
position: ‘outside’
};write the script at Server Events and Client Scripts → Client Scripts → Table-Spesific → SummaryReport → ClientScript