Profile Picture

Legend marker size

Posted By Warwick Payten 12 Years Ago
Author
Message
Warwick Payten
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 5, Visits: 1

Hi Is there a way to change the size of the marker in the legend.  There does not seem to be a method for this in Manual Legend Mode.

On the graph i am using the line.markerstyle.width  etc.,  to set the the size.   But the legend still has a large marker in it.

Thanks in advanced for any help.

Warwick

 

 

 

 

 

 

 



Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Warwick,

Currently the legend mark size can be controlled only for the whole legend (not for individual items) through the legend.Data.MarkSize property. We'll publish a SP that will allow you to specify custom mark size per legend item very soon.



Best Regards,
Nevron Support Team



Warwick Payten
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 5, Visits: 1

Thanks   Thats great I only won't to set the marker size to be all  the same anyway.

However I am still a little confused  I tried using:

Dim legend as NLegend = CType(legendsCollection(0), NLegend)

legend.Data.Marksize.Width = New Length(1.5F, NRelative.ParentPercentage)

similar to what i do setting the marker size in the graph but this comes back with the error

"Expression is value and therefore cannot be the target of an assignment"

I have also tried using the following as per the manual:

Dim instance As NLegendData
Dim value As NSizeL

instance.MarkSize = value

value = instance.MarkSize

but  value has two properties that can be set

value.height and value.width

and i am still not clear how to then use that in a statement  as the error comes back with

"Value of tye Nevron.GrahicsCore.Nlength' cannot be converted to NevronGraphicsCore.NSizeL"

 

Cheers Warwick



Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Warwick,

The size object is a structure - therefore you cannot assign one of its members like:

legend.Data.Marksize.Width = New Length(1.5F, NRelative.ParentPercentage)

because legend.Data.Marksize will create a copy of the structure and you'll modify the Width property of that copy - that's why you get a compiler error. You need to write something like:

legend.Data.MarkSize = new NSizeL(new NLength(1.5f, NRelativeUnit.ParentPercentage), legend.Data.MarkSize.Height);

Hope this helps - let us know if you meet any problems.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic