58 lines
3.3 KiB
XML
58 lines
3.3 KiB
XML
<!--
|
|
<lv_chart type="bar" point_count="30">
|
|
<lv_chart-series color="0xff0000" axis="primary_y" values="10, 20, 10, 33"/>
|
|
<lv_chart-series color="0x00ff00" axis="secondary_y" values="1, 5, 4 8"/>
|
|
<lv_chart-cursor color="0x0000ff" dir="right" pos="30, 70"/>
|
|
<lv_chart-axis name="primary_y" range="10, 40"/>
|
|
</lv_chart>
|
|
-->
|
|
|
|
<widget>
|
|
<api>
|
|
<enumdef name="lv_chart_type" help="How the chart draws its data series">
|
|
<enum name="none" help="Draw nothing"/>
|
|
<enum name="line" help="Draw data points as connected lines"/>
|
|
<enum name="bar" help="Draw data points as bars"/>
|
|
<enum name="stacked" help="Draw series as stacked bars on top of each other"/>
|
|
<enum name="scatter" help="Draw data points as unconnected dots"/>
|
|
</enumdef>
|
|
|
|
<enumdef name="lv_chart_update_mode" help="How the chart handles new data points">
|
|
<enum name="shift" help="Shift old data to the left when new points are added"/>
|
|
<enum name="circular" help="Overwrite the oldest data in a circular buffer style"/>
|
|
</enumdef>
|
|
|
|
<enumdef name="lv_chart_axis" help="Which axis a series belongs to">
|
|
<enum name="primary_x" help="Use the primary X axis"/>
|
|
<enum name="primary_y" help="Use the primary Y axis"/>
|
|
<enum name="secondary_x" help="Use the secondary X axis"/>
|
|
<enum name="secondary_y" help="Use the secondary Y axis"/>
|
|
</enumdef>
|
|
|
|
<prop name="type" type="enum:lv_chart_type" help="Choose how the chart should draw its data"/>
|
|
<prop name="point_count" type="int" help="Set how many data points each series stores"/>
|
|
<prop name="update_mode" type="enum:lv_chart_update_mode" help="Choose how the chart updates when adding new points"/>
|
|
<prop name="hor_div_line_count" type="int" help="Show this many horizontal division lines"/>
|
|
<prop name="ver_div_line_count" type="int" help="Show this many vertical division lines"/>
|
|
|
|
<element name="series" type="lv_chart_series" access="add" help="Add a data series to the chart">
|
|
<arg name="color" type="color" help="Set the color of the series"/>
|
|
<arg name="axis" type="enum:lv_chart_axis+" default="primary_y" help="Choose which axis the series belongs to"/>
|
|
<prop name="values" type="int[count]" help="Provide the data values of the series"/>
|
|
</element>
|
|
|
|
<element name="cursor" type="lv_chart_cursor" access="add" help="Add a cursor indicator to the chart">
|
|
<arg name="color" type="color" arg="true" help="Set the color of the cursor"/>
|
|
<arg name="dir" type="enum:lv_dir" arg="true" help="Choose the direction of the cursor"/>
|
|
<prop name="pos_x" type="int" help="Set the X position of the cursor"/>
|
|
<prop name="pos_y" type="int" help="Set the Y position of the cursor"/>
|
|
</element>
|
|
|
|
<element name="axis" access="set" help="Configure the range of a chart axis">
|
|
<arg name="axis" type="enum:lv_chart_axis" help="Choose which axis to configure"/>
|
|
<prop name="min_value" type="int" help="Set the minimum value of the axis"/>
|
|
<prop name="max_value" type="int" help="Set the maximum value of the axis"/>
|
|
</element>
|
|
</api>
|
|
</widget>
|