Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 [email protected]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.github.abel533.echarts;
import com.github.abel533.echarts.axis.AxisLabel;
import com.github.abel533.echarts.axis.AxisLine;
import com.github.abel533.echarts.axis.SplitArea;
import com.github.abel533.echarts.axis.SplitLine;
import com.github.abel533.echarts.code.PolarType;
import com.github.abel533.echarts.style.TextStyle;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 极坐标
*
* @author liuzh
*/
public class Polar extends AbstractData implements Component {
/**
* 圆心坐标,支持绝对值(px)和百分比,百分比计算min(width, height) * 50%
*/
private Object[] center;
/**
* 半径,支持绝对值(px)和百分比,百分比计算比,min(width, height) / 2 * 75%,
* 传数组实现环形图,[内半径,外半径]
*/
private Object radius;
/**
* 开始角度, 有效输入范围:[-180,180]
*/
private Integer startAngle;
/**
* 分割段数,默认为5
*/
private Integer splitNumber;
/**
* 坐标轴名称
*/
private Name name;
/**
* 数值轴两端空白策略,数组内数值代表百分比,[原始数据最小值与最终最小值之间的差额,原始数据最大值与最终最大值之间的差额]
*/
private Object[] boundaryGap;
/**
* 脱离0值比例,放大聚焦到最终_min,_max区间
*/
private Boolean scale;
/**
* 小数精度,默认为0,无小数点
*/
private Integer precision;
/**
* 整数精度,默认为100,个位和百位为0
*/
private Integer power;
/**
* 坐标轴线,默认显示,属性show控制显示与否,属性lineStyle(详见lineStyle)控制线条样式
*
* @see com.github.abel533.echarts.axis.AxisLine
*/
private AxisLine axisLine;
/**
* 坐标轴文本标签,详见axis.axisLabel
*
* @see com.github.abel533.echarts.axis.AxisLabel
*/
private AxisLabel axisLabel;
/**
* 分隔区域,默认不显示,属性show控制显示与否,属性areaStyle(详见areaStyle)控制区域样式
*
* @see com.github.abel533.echarts.axis.SplitArea
*/
private SplitArea splitArea;
/**
* 分隔线,默认显示,属性show控制显示与否,属性lineStyle(详见lineStyle)控制线条样式
*
* @see com.github.abel533.echarts.axis.SplitLine
*/
private SplitLine splitLine;
/**
* 极坐标的形状,'polygon'|'circle' 多边形|圆形
*/
private PolarType type;
/**
* 雷达指标列表,同时也是label内容
*/
private List