Profile Picture

How to add two different values in the same row of Legend?

Posted By Chalcy.J 12 Years Ago

How to add two different values in the same row of Legend?

Author
Message
Chalcy.J
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)

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

Hi Team,

I have a custom legend with fixed two column. In Column1,Row1 I want the text (Value1) and in Column2,Row1 I want number (10) similarly for Column 12,Row2 I want the text (Value2)  and in Column2,Row2 I want (20)....

legend.Data.ExpandMode = LegendExpandMode.ColsFixed;

legend.Data.ColCount = 2;

for (int i = 1; i <= 4; i++)

{

NLegendItemCellData ldi = new NLegendItemCellData();

ldi.Text = "Value " + i.ToString();

ldi.MarkShape = LegendMarkShape.None;

ldi.MarkLineStyle.Width = new NLength(0);

//ldi.da

legend.Data.Items.Add(ldi);

}

 

How to achieve the same? Please share your input.

Thanks,

Jeba




Threaded View



Similar Topics


Reading This Topic