--background--
DESCRIPTION
Chart.mcc is a MUI custom class to visualize data in a bar chart.
In the future more chart types may become available.
MUIA_Chart_Count
(V20) [..G], size_t
DESCRIPTION
Get the current number of entries in a chart
SEE ALSO
MUIM_Chart_Insert
MUIA_Chart_GroupSize
(V20) [ISG], size_t
DESCRIPTION
Number of bars (values) in a discrete group. Defaults to 1.
If set after object creation groups are automatically
truncated or extended as needed
SEE ALSO
MUIA_Chart_Title
(V20) [I.G], CONST_STRPTR
DESCRIPTION
The title displayed above a chart
MUIA_Chart_Unit
(V20) [I.G], CONST_STRPTR
DESCRIPTION
The unit text displayed in a chart
MUIM_Chart_ClearGroup
(V20)
SYNOPSIS
DoMethod(chart, MUIM_Chart_ClearGroup, size_t groupnumber);
DESCRIPTION
Clear group to its initial value
INPUTS
groupnum - Group number to clear, starting from zero.
MUIV_Chart_ClearGroup_All:
clear all groups.
MUIV_Chart_ClearGroup_First:
clear first group.
MUIV_Chart_ClearGroup_Last:
clear last group
MUIM_Chart_GetGroup
(V20)
SYNOPSIS
DoMethod(chart, MUIM_Chart_GetGroup, size_t groupnum, CONST_STROTR *label, CONST_APTR *values);
DESCRIPTION
Get values and group label from a specified group
EXAMPLE
CONST_STRPTR lab;
DOUBLE *values;
DoMethod(chart, MUIM_Chart_GetGroup, 3, &lab, &values
MUIM_Chart_InsertGroup
(V20)
SYNOPSIS
DoMethod(chart, MUIM_Chart_InsertGroup, size_t groupnum, CONST_STRPTR label, CONST_APTR values);
DESCRIPTION
Insert new entry into a chart
INPUTS
groupnum - New entry will be added in front of this entry.
MUIV_Chart_InsertGroup_First:
insert as first entry.
MUIV_Chart_InsertGroup_Last:
insert as last entry.
label - Label to be displayed in a chart.
values - A pointer to a data (DOUBLE *) array
EXAMPLE
DOUBLE values[3] = { 1000.0, 1500.0, 1250.5 };
DoMethod(chart, MUIM_Chart_InsertGroup, MUIV_Chart_InsertGroup_Last, "data", &values
MUIM_Chart_RemoveGroup
(V20)
SYNOPSIS
DoMethod(chart, MUIM_Chart_RemoveGroup, size_t groupnum);
DESCRIPTION
Remove a group from the chart
INPUTS
groupnum - Group number to remove, starting from zero.
MUIV_Chart_RemoveGroup_All:
remove all groups.
MUIV_Chart_RemoveGroup_First:
remove first group.
MUIV_Chart_RemoveGroup_Last:
remove last group