logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sealfan  
#1 Posted : Friday, September 18, 2015 6:47:25 PM(UTC)
sealfan

Rank: Member

Groups: Registered
Joined: 9/4/2015(UTC)
Posts: 23
Canada
Location: ottawa

Thanks: 7 times
Was thanked: 2 time(s) in 2 post(s)
I have a stacked area chart where I plot data by date-time (X-Axis). I want both day and time shown on the axis (Data Type:Date&Time, Format:g) but have an issue where the axis labels overlap. I tried to stagger the labels using

.staggerLabels(true) but after setting that in the Chart Model View, there is no chart displayed.

Is there a way to either stagger the labels or rotate the labels?

Thx.

sealfan  
#2 Posted : Friday, September 18, 2015 6:51:51 PM(UTC)
sealfan

Rank: Member

Groups: Registered
Joined: 9/4/2015(UTC)
Posts: 23
Canada
Location: ottawa

Thanks: 7 times
Was thanked: 2 time(s) in 2 post(s)
Maybe even only showing the first and last X Axis label? Is that possible?
epf  
#3 Posted : Monday, September 21, 2015 7:51:46 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
You have fight with the NVD3 documentation to customize your chart.
I know that you can rotate labels (refer to the 'NVD3 Chart Configuration' property of your View: //if (chart.rotateLabels != null) chart.rotateLabels(90); //for Bar)

I just read that .StaggerModel works only for DiscreteBarChart,
check your JavaScript errors if any: In the Report Designer, Menu Options -> Show Script Errors.
or debug it with your browser debugger by viewing the HTML result.

Then the main documentations are http://nvd3.org/ and http://cmaurer.github.io/angularjs-nvd3-directives/index.html

Note also that the the NVD3 library will be updated with a next Seal release.

Good luck.

Edited by user Monday, September 21, 2015 7:56:39 AM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.