Skip to Content
0

Default Selection in Chart on Application Startup in Design Studio

Jun 06, 2017 at 10:12 AM

151

avatar image
Former Member

Hi Experts,

We have a requirement to show the default selection of Chart (Heat Map) on Application Startup. Currently it is happening only when we click on chart.

I have tried with Chart_1.onSelect(); code on Application Startup window, but it is not working.

Attached are the screenshots of current and required scenario to make it clear

Please suggest.

Thanks

Vaishali

10 |10000 characters needed characters left characters exceeded

Hi - I have to say that is a strange requirement; what is the business reason for it?

Would you please share version of Design Studio, SP, and are you using the Chart component or InfoChart? Is your data source a BEx query?

0
* Please Login or Register to Answer, Follow or Comment.

4 Answers

avatar image
Former Member Jun 06, 2017 at 11:44 AM
0

Hi,

Sorry I missed important information.

There is drill down on this Heat Map, and on selection of values PL01, PL02..... other chart (Chart 2) is changing.

That is why on application start up , we want the default selection for PL01 to be highlighted.

For Chart 2, we have used the below code on application start up.

DS_2.setFilter("4DS_INVPRJ-PLANT", "PL01");

DS_2-- Data source used for Chart 2

Other Information

DS Version - 1.5 SP0

Chart Component- Basic not Infochart

Data Source - Bex Query.

Please help :)

Thanks

Vaishali

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Vaishali - a couple of comments (no answers, really, but suggestions):

1. 1.5 SP0 is very old and several years old; I recommend upgrading to 1.6 and the latest SP

2. Consider using Infocharts (instead of the CHART component) with Treemaps - they look like Heatmaps

Then try revisiting this requirement

0
Mustafa Bensan Jun 06, 2017 at 01:47 PM
0

Hi Vaishali,

I reiterate Tammy's suggestion of upgrading to DS 1.6 and using Infocharts. Then you should be able to apply the appropriate CSS to the chart for simulating a default selection on startup.

Regards,

Mustafa.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jun 06, 2017 at 06:48 PM
0

Is there any workaround to achieve this in DS 1.5

Show 1 Share
10 |10000 characters needed characters left characters exceeded

You should also be able to apply the CSS technique to the DS 1.5 chart. You need to determine the appropriate DOM element to apply the CSS to. The blog post How To Find and Change the CSS Class - Design Studio should help you with this.

0
avatar image
Former Member Jun 07, 2017 at 02:19 PM
0

Can you please help with css for Heat Map by which we can change color of nth box in heat map, if possible.

As I can see in below post that we can do it for crosstab.

https://blogs.sap.com/2015/05/14/css-tips-tricks-default-selection-in-a-crosstab-in-sap-businessobjects-design-studio/

I have tried hart css but it is not reflecting for Heat Map

Thanks

Vaishali

Share
10 |10000 characters needed characters left characters exceeded