BookmarkSubscribeRSS Feed
sridhar_m
Obsidian | Level 7

Dear All,

 

I am creating Bar Chart with single category, but it's look very odd in the size when it's display.

I mean if you have more than one variable it will display in good look. Where as if it's a single variable it's looks odd.

Attaching screenshot for your reference and please let me know your valuable suggestion. 

 

I am using SAS Viya - V3.5

 

Thanks in Advance,

Regards,

SRi

 

4 REPLIES 4
Sam_SAS
SAS Employee

Hello Sri,

 

Do you want the bar in the first chart to have the same width as the bars in the second chart? The width of bars is automatically set and I don't think you can override this to set a specific width.

 

Or did you have something else in mind?

 

If the first chart will always have a single value for the Category variable, you might try changing the Grouping Style option, or changing the Group variable in that chart to be the Category variable. Either of these will draw a separate bar for each value (CT1, CT2, etc) in the first chart instead of a "stacked" bar chart.

 

Sam

sridhar_m
Obsidian | Level 7
Dear Sam,

Thank you very much for your quick reply. Yes, actually I am looking for the first chart to have the same width(thinkness) as the bars in the second chart.

Regards,
Sri
Sam_SAS
SAS Employee
I don't think it is possible to specify the absolute width of bars in VA.

You could do this as a third-party (D3, for example) visualization using the Data-Driven Content object, but that would be a significant amount of work to configure.

Sam
sridhar_m
Obsidian | Level 7
Dear Sam,

Thank you sam for providing valuable information. Definitely I will look into it.

Regards,
Sri

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1376 views
  • 1 like
  • 2 in conversation