Welcome Guest Search | Active Topics |

Force chart legend to start in second line?
ck31wong
#1 Posted : Tuesday, December 29, 2015 10:42:27 PM(UTC)
Rank: Newbie

Groups: MvcDV, Registered
Joined: 12/22/2015(UTC)
Posts: 7

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hi jqChart deverlopers,
let's say i have a basic column charts, the legend texts are too long, is it possible to force a particular legend text to start in the second line?

For instance,

.Legend(Legend => Legend.Visible(true)
.Title("Legend Title")
.AllowHideSeries(true)
.Border(b => b.LineWidth(1))
.Location(LegendLocation.Bottom)
.Font("12px Verdana")
.CustomItems(item =>
{
item.Add(" = Series A", System.Drawing.ColorTranslator.FromHtml("#445f9b"));
item.Add(" = Series B", System.Drawing.ColorTranslator.FromHtml("#fa650c"));
item.Add(" = Series C", System.Drawing.ColorTranslator.FromHtml("#000000"));
item.Add(" = Series D", System.Drawing.ColorTranslator.FromHtml("#333333")); // can I force this series D to be display as a new line below Series A???????
})
)

Thanks,
Keith
Dragan
#2 Posted : Sunday, January 3, 2016 9:49:40 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

currently this functionality is not supported. If the space of the legend exceeds the available space, it will split into 2 lines automatically, but you can't set this manually.
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest (2)
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.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.081 seconds.