Line Graph Widget Documentation
Introduction
The Line Graph Widget is a graphical interface element designed to present data in a visually engaging manner, allowing users to easily discern patterns and trends.
This widget serves as an essential tool for data analysis, enabling both real-time and retrospective review of complex information through a simplified and intuitive visual representation.
This Line Graph Widget document covers the following topics:
- Creating and customizing Line Graph Widgets using Microchip Graphics Suite (MGS) Harmony Composer
- Line Graph Widget properties
- Handling Line Graph Widget properties and changing its data through application code
- Line Graph Widget example project
- APIs specific to Line Graph Widget
Designing Line Graph Widget using MGS Harmony Composer
To add Line Graph widget to your design, follow the steps given below:
Select and drag the Line Graph from the Tool Box to your screen designer workspace as shown in the accompanying image:
To customize the line graph, select it on the screen designer or from the Screen Tree and modify its properties using the Object Editor:
Click on the Press button next to Configure Data property:
Categories represent the X-axis data and Series are shown on the Y-axis. Once a category is added, a String needs to be selected for the label, by double-clicking the category or using the Edit button:
Multiple Data Series can be used in the same time, and one can change their color by using Schemes Foreground color:
Managing Line Graph Widget Schemes
Schemes control the look and feel of a widget.
To learn more about Schemes, how to add a new scheme and apply it to the widget, refer to the "About the Schemes and Scheme Editor" page.
Below is an example color scheme and the resulting appearance of the Line Graph:
The information about the Line Graph scheme adjustments and the example color scheme is summarized in the table below:
Line Graph Properties
You can set the following properties of the Line Graph using the Object Editor:
Name | This will be used to reference the Line Graph by the application. Example- Screen0_LineGraphWidget_0. |
Tick Length | This will be used to set the length of tick lines on the graph axis. |
Fill Graph Area | This will be set the graph area to be filled with Scheme Background color or leave the graph background same color as Scheme Base. |
Value Axis Minimum Value | Sets the minimum value on the Y Axis, it may also be a negative value. |
Value Axis Maximum Value | Sets the maximum value on the Y Axis. |
Value Axis Tick Interval | Sets the distance between ticks on the Y Axis. |
Value Axis Show Ticks | If checked, the ticks on Y Axis will be displayed. |
Value Axis Tick Position | Sets ticks position to inside, center of outside relative to Y Axis. |
Value Axis Show Tick Labels | When checked, the tick labels will be shown. |
Value Axis Show Subticks | If checked, the subticks will be shown. |
Value Axis Subtick Position | Sets subticks position to inside, center of outside relative to Y Axis. |
Value Axis Show Gridlines | When checked, the horizontal gridlines will be displayed. |
Value Axis Label Font | Used to select which font will be used for displayed text. |
Category Axis Show Category Ticks | When checked, the category ticks will be displayed on the X Axis. |
Category Axis Show Category Labels | If checked, the category labels will be displayed. For this labels, the font is the one that was set for the string asset that set for this category. |
Category Axis Tick Position | Sets ticks position to inside, center or outside relative to X Axis. |
Configure Data | Used to configure the initial data for the Line Graph. It's optional to add initial data, as it can be added later in user code. |
Stacked | When checked, the data series are displayed on top of one another. When you stack series in a line graph, each data point in a series is added to the sum of the corresponding data points in all the previous series. |
Fill Series Area | If checked, it will enable the fill area feature which makes the graph easier to interpret. The latest series will overwrite previous series area if values overlap. |
Managing Line Graph Widget through Programming
Once the graphical design is completed using MGS Harmony Composer, MCC generates the required code for all the widgets based on the properties set in the Object Editor. To learn more about the process flow between designing a UI and developing application code, refer to the "Designing an Application with Microchip Graphics Suite (MGS)" page.
Let us suppose that a Line Graph widget is created with the following properties in MGS Harmony Composer:
For the Line Graph widget with the properties shown in the figure above, MCC will automatically generate the following lines of code in src\config\default\gfx\legato\generated\screen\le_gen_screen_Screen0.c:
- A new line graph widget is created by the variable name Screen0_LineGraphWidget_0:
Screen0_LineGraphWidget_0 = leLineGraphWidget_New();
- Its position is set to pixel location 100x100:
Screen0_LineGraphWidget_0->fn->setPosition(Screen0_LineGraphWidget_0, 100, 100);
- Its size is set to 600x350:
Screen0_LineGraphWidget_0->fn->setSize(Screen0_LineGraphWidget_0, 600, 350);
- If the scheme is changed from default to custom scheme, the following code is added:
Screen0_LineGraphWidget_0->fn->setScheme(Screen0_LineGraphWidget_0, &GraphScheme);
- Set the widget background to be filled with the color specified by graph scheme:
Screen0_LineGraphWidget_0->fn->setBackgroundType(Screen0_LineGraphWidget_0, LE_WIDGET_BACKGROUND_FILL);
- Set the tick length in number of pixels:
Screen0_LineGraphWidget_0->fn->setTickLength(Screen0_LineGraphWidget_0, 20);
- Configure the Line Graph to fill the area beneath the series lines:
Screen0_LineGraphWidget_0->fn->setFillSeriesArea(Screen0_LineGraphWidget_0, LE_TRUE);
- Set the minimum value on the Value Axis:
Screen0_LineGraphWidget_0->fn->setMinValue(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, -30);
- Set the maximumvalue on the Value Axis:
Screen0_LineGraphWidget_0->fn->setMaxValue(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, 30);
- Configure the ticks interval on Value Axis:
Screen0_LineGraphWidget_0->fn->setValueAxisTickInterval(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, 5);
- Sets ticks to not be visible on Value Axis:
Screen0_LineGraphWidget_0->fn->setValueAxisTicksVisible(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, LE_FALSE);
- Sets subticks to not be visible on Value Axis:
Screen0_LineGraphWidget_0->fn->setValueAxisSubticksVisible(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, LE_FALSE);
- Configure the subticks position relative to the Value Axis to outside:
Screen0_LineGraphWidget_0->fn->setValueAxisSubticksPosition(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, LINE_GRAPH_TICK_OUT);
- Set the font used for ticks label on Value Axis:
Screen0_LineGraphWidget_0->fn->setTicksLabelFont(Screen0_LineGraphWidget_0, (leFont*)&Font0);
- Add a new category, which will automatically match it with an ID. The function also returns the ID:
Screen0_LineGraphWidget_0->fn->addCategory(Screen0_LineGraphWidget_0);
- Set the string that will be used for a category identified by its ID:
Screen0_LineGraphWidget_0->fn->setCategoryString(Screen0_LineGraphWidget_0, 0, (leString*)&string_Timeline1);
- Add a new series, which will automatically match it with an ID. The function also returns the ID:
Screen0_LineGraphWidget_0->fn->addSeries(Screen0_LineGraphWidget_0);
- Set the scheme for a specific series identified by its ID:
Screen0_LineGraphWidget_0->fn->setSeriesScheme(Screen0_LineGraphWidget_0, 0, &RedScheme);
- Add data a specific series identified by its ID:
Screen0_LineGraphWidget_0->fn->addDataToSeries(Screen0_LineGraphWidget_0, 0, 10);
- Add data a specific series identified by its ID:
Screen0_LineGraphWidget_0->fn->addDataToSeries(Screen0_LineGraphWidget_0, 0, 10);
- Finally, the label is added to the screen:
->fn->addChild(root0, (leWidget*)Screen0_LineGraphWidget_0);
Application Code
The default code generated by MCC sets the initial state of the widget. The property or behavior of the widgets can be changed by using the APIs discussed above, in the application code. Additional application code discussion related to Line Graph widget is presented below.
Here is an example of clearing the previous data that Line Graph Widget was showing, setting new minimum and maximum value, adding a new category and series to that category:
Screen0_LineGraphWidget_0->fn->setMinValue(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, 0);
Screen0_LineGraphWidget_0->fn->setMaxValue(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, 100);
Screen0_LineGraphWidget_0->fn->addCategory(Screen0_LineGraphWidget_0);
Screen0_LineGraphWidget_0->fn->setCategoryString(Screen0_LineGraphWidget_0, 0, (leString*)&tm_st0);
Screen0_LineGraphWidget_0->fn->addSeries(Screen0_LineGraphWidget_0);
Screen0_LineGraphWidget_0->fn->addDataToSeries(Screen0_LineGraphWidget_0, 0, 90);
Line Graph Widget Example Project
An example project for Line Graph Widget is provided.
In this example we show:
- How to create a Line Graph Widget
- How to clear the data it had and add new category and series
- How to simulate dynamic data
MGS Simulator Output
The callback functions for handling the Button events and Line Graph updates are defined in the app.c file. In this example dynamic strings were used for Line Graph Category labels.
As a best practice, changes to the widget are done in the main loop based on the variables that are changed in the timer callback, not in the callback directly.
The system timer callback and the code that changes the Label Widget can be found in the app.c file.
- System timer callback:
{
if (generate_random == 1)
{
int pos = 0;
for (pos = 0; pos < 4; pos++)
{
timestamp[pos] = timestamp[pos+1];
values[pos] = values[pos+1];
}
timestamp[4]++;
values[4] = (rand() % 60) - 30;
update_graph = 1;
}
}
- Pressing ButtonWidget_0 will start simulation of a dynamic graph by updating the Category labels and Series data each second. Firstly clear the already existing data, update the minimum and maximum values and populate the graph data. Complete callback code can be found in the app.c file:
Screen0_LineGraphWidget_0->fn->setMinValue(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, -30);
Screen0_LineGraphWidget_0->fn->setMaxValue(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, 30);
sprintf(tm_st0_char, "%lu", timestamp[0]);
tm_st0.fn->setFromCStr(&tm_st0, tm_st0_char);
Screen0_LineGraphWidget_0->fn->addCategory(Screen0_LineGraphWidget_0);
Screen0_LineGraphWidget_0->fn->setCategoryString(Screen0_LineGraphWidget_0, 0, (leString*)&tm_st0);
Screen0_LineGraphWidget_0->fn->addSeries(Screen0_LineGraphWidget_0);
Screen0_LineGraphWidget_0->fn->setSeriesScheme(Screen0_LineGraphWidget_0, 0, &RedScheme);
for (int i = 0; i < 5; i++)
Screen0_LineGraphWidget_0->fn->addDataToSeries(Screen0_LineGraphWidget_0, 0, values[i]);
Screen0_LineGraphWidget_0->fn->invalidate(Screen0_LineGraphWidget_0);
- Pressing ButtonWidget_1 will show static data in the Line Graph. Firstly clear the already existing data, update the minimum and maximum values, set the fill series area feature of the graph and populate the graph data. Complete callback code can be found in the app.c file:
Screen0_LineGraphWidget_0->fn->setMinValue(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, 0);
Screen0_LineGraphWidget_0->fn->setMaxValue(Screen0_LineGraphWidget_0, LINE_GRAPH_AXIS_0, 100);
Screen0_LineGraphWidget_0->fn->setFillSeriesArea(Screen0_LineGraphWidget_0, LE_TRUE);
sprintf(tm_st0_char, "Mon");
tm_st0.fn->setFromCStr(&tm_st0, tm_st0_char);
Screen0_LineGraphWidget_0->fn->addCategory(Screen0_LineGraphWidget_0);
Screen0_LineGraphWidget_0->fn->setCategoryString(Screen0_LineGraphWidget_0, 0, (leString*)&tm_st0);
Screen0_LineGraphWidget_0->fn->addSeries(Screen0_LineGraphWidget_0);
Screen0_LineGraphWidget_0->fn->setSeriesScheme(Screen0_LineGraphWidget_0, 0, &RedScheme);
Screen0_LineGraphWidget_0->fn->addDataToSeries(Screen0_LineGraphWidget_0, 0, 90);
Screen0_LineGraphWidget_0->fn->invalidate(Screen0_LineGraphWidget_0);
Line Graph Widget APIs Description
This section describes the APIs specific to Line Graph Widget. For a description of APIs common to all widgets, refer to the "Base Widget Documentation" page.
getTickLength()
Gets the tick length.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the length value.
setTickLength()
Sets the tick length.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
uint32_t | len | Tick length value |
Returns LE_SUCCESS or LE_FAILURE.
getStacked()
Gets the stacked setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the setting value.
setStacked()
Sets the stacked status.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leBool | stk | The stacked status |
Returns LE_SUCCESS or LE_FAILURE.
getMaxValue()
Gets the maximum value from Value Axis.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the maximum value.
setMaxValue()
Sets the maximum value.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
int32_t | max | The new value to be set as maximum. |
Returns LE_SUCCESS or LE_FAILURE.
getMinValue()
Gets the minimum value from Value Axis.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the minimum value.
setMinValue()
Sets the minimum value.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
int32_t | min | The new value to be set as minimum. |
Returns LE_SUCCESS or LE_FAILURE.
getValueAxisLabelsVisible()
Gets the visible Value Axis label setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the setting value.
setValueAxisLabelsVisible()
Sets the visibility of the Value Axis labels.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
leBool | vis | The new label visibility setting |
Returns LE_SUCCESS or LE_FAILURE.
getFillGraphArea()
Gets the graph fill setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the setting value.
setFillGraphArea()
Sets the graph fill setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leBool | fill | The new fill setting |
Returns LE_SUCCESS or LE_FAILURE.
getFillSeriesArea()
Gets the fill series area setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the setting value.
setFillSeriesArea()
Sets the fill series area setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leBool | fill | The new fill setting |
Returns LE_SUCCESS or LE_FAILURE.
getGridLinesVisible()
Gets the visible grid lines setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the setting value.
setGridLinesVisible()
Sets the visibility of the grid lines.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
leBool | vis | The new visibility setting |
Returns LE_SUCCESS or LE_FAILURE.
getValueAxisTicksVisible()
Gets the visible value ticks setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the setting value.
setValueAxisTicksVisible()
Sets the visibility of the value axis ticks.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
leBool | vis | The new visibility setting |
Returns LE_SUCCESS or LE_FAILURE.
getValueAxisTickInterval()
Gets the value axis tick interval setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the tick interval value.
setValueAxisTickInterval()
Sets the inverval of the value axis ticks.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
uint32_t | itv | The new interval value |
Returns LE_SUCCESS or LE_FAILURE.
getValueAxisSubticksVisible()
Gets the visible value subticks setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the setting value.
setValueAxisSubticksVisible()
Sets the visibility of the value axis subticks.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
leBool | vis | The new visibility setting |
Returns LE_SUCCESS or LE_FAILURE.
getValueAxisSubtickInterval()
Gets the value axis subticks interval setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the subticks interval value.
setValueAxisSubtickInterval()
Sets the inverval of the value axis subticks.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
uint32_t | itv | The new interval value |
Returns LE_SUCCESS or LE_FAILURE.
getCategoryAxisTicksVisible()
Gets the category axis ticks visible setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the setting value.
setCategoryAxisTicksVisible()
Sets the category axis ticks visible setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leBool | vis | The new visibility setting |
Returns LE_SUCCESS or LE_FAILURE.
addCategory()
Adds a data category.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the category ID.
getCategoryString()
Gets the string currently assigned to a category.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | id | ID of the category that should be checked |
Returns string pointer.
setCategoryString()
Sets the category axis ticks visible setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | id | ID of the category that should be modified |
const leString* | str | Pointer to the string that should be shown on the category label |
Returns LE_SUCCESS or LE_FAILURE.
addSeries()
Adds a data series to the graph.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the series ID.
addDataToSeries()
Adds data to an existing series.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be used |
int32_t | value | Value that will be added in the series |
Returns the ID of the new value.
setDataInSeries()
Sets a new value to an already existing data series.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be used |
int32_t | index | Index of the value that should be modified |
int32_t | value | New value that will be used |
Returns LE_SUCCESS or LE_FAILURE.
getSeriesScheme()
Gets the scheme for a data series.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be checked |
Returns scheme pointer.
setSeriesScheme()
Sets the data series scheme.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be modified |
const leScheme* | schm | Pointer to the scheme that should be used |
Returns LE_SUCCESS or LE_FAILURE.
getSeriesFillPoints()
Gets the series fill point setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be checked |
Returns the setting value.
setSeriesFillPoints()
Sets the data series scheme.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be modified |
leBool | fill | Status that will be applied to fill setting |
Returns LE_SUCCESS or LE_FAILURE.
getSeriesLinesVisible()
Gets the series lines visible setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be checked |
Returns the setting value.
setSeriesLinesVisible()
Sets the series lines visible setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be modified |
leBool | visible | Sets if the lines will be visible or not |
Returns LE_SUCCESS or LE_FAILURE.
getSeriesPointType()
Gets the series point type setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be checked |
Returns the setting value.
setSeriesPointType()
Sets the series point type setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be modified |
leLineGraphDataPointType | type | Status that will be applied to point type setting (LINE_GRAPH_DATA_POINT_NONE, LINE_GRAPH_DATA_POINT_CIRCLE or LINE_GRAPH_DATA_POINT_SQUARE) |
Returns LE_SUCCESS or LE_FAILURE.
getSeriesPointSize()
Gets the series point size.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be checked |
Returns the series point size value.
setSeriesPointSize()
Sets the series point type setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
int32_t | seriesID | ID of the series that should be modified |
uint32_t | size | New size for the series points |
Returns LE_SUCCESS or LE_FAILURE.
clear()
Clears all graph data.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns LE_SUCCESS or LE_FAILURE.
setTicksLabelFont()
Sets the series point type setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
const leFont* | font | The font that should be used |
Returns LE_SUCCESS or LE_FAILURE.
getCategoryAxisLabelsVisible()
Gets the category axis labels visible setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the setting.
setCategoryAxisLabelsVisible()
Sets the category axis labels visible setting.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leBool | visible | Sets the labels visibility setting |
Returns LE_SUCCESS or LE_FAILURE.
getValueAxisTicksPosition()
Gets the value axis ticks position.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the value axis ticks position.
setValueAxisTicksPosition()
Sets the value axis ticks position.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
leLineGraphTickPosition | position | Sets the position to LINE_GRAPH_TICK_IN, LINE_GRAPH_TICK_OUT or LINE_GRAPH_TICK_CENTER |
Returns LE_SUCCESS or LE_FAILURE.
getValueAxisSubticksPosition()
Gets the value axis subticks position.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
Returns the value axis subticks position.
setValueAxisSubticksPosition()
Sets the value axis subticks position.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphValueAxis | axis | Which axis to be checked. This parameter is not used |
leLineGraphTickPosition | position | Sets the position to LINE_GRAPH_TICK_IN, LINE_GRAPH_TICK_OUT or LINE_GRAPH_TICK_CENTER |
Returns LE_SUCCESS or LE_FAILURE.
getCategoryAxisTicksPosition()
Gets the category axis ticks position.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
Returns the category axis ticks position.
setCategoryAxisTicksPosition()
Sets the category axis ticks position.
Parameters
leLineGraphWidget* | _this | Line Graph widget pointer to operate on |
leLineGraphTickPosition | position | Sets the position to LINE_GRAPH_TICK_IN, LINE_GRAPH_TICK_OUT or LINE_GRAPH_TICK_CENTER |
Returns LE_SUCCESS or LE_FAILURE.