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

Notification

Icon
Error

Options
Go to last post Go to first unread
fourfruit  
#1 Posted : Friday, February 3, 2017 9:55:56 AM(UTC)
fourfruit

Rank: Member

Groups: Registered
Joined: 1/18/2017(UTC)
Posts: 10
Taiwan, Province Of China
Location: Maoli

Thanks: 4 times
Dear Sirs,
How to change line chart style: solid line to dashed( or dotted) line?
Would you like to show me the example?
Thank you!
epf  
#2 Posted : Friday, February 3, 2017 5:00:44 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 557
Switzerland

Thanks: 7 times
Was thanked: 79 time(s) in 77 post(s)
I assume you want to do it for a NVD3 chart:

Here is the trick (comes from http://stackoverflow.com/questions/32474381/dotted-line-in-nvd3-line-chart)

First select your root view, select "CSS" then insert the following class in "Additional CSS":
Code:
.dashed {stroke-dasharray: 5,5;}


Then select the model view containing the chart, select "NVD3 Chart Configuration", then insert the following script in "Script: Additional options":
Code:
for (var i=0;i<series.length;i++) series[i].classed = 'dashed';


And this is done, as it is quite nice, perhaps we will have a direct option to do this in a future release...
thanks 1 user thanked epf for this useful post.
fourfruit on 2/6/2017(UTC)
fourfruit  
#3 Posted : Monday, February 6, 2017 3:21:40 AM(UTC)
fourfruit

Rank: Member

Groups: Registered
Joined: 1/18/2017(UTC)
Posts: 10
Taiwan, Province Of China
Location: Maoli

Thanks: 4 times
Dear Sire epf,
Thank you for helps all the time. I searched the BI tools one month ago. I found the Seal Report was my favorite option. It developed with Microsoft .Net framework. It is easy to practice. However the lack of full user's guide is the gap to do any advanced settings. I wish there will be an advanced user's guide in the future. Thanks.
epf  
#4 Posted : Wednesday, February 15, 2017 8:17:50 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 557
Switzerland

Thanks: 7 times
Was thanked: 79 time(s) in 77 post(s)
I just noticed that the JavaScript described above will not work for Chrome browser.

You have to use the following code instead:
Code:

series.forEach(function(dataSerie) { dataSerie.classed = 'dashed';});

Edited by user Wednesday, February 15, 2017 8:18:21 AM(UTC)  | Reason: Not specified

Users browsing this topic
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.