on 10-22-2016 10:53 PM
I have used bar chart for one of my requirement . but i am getting huge bar. when i try to reduce bar size using CSS not reflecting in dashboard.
I have refered below blogs but not fulfil my requirement
https://archive.sap.com/discussions/thread/3759486
https://archive.sap.com/discussions/thread/3860882
https://blogs.sap.com/2015/04/22/list-of-css-for-sap-design-studio/
Please find the attached image
any help will be really appreciated
Thanks,
Varun
Hi varun,
From your screenshot, It seems you have added a dot before "g" at the beginning of class name. Can you remove it and try once in your CSS?
I haven't tried the css but I use the below to reduce all the bar size in chart.
g.v-datapoint rect
{height: 10px !important;}
Note: It doesn't work in IE.
Thanks,
Poovarasan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Varun,
It seems worked fine for me. Just plot out your scenario more clearly.
Thanks,
Nithyanandam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Tammy,
I tried venu suggestion as well but no luck . but i hope it should work for all browsers right ?
is there any bug?
because . some users might use fire fox and some might use internet explorer. this might cause issue. is there any solution for this?
Thanks,
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mine works on Chrome; I haven't tried it on Firefox.
Have you tried Nithyanandam's suggestion?
g.v-bar:nth-child(6) g.v-datashape rect.v-datapoint {height: 5px !important;}
I know in Chrome I can debut using F12; I don't know the commands for Firefox.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Venu/Tammy,
Thanks for your reply. i tried with above css but no luck
did any faced this scenario?
Thanks,
varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Varun,
This would work,
g.v-bar:nth-child(6) g.v-datashape rect.v-datapoint {height: 5px !important;}
on nth-child specify your bar you want to change,if you want the entire thing to be changed use this
g.v-datashape rect.v-datapoint {height: 5px !important;}
Thanks,
Nithyanandam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Varun - this CSS works for me:
g.v-bar g.v-datashape:nth-child(1) rect.v-datapoint.v-morphable-datapoint {height: 15px; !important}
Change the height as desired.
I recommend in the future using F12 when running your application so you can learn how Design Studio uses CSS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tammy
Css as well I tried but no.luck.could you please guide me on this
Thanks
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Tammy
I tried but it was reducing chart size but not the bar
Thanks,
Varun g
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The CHART component also has padding properties. Have you tried those?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Tammy
Thanks for your reply . I am using regular chart
Thanks
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.