Chart Functions

Microchip Graphics Library

Microchip Graphics Library
Chart Functions
Functions
 
Name 
Description 
 
This function creates a CHART object with the parameters given. It automatically attaches the new object into a global linked list of objects and returns the address of the object. 
 
This function renders the object on the screen using the current parameter settings. Location of the object is determined by the left, top, right and bottom parameters. The colors used are dependent on the state of the object. The font used is determined by the style scheme set.
The colors of the bars of the bar chart or sectors of the pie chart can be the default color table or user defined color table set by ChSetColorTable() function.
When rendering objects of the same type, each object must be rendered completely before the rendering of the next object is... more 
 
This function creates a DATASERIES object and populates the structure with the given parameters. 
 
This function removes DATASERIES object from the list of DATASERIES objects and frees the memory used of that removed object. The position of the object to be removed is specified by the number parameter. If the list has only one member, it removes the member regardless of the number given. 
 
This function sets the minimum and maximum range of values that the bar chart will show. The criteria is that min <= max. 
 
This function sets the minimum and maximum range of percentage that the bar chart will show. The criteria is that min <= max. This affects bar charts only and CH_PERCENTAGE bit state is set. 
 
This function sets the sample start and sample end when drawing the chart. Together with the data series' SHOW_DATA flags the different way of displaying the chart data is achieved.
 
 
This function removes DATASERIES object from the list of DATASERIES objects and frees the memory used of that removed object. 
 
This function evaluates the message from a user if the message will affect the object or not. The table below enumerates the translated messages for each event of the touch screen and keyboard inputs.
 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved