Jump to content

Allow only certain aggregation methods for continuous axis in TIBCO Spotfire Mods


Holger Schimanski

Recommended Posts

I am working on a Sankey resp. Alluvial diagramhttps://github.com/hski-github/spotfire-sankey-diagramusing TIBCO Spotfire Mods.

Because of the nature of this type of diagram only Count and Sum makes sense as aggregation methods for the continuous axis.

Is there a way to limit this in the mods manifest file, so that Average etc. are not possible to select Or is there a way to check the calculation method from JavaScript API

 

Best regards

Holger

Link to comment
Share on other sites

Hi Holger,

There is no support for limiting the aggregation methods available for an axis in a visualization mod. Note that the same is also true for all native visualizations. You can however use the JavaScript API to inspect the axis expression and even subscribe to expression changes. See https://tibcosoftware.github.io/spotfire-mods/api-docs/interfaces/axis.html.

Regards,

Magnus

Link to comment
Share on other sites

You could work with a document property that holds only AVG and SUM and then control your axis with a custom expression using this property.

 

So at the end you can control the axis with a drop down menu or a radio buttons. However, the user will still be able to change the axis confiduration since the axis control is still available. At least in 7.11 it's not possible to hide or lock this control.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...