new ThemeGraphAxes(options)
Usage
import { ThemeGraphAxes } from '@supermapgis/iclient-leaflet';
new ThemeGraphAxes(options);<script type="text/javascript" src="https://iclient.supermap.io/dist/leaflet/iclient-leaflet.js"></script>
<script>
new L.supermap.ThemeGraphAxes({paramsNames});
// 弃用的写法
new SuperMap.ThemeGraphAxes(options);
</script>
common/iServer/ThemeGraphAxes.js, line 8
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
参数。
|
API Relations
Returned by:
ThemeGraphAxes.fromObj.
Members
-
axesColorServerColor
-
坐标轴颜色。当 axesDisplayed = true 时有效。
- Default Value: (0, 0, 0)
axesDisplayedboolean
是否显示坐标轴。
由于饼状图和环状图无坐标轴,故该属性以及所有与坐标轴设置相关的属性都不适用于它们。并且只有当该值为 true 时,其它设置坐标轴的属性才起作用。
axesGridDisplayedboolean
是否在统计图坐标轴上显示网格。
axesTextDisplayedboolean
是否显示坐标轴的文本标注。
axesTextStyleServerTextStyle
坐标轴文本标注风格。当 axesTextDisplayed = true 时有效。
Methods
-
static fromObj(obj){ThemeGraphAxes}
common/iServer/ThemeGraphAxes.js, line 82 -
从传入对象获取统计专题图坐标轴样式类。
Name Type Description objObject 传入对象。
Returns:
Type Description ThemeGraphAxes ThemeGraphAxes 对象。 -
destroy()
common/iServer/ThemeGraphAxes.js, line 63 -
释放资源,将引用资源的属性置空。