In version 1 of the Tradeoff Analytics widget, we were able to customize the widget's features using profiles. The profiles appear to have been removed from the widget initialization options in v2. Is there an undocumented way to turn filters on/off and to do things like skipping the 'Select Criteria' screen and to go directly into the 'Overview + Add for Comparison' screen?
Answer by 6HV0_David_Boaz (561) | Jul 11, 2016 at 03:29 AM
We have a minimal, not-formal, not-documented support in profiles.
Look at https://github.com/dolevdotan/tradeoff-analytics-v2-vanilla-nodejs/blob/master/public/index.js line 18. you can pass a profile object as a second parameter to the constructor.
in particular, to skip the first step and to turn off the filters , pass {objectivesPage: false, overviewPage:{filters:'none'}}
.
You might also need to customize the styles. see http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/tradeoff-analytics/client.shtml#usingThemes,Sorry for late response, We actually have some minimal support in profiles. But, as it is not formal, it is not documented. Look at https://github.com/dolevdotan/tradeoff-analytics-v2-vanilla-nodejs/blob/master/public/index.js in line 18, you can add a profile object as the second parameter.
In particular, to skip the 'objectivesPage' (first) step and to turn off the filters in the overviewPage (second), pass {objectivesPage: false, overviewPage:{filters:'none'}}
.
You may need to customize the widget styles using CSS. please look at http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/tradeoff-analytics/client.shtml#usingThemes
regards, David
Tradeoff Analytics Filter vs Objectives 1 Answer
Errors trying to integrate Tradeoff Analytics widget into application 4 Answers
Tradeoff analytics 503 Service Unavailable status code when calling show() method from client 2 Answers
Error on Watson Tradeoff Analytics - "not marked as ignorable" 2 Answers