Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
575
UltraChart -- more control over Legend box
posted
DataSet ds = GPCommonFunctions.ReturnDataSet(GPCommonFunctions.UwinDBConnString,"select ID 'Unique ID' from GPA_CreditCardDebt");

UltraChart1.DataSource = ds;

UltraChart1.DataBind();

 

How can I have more control over the Legend?

 

It just says "Row #0" "Row #1"

 

Instead I want it to say "Unique ID 1" or something other than "Row #0"

 

  • 26458
    Offline posted

    The legend displays the column or row labels by default. If you have a column in your data that can be used for row labels, you can use that by specifying the index of that column:
    UltraChart1.Data.RowLabelsColumn = 1;
    UltraChart1.Data.UseRowLabelsColumn =
    true;

    Or you can create a string array and use it for row labels:
    string[ labels = { "label1", "label2", "label3", "label4" };
    UltraChart1.Data.SetRowLabels(labels);