Dear visitor, despite all the challenges, our team continues operating at full speed.

We are ready to help with any questions you may have. Please fill out this quick form and we'll get back to you.

Fill the form
Get Free Trial

Define initial rows/columns in the code instead of xml config

Answered
David Chen asked on February 20, 2016

To define the initial load of rows and columns and values this is the code for xml
<axes>
<axis name=”rows”>
<hierarchy sort=”asc”>
<dimensionName>[Business Sector]</dimensionName>
<hierarchyName>[Business Sector]</hierarchyName>
</hierarchy>
<hierarchy>
<dimensionName>[Measures]</dimensionName>
<hierarchyName>[Measures]</hierarchyName>
</hierarchy>
</axis>
<axis name=”columns”>
<hierarchy sort=”asc”>
<dimensionName>[Industry]</dimensionName>
<hierarchyName>[Industry]</hierarchyName>
</hierarchy>
</axis>
</axes>
 
Is there a way to definite in the var ie:
SyntaxEditor Code Snippet
var report = { configuratorActive: false, data: jsondata, axes { row: …..
 

2 answers

Public
Roman Petrusha Flexmonster February 22, 2016

Hi!
Yes, sure. Please look at this sample: https://jsfiddle.net/xh3q1y47/14/

Does it help?

Public
Tanya Gryshko Flexmonster December 7, 2016

Hello David and all Flexmonster users,
After the release of version 2.3, we would like to provide you with the updated sample: https://jsfiddle.net/flexmonster/v3kvwdjb/.
Regards,
Tanya

Please login or Register to Submit Answer