Support custom size policy for bar graph

[#44384929]
Support custom size of slider component

[#44384929]