cancel
Showing results for 
Search instead for 
Did you mean: 

Default Selection in Chart on Application Startup in Design Studio

0 Kudos

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

TammyPowlas
Active Contributor
0 Kudos

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?

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

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-businessobje...

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

Thanks

Vaishali

0 Kudos

Is there any workaround to achieve this in DS 1.5

MustafaBensan
Active Contributor
0 Kudos

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.

MustafaBensan
Active Contributor
0 Kudos

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.

0 Kudos

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

TammyPowlas
Active Contributor
0 Kudos

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