cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
voy-voy
Level II

Change Labels in Graph Builder for Bar Charts from Horizontal to Vertical?

Hello, 

I often have in Graph Builder Bar Charts with the Sum on the Top. But if the Number ist to higher, than it is no more readable. (Like in the Attachment)

So how can I change Labels in Graph Builder for Bar Charts from Horizontal to Vertical or 45°?

1 ACCEPTED SOLUTION

Accepted Solutions
voy-voy
Level II

Re: Change Labels in Graph Builder for Bar Charts from Horizontal to Vertical?

Thank You, this was helpfull. So in the moment ther ist just a scripting solution. 

SendToReport(
    Dispatch(
        {},
        "Graph Builder",
        FrameBox(1),
        DispatchSeg(BarSeg(1), Set Font("", 12, "", 90))
    ),
    Dispatch(
        {},
        "Graph Builder",
        FrameBox(2),
        DispatchSeg(BarSeg(1), Set Font("", 12, "", 90))
    )
),

 

You can add this to the Sript and it works 

12 - Size

90 - Angel

 

If I save the Script it looks like this (for an Other diagramm with more lins)

	SendToReport(
		Dispatch( {}, "Graph Builder", FrameBox( 3 ),
			{DispatchSeg( BarSeg( 1 ), {Font( Size( 12 ), Angle( 90 ) )} )}
		),
		Dispatch( {}, "Graph Builder", FrameBox( 4 ),
			{DispatchSeg( BarSeg( 1 ), {Font( Size( 12 ), Angle( 90 ) )} )}
		),
		Dispatch( {}, "Graph Builder", FrameBox( 5 ),
			{DispatchSeg( BarSeg( 1 ), {Font( Size( 10 ), Angle( 90 ) )} )}
		)
	)

View solution in original post

3 REPLIES 3
jthi
Super User

Re: Change Labels in Graph Builder for Bar Charts from Horizontal to Vertical?

You have to use scripting to do that (to my knowledge). Here is related wish list item Graph builder bar chart data label control which will also link here Graph Builder Bar Graph Label Offset 

-Jarmo
voy-voy
Level II

Re: Change Labels in Graph Builder for Bar Charts from Horizontal to Vertical?

Thank You, this was helpfull. So in the moment ther ist just a scripting solution. 

SendToReport(
    Dispatch(
        {},
        "Graph Builder",
        FrameBox(1),
        DispatchSeg(BarSeg(1), Set Font("", 12, "", 90))
    ),
    Dispatch(
        {},
        "Graph Builder",
        FrameBox(2),
        DispatchSeg(BarSeg(1), Set Font("", 12, "", 90))
    )
),

 

You can add this to the Sript and it works 

12 - Size

90 - Angel

 

If I save the Script it looks like this (for an Other diagramm with more lins)

	SendToReport(
		Dispatch( {}, "Graph Builder", FrameBox( 3 ),
			{DispatchSeg( BarSeg( 1 ), {Font( Size( 12 ), Angle( 90 ) )} )}
		),
		Dispatch( {}, "Graph Builder", FrameBox( 4 ),
			{DispatchSeg( BarSeg( 1 ), {Font( Size( 12 ), Angle( 90 ) )} )}
		),
		Dispatch( {}, "Graph Builder", FrameBox( 5 ),
			{DispatchSeg( BarSeg( 1 ), {Font( Size( 10 ), Angle( 90 ) )} )}
		)
	)
hogi
Level XIII

Re: Change Labels in Graph Builder for Bar Charts from Horizontal to Vertical?

thanks @voy-voy  for supporting the wish with a Kudo : )

Recommended Articles