Get Free Trial
Get Free Trial

Issue on chart options and activeMeasure ?

Resolved
Patrick TAVARIS asked on October 18, 2019

Hi,
I think we have found an issue.
Use case :

  • take a chart (let’s say bar_h type).
  • Use multiple value chart and check at least 2 measures to have 2 activeMeasures.
  • Change chart to pie.
  • Export report.

In this report it will have 2 activeMeasure. It will then be impossible to change the current activeMeasure for this pie and “save” it via a pivotTable.saveReport.
 
To fix this, we have to get back to an allowed “multiple value” chart, uncheck the multiple active measures, then get back to pie mode and save it again.
I think if we was in multiple value chart, and we decide to go to a chart type that doesn’t allow multiple value, we should not be able to save a report with multiple activeMeasure…
 
What do you think ?
 
Regards
 
Luc Bonnin

4 answers

Public
Vera Didenko Flexmonster October 21, 2019

Hello, 
 
 
Thank you for describing the problem in such detail.
 
1. We managed to reproduce the following issue: Saving the changed active measure for Pie chart fails when “Multiple Values” was previously selected.
To make sure we are on the same page, we would like to confirm whether the problem we reproduced on our end is the same in your case.

Please follow the specified below steps in the following JSFiddle example: https://jsfiddle.net/flexmonster/9sxwf0qd/
1.1) In the Charts Toolbar Tab dropdown menu select the Multiple Measures checkbox
1.2) Make sure that in the chart measures dropdown at least two measures are selected
1.3) In the Charts Tab dropdown menu select the Pie chart type
1.4) Now save the report
1.5) Through the Open -> Local Report Toolbar option, load the saved (in step 1.4) report.
1.6) Now in the chart measures dropdown select the Unit Price measure
1.7) Save the report
1.8) Through the Open -> Local Report Toolbar option, load the saved (in step 1.7) report – the selected measure switches to Revenue instead of Unit Price.

Could you please confirm if this is the case?
 
Our team will provide the fix for this in the minor release version with the ETA 4th of November.
It seems this should fix the problem you encounter as well.
 
 
2. As a temporary workaround, we kindly suggest overriding the Charts -> Pie Tab’s behavior, the following way:

function customizeToolbar(toolbar) {
// get all tabs
var tabs = toolbar.getTabs();
toolbar.getTabs = function () {
tabs[6].menu[4].handler = () => pivot.showCharts("pie", false);
return tabs;
}
}

 
This will ensure that when switching to Pie, the multipleMeasures option will be switched off.
Please see the following JSFiddle example for illustration: https://jsfiddle.net/flexmonster/3abpktrv/
 
 
 
We are looking forward to your reply.
 
Best Regards,
Vera

Public
Patrick TAVARIS October 21, 2019

yep. Same issue.
 

Public
Vera Didenko Flexmonster October 22, 2019

Hello, 
 
Thank you for the confirmation.
 
Our team will provide the fix in the minor release version with the ETA 4th of November.
 
You are welcome to write to us in case of questions.
 
Best Regards,
Vera

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 5, 2019

Hello,
 
We are glad to announce that the issue with active measures on the pie chart when “Multiple Values” was previously selected was fixed.
 
This is provided in the 2.7.18 version of Flexmonster: https://www.flexmonster.com/release-notes/
 
You are welcome to update the component: https://www.flexmonster.com/doc/updating-to-the-latest-version/
 
Please let us know if everything works fine for you.
 
Best Regards,
Illia

Please login or Register to Submit Answer