XChart-Extension-for-App-inventor
XChart is a powerful radar chart component for App Inventor
š§© XChart
An extension for MIT App Inventor 2.XChart is a powerful radar chart component for App Inventor that allows you to create interactive and customizable radar/spider charts. Features include customizable colors, animations, shapes, labels, and click events. Developed by th using Fast.
Specifications
Size: 25.68 KB
Version: 1.0
Minimum API Level: 7
Updated On: 2025-02-26T18:30:00Z
Built & documented using: FAST-CLI
Paid Price - 2š² USD.
INR - 175rs.
Telegram: here
Find more Extension here
Find more info in GitHub
Buy In PayPal
Lib used
Screen shot
Demo
Events:
XChart has total 7 events.
Click
Triggered when the radar chart is clicked.
PointClick
Triggered when a data point is clicked.
Parameter | Type |
---|---|
index | number |
AnimationStart
Triggered when the chart animation starts.
AnimationEnd
Triggered when the chart animation ends.
DataChanged
Triggered when the chart data is updated.
TitleClick
Triggered when a title is clicked.
Parameter | Type |
---|---|
index | number |
RegionClick
Triggered when a region is clicked.
Parameter | Type |
---|---|
index | number |
Methods:
XChart has total 3 methods.
Create
Creates a radar chart inside the specified arrangement. The arrangement must be a HorizontalArrangement or VerticalArrangement component.
Parameter | Type |
---|---|
arrangement | component |
SetDrawables
Adds icon drawables to each vertex of the radar chart. Provide a list of drawable resource IDs.
Parameter | Type |
---|---|
drawablesList | list |
SetRegionShaderConfig
Configures a custom gradient shader for regions. Provide lists of colors and position values (0.0-1.0).
Parameter | Type |
---|---|
colorsList | list |
positionsList | list |
Setters:
XChart has total 33 setter properties.
SetPercents
Sets the values for each data point as percentages between 0.0 and 1.0. The list length must match the number of sides.
- Input type:
list
SetTitles
Sets the label text for each vertex of the radar chart. The list length must match the number of sides.
- Input type:
list
SetValues
Sets additional text values to display below each title. Useful for showing exact numbers or labels.
- Input type:
list
SetColors
Sets custom colors for each region of the radar chart. Provide a list of color values in decimal format.
- Input type:
list
SetCount
Sets the number of vertices (sides) for the radar chart. This determines how many data points can be displayed.
- Input type:
number
SetLayerCount
Sets the number of concentric layers in the radar chart background. These create the grid effect.
- Input type:
number
SetDrawableSize
Sets the size of the icon drawables in pixels at each vertex.
- Input type:
number
SetDrawablePadding
Sets the padding between icon drawables and their labels in pixels.
- Input type:
number
SetDescPadding
Sets the padding for descriptions/labels around the chart in pixels.
- Input type:
number
SetTitleSize
Sets the font size for vertex titles in pixels.
- Input type:
number
SetDataSize
Sets the font size for data values in pixels.
- Input type:
number
SetRadarPercent
Sets the size of the radar chart relative to its container (0.0-1.0). Example: 0.8 means 80% of container size.
- Input type:
number
SetStartColor
Sets the starting color for gradient effects. Use decimal color values.
- Input type:
number
SetEndColor
Sets the ending color for gradient effects. Use decimal color values.
- Input type:
number
SetEnabledAnimation
Enables or disables animation effects when the chart updates.
- Input type:
boolean
SetEnabledShowPoint
Enables or disables the display of points at each vertex of the chart.
- Input type:
boolean
SetCobwebColor
Sets the color of the background grid lines (cobweb). Use decimal color values.
- Input type:
number
SetLineColor
Sets the color of the data lines that connect the vertices. Use decimal color values.
- Input type:
number
SetDataColor
Sets the color of the data value text. Use decimal color values.
- Input type:
number
SetTitleColor
Sets the color of the title text at each vertex. Use decimal color values.
- Input type:
number
SetPointColor
Sets the color of the vertex points. Use decimal color values.
- Input type:
number
SetPointRadius
Sets the radius of the vertex points in pixels.
- Input type:
number
SetEnabledBorder
Enables or disables the border around the entire chart.
- Input type:
boolean
SetBorderColor
Sets the color of the chart's border. Use decimal color values.
- Input type:
number
SetBoundaryWidth
Sets the width of the chart's border in pixels.
- Input type:
number
SetEnabledPolygon
Enables or disables the polygon shape connecting the data points.
- Input type:
boolean
SetCircle
Sets whether the chart should be circular (true) or polygonal (false).
- Input type:
boolean
SetEnabledShade
Enables or disables the shading effect inside the data polygon.
- Input type:
boolean
SetEnabledRadius
Enables or disables the lines extending from the center to each vertex.
- Input type:
boolean
SetEnabledText
Enables or disables all text labels (titles and values).
- Input type:
boolean
SetSingleColor
Sets a single color for all regions of the chart. Use decimal color values.
- Input type:
number
SetEnabledRegionShader
Enables or disables the custom gradient shader effect for regions.
- Input type:
boolean
LoadAnimation
Reloads the chart with or without animation effects.
- Input type:
boolean
Getters:
XChart has total 27 getter properties.
Count
Gets the current number of vertices (sides) in the radar chart.
- Return type:
number
LayerCount
Gets the current number of concentric layers in the chart.
- Return type:
number
DrawableSize
Gets the current drawable size in pixels.
- Return type:
number
DrawablePadding
Gets the current drawable padding in pixels.
- Return type:
number
DescPadding
Gets the current description padding in pixels.
- Return type:
number
TitleSize
Gets the current title text size in pixels.
- Return type:
number
DataSize
Gets the current data text size in pixels.
- Return type:
number
RadarPercent
Gets the current radar chart size percentage (0.0-1.0).
- Return type:
number
StartColor
Gets the current start color value.
- Return type:
number
EndColor
Gets the current end color value.
- Return type:
number
EnabledAnimation
Checks if animation is currently enabled.
- Return type:
boolean
EnabledShowPoint
Checks if points are currently shown.
- Return type:
boolean
CobwebColor
Gets the current cobweb color value.
- Return type:
number
LineColor
Gets the current line color value.
- Return type:
number
DataColor
Gets the current data color value.
- Return type:
number
TitleColor
Gets the current title color value.
- Return type:
number
PointColor
Gets the current point color value.
- Return type:
number
PointRadius
Gets the current point radius in pixels.
- Return type:
number
EnabledBorder
Checks if border is currently enabled.
- Return type:
boolean
BorderColor
Gets the current border color value.
- Return type:
number
BoundaryWidth
Gets the current boundary width in pixels.
- Return type:
number
EnabledPolygon
Checks if polygon is currently enabled.
- Return type:
boolean
Circle
Checks if circular shape is currently enabled.
- Return type:
boolean
EnabledShade
Checks if shade effect is currently enabled.
- Return type:
boolean
EnabledRadius
Checks if radius lines are currently enabled.
- Return type:
boolean
EnabledText
Checks if text labels are currently enabled.
- Return type:
boolean
SingleColor
Gets the current single color value.
- Return type:
number
Thanks
TechHamara