Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Line Chart customization problems in ver 3. Help!

Last post 06-30-2008 15:16 by [Infragistics] Max Rivlin. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-26-2008 15:40

    Line Chart customization problems in ver 3. Help!

    I realize I'm using an older version of UltraChart - version 3 to be precise.  However, it's the hand I've been dealt and I must play it.

    I have a line chart and I'm having a little trouble customizing certain aspects of it.

    My chart will be plotting several lines of data with a value range on the y-axis and a date range on the x-axis.

    First, I'd like to customize the mid-point shape of each line to be a distinct shape, and then display that shape in my legend next to that each lines' description.  This way, when I print the chart in black and white (or when a color-blind reader is viewing the chart on-screen), the reader will be able to relate each line to the legend.  My research has led me to the UltraChart.Primitives property, but I've been unable to figure out how to accomplish my goal using the limited documentation in the help file.

    Next, I'd like to be able to exercise some control of the printed chart.  By default it appears to size the printed version approximately the same size as the on-screen chart.  What I'd like to be able to do is resize the chart to print full page.  Is there a way to control this?  I've been unable to find it in the documentation if there is.

    Any advice is appreciated.   Thanks in advance.

    • Post Points: 20
  • 06-30-2008 15:16 In reply to

    Re: Line Chart customization problems in ver 3. Help!

    With older versions of the chart you have to implement a custom layer in order to change/add/remove primitives. This is done by creating a class that implements ILayer. When you override FillSceneGraph method, you can change the styles of various elements as well as add new ones.
    By default, the old legend only displays rectangles, so you will have to custom draw the legend inside the layer class.
    There are several examples in the help and the knowledge base that can help you get started:

    http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/Chart_Writing_a_Layer_Class.html
    http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=5432

    When printing, you can save the chart as an image with a different size using chart.SaveTo(stream, imageFormat, size, resolution)

    • Post Points: 5
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems