Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Chart User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

6.14 Custom Graph Types

Objective Chart is designed to allow new chart styles to be added using a chart extension system.

You can add new styles to change the appearance of labels, axes, and data display by defining a new style ID. You need only to define a new graph style ID (in the range 00c00000 to 00ff0000) or axis style ID (in the range c0000000 to ff000000).

When the draw routines in SRGDisplayBase encounter an unknown axis type ID, they call the virtual functions DrawCustomAxis() and DrawCustomLabels(). PrepareCustom() and DrawCustomData() are called for an unknown graph type ID.

You must derive your own class from SRGraphDisplay or one of the chart-specific display classes and define the appropriate DrawCustomXXX() functions to perform your desired actions. You can probably copy and modify one of the existing draw functions.

This technique is discussed in more detail in Chapter 16, "Chart Extensions."



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.