Hi
We are using the multipleMeasures option of the standard Chart toolbar menu. It works pretty well when the only the chart is displayed.
We have customized the toolbar to add a "Combo" button that give the opportunity to display the Grid & the Chart on the same screen. But when we select the Combo display, the multipleMeasures is "ignored" and only one measure is displayed on the chart. When we display again only the chart, the multipleMeasures is working again.
We tried to enforce the option (setOption chart / multipleMeasures = true) before the showGridAndCharts call but it seems to be ignored.
Can you give us a fix for that please ?
Thanks in advance.
Hello, Emmanuel!
Thank you for reaching out to us.
Our team hasn't reproduced the described behavior of chart.multipleMeasures
option on our side.
As a first step, we recommend updating the component to the latest version: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
We have also prepared an example with the viewType
change with multiple measures for reference: https://jsfiddle.net/flexmonster/suq709va/.
If the case is still reproducible, please update the provided example, so we can test it on our side.
Looking forward to hearing from you.
Kind regards,
Solomiia
Hi,
Thanks for your answer, it works with this approach.
We were using a different function to display grid and chart :
var options = pivot.getOptions();
pivot.showGridAndCharts(options.chart.type,"right");
instead of
var options = pivot.getOptions();
options.viewType = "grid_charts";
options.chart.position= "right";
pivot.setOptions(options);
pivot.refresh();
You can close this case.
Hello, Emmanuel!
Thank you for your swift response.
We are happy to hear that the suggested approach works well.
Kindly note that when using showGridAndCharts()
API call, by default, multiple measures property is switched off: https://www.flexmonster.com/api/showgridandcharts/#multiple. You need to explicitly set it to true
as follows:
pivot.showGridAndCharts(options.chart.type, "right", true);
We have prepared an example using showGridAndCharts()
API call with multiple measures enabled: https://jsfiddle.net/flexmonster/wtjoz1mp/.
Hope you will find our answer helpful.
Kind regards,
Solomiia