Package com.oorian.echarts.options
Class EChartsGaugeSeries
java.lang.Object
com.oorian.echarts.options.EChartsSeries
com.oorian.echarts.options.EChartsGaugeSeries
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents a gauge series configuration for ECharts gauge charts.
Extends EChartsSeries to provide gauge-specific options such as min/max values, angles, axis components, and styling.
- Author:
- Oorian
-
Field Summary
Fields inherited from class com.oorian.echarts.options.EChartsSeries
data, name, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsGaugeSeries with type set to "gauge". -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a gauge data point with name and value.protected voidaddSpecificToJson(com.oorian.json.JsonObject obj) Adds series-specific properties to a JSON object.Gets the axis label configuration.Gets the axis line configuration.Gets the axis tick configuration.com.oorian.json.JsonArrayGets the center position.Gets the clockwise setting.Gets the detail configuration.Gets the emphasis configuration.Gets the end angle.Gets the item style configuration.getMax()Gets the maximum value.getMin()Gets the minimum value.Gets the pointer configuration.Gets the radius.Gets the split line configuration.Gets the split number.Gets the start angle.getTitle()Gets the title configuration.protected voidinitSpecificFromJson(com.oorian.json.JsonObject obj) Initializes series-specific properties from a JSON object.voidsetAxisLabel(EChartsAxisLabel axisLabel) Sets the axis label configuration.voidsetAxisLine(EChartsAxisLine axisLine) Sets the axis line configuration.voidsetAxisTick(EChartsAxisTick axisTick) Sets the axis tick configuration.voidSets the center position of the gauge.voidsetClockwise(Boolean clockwise) Sets whether the gauge is drawn clockwise.voidsetDetail(EChartsDetail detail) Sets the detail configuration for displaying the gauge value.voidsetEmphasis(EChartsEmphasis emphasis) Sets the emphasis configuration for highlighted elements.voidsetEndAngle(Number endAngle) Sets the ending angle of the gauge.voidsetItemStyle(EChartsItemStyle itemStyle) Sets the item style configuration.voidSets the maximum value of the gauge.voidSets the minimum value of the gauge.voidsetPointer(EChartsPointer pointer) Sets the pointer configuration.voidSets the radius of the gauge as a numeric value.voidSets the radius of the gauge as a string (can be percentage like "70%").voidsetSplitLine(EChartsSplitLine splitLine) Sets the split line configuration.voidsetSplitNumber(Integer splitNumber) Sets the number of split sections on the gauge.voidsetStartAngle(Number startAngle) Sets the starting angle of the gauge.voidsetTitle(EChartsTitle title) Sets the title configuration for the gauge.Methods inherited from class com.oorian.echarts.options.EChartsSeries
addData, getData, getName, getType, initFromJson, parseDataArray, setData, setName, setType, toJsonString, toJsonValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oorian.json.Jsonable
initFromJson, initFromJson
-
Constructor Details
-
EChartsGaugeSeries
public EChartsGaugeSeries()Constructs a new EChartsGaugeSeries with type set to "gauge".
-
-
Method Details
-
addData
Adds a gauge data point with name and value.- Parameters:
name- the name/label for this gaugevalue- the numeric value
-
setMin
Sets the minimum value of the gauge.- Parameters:
min- the minimum value
-
setMax
Sets the maximum value of the gauge.- Parameters:
max- the maximum value
-
setStartAngle
Sets the starting angle of the gauge.- Parameters:
startAngle- the start angle in degrees
-
setEndAngle
Sets the ending angle of the gauge.- Parameters:
endAngle- the end angle in degrees
-
setClockwise
Sets whether the gauge is drawn clockwise.- Parameters:
clockwise- true for clockwise direction
-
setSplitNumber
Sets the number of split sections on the gauge.- Parameters:
splitNumber- the number of splits
-
setRadius
Sets the radius of the gauge as a numeric value.- Parameters:
radius- the radius value in pixels
-
setRadius
Sets the radius of the gauge as a string (can be percentage like "70%").- Parameters:
radius- the radius value as string
-
setCenter
Sets the center position of the gauge.- Parameters:
x- the x coordinate (can be percentage or pixel value)y- the y coordinate (can be percentage or pixel value)
-
setAxisLine
Sets the axis line configuration.- Parameters:
axisLine- the axis line configuration
-
setSplitLine
Sets the split line configuration.- Parameters:
splitLine- the split line configuration
-
setAxisTick
Sets the axis tick configuration.- Parameters:
axisTick- the axis tick configuration
-
setAxisLabel
Sets the axis label configuration.- Parameters:
axisLabel- the axis label configuration
-
setPointer
Sets the pointer configuration.- Parameters:
pointer- the pointer configuration
-
setItemStyle
Sets the item style configuration.- Parameters:
itemStyle- the item style configuration
-
setEmphasis
Sets the emphasis configuration for highlighted elements.- Parameters:
emphasis- the emphasis configuration
-
setTitle
Sets the title configuration for the gauge.- Parameters:
title- the title configuration
-
setDetail
Sets the detail configuration for displaying the gauge value.- Parameters:
detail- the detail configuration
-
getMin
Gets the minimum value.- Returns:
- the minimum value
-
getMax
Gets the maximum value.- Returns:
- the maximum value
-
getStartAngle
Gets the start angle.- Returns:
- the start angle in degrees
-
getEndAngle
Gets the end angle.- Returns:
- the end angle in degrees
-
getClockwise
Gets the clockwise setting.- Returns:
- true if clockwise direction is enabled
-
getSplitNumber
Gets the split number.- Returns:
- the number of splits
-
getRadius
Gets the radius.- Returns:
- the radius value
-
getCenter
public com.oorian.json.JsonArray getCenter()Gets the center position.- Returns:
- the center position array
-
getAxisLine
Gets the axis line configuration.- Returns:
- the axis line configuration
-
getSplitLine
Gets the split line configuration.- Returns:
- the split line configuration
-
getAxisTick
Gets the axis tick configuration.- Returns:
- the axis tick configuration
-
getAxisLabel
Gets the axis label configuration.- Returns:
- the axis label configuration
-
getPointer
Gets the pointer configuration.- Returns:
- the pointer configuration
-
getItemStyle
Gets the item style configuration.- Returns:
- the item style configuration
-
getEmphasis
Gets the emphasis configuration.- Returns:
- the emphasis configuration
-
getTitle
Gets the title configuration.- Returns:
- the title configuration
-
getDetail
Gets the detail configuration.- Returns:
- the detail configuration
-
initSpecificFromJson
protected void initSpecificFromJson(com.oorian.json.JsonObject obj) Description copied from class:EChartsSeriesInitializes series-specific properties from a JSON object.Subclasses must implement this method to handle their specific properties.
- Specified by:
initSpecificFromJsonin classEChartsSeries- Parameters:
obj- the JSON object containing series properties
-
addSpecificToJson
protected void addSpecificToJson(com.oorian.json.JsonObject obj) Description copied from class:EChartsSeriesAdds series-specific properties to a JSON object.Subclasses must implement this method to serialize their specific properties.
- Specified by:
addSpecificToJsonin classEChartsSeries- Parameters:
obj- the JSON object to add properties to
-