Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 8 additions & 64 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<groupId>com.github.abel533</groupId>
<artifactId>ECharts</artifactId>
<version>3.0.0.6</version>
<version>3.0.0.7</version>
<packaging>jar</packaging>

<name>ECharts</name>
Expand Down Expand Up @@ -85,14 +85,6 @@
</dependencies>

<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
<testResource>
<directory>src/test/java</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand All @@ -118,63 +110,15 @@
<target>1.6</target>
</configuration>
</plugin>
<!-- Source -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
<!-- GPG mvn clean deploy -P release -Dgpg.passphrase=YourPassphase-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<snapshotRepository>
<id>oss</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>oss</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>cbi-repo</id>
<name>cbi-repo</name>
<url>http://101.200.45.222:8000/repository/cbi-repo/</url>
</repository>
</distributionManagement>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ public enum SeriesType {
boxplot,//中文可以称为『箱形图』、『盒须图』、『盒式图』、『盒状图』、『箱线图』++++++++++++++++++++++++
parallel,//平行坐标系++++++++++++++++++++++
sankey,//桑基图,是一种特殊的流图, 它主要用来表示原材料、能量等如何从初始形式经过中间过程的加工、转化到达最终形式++++++++++++++
sunburst,//旭日图
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ public static Sankey newSankey() {
public static Sankey newSankey(String name) {
return new Sankey(name);
}
public static Sunburst newSunburst() {
return new Sunburst();
}


}
128 changes: 128 additions & 0 deletions src/main/java/com/github/abel533/echarts/series/Sunburst.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 abel533@gmail.com
*
* 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.series;

import com.github.abel533.echarts.code.RoseType;
import com.github.abel533.echarts.code.SelectedMode;
import com.github.abel533.echarts.code.SeriesType;
import lombok.Getter;
import lombok.Setter;

/**
* 旭日图
*
* @author miguanxiong
*/
@Getter
@Setter
public class Sunburst extends Series<Sunburst> {
/**
* 圆心坐标,支持绝对值(px)和百分比,百分比计算min(width, height) * 50%
*/
private Object[] center;
/**
* 半径,支持绝对值(px)和百分比,百分比计算比,min(width, height) / 2 * 75%,
* 传数组实现环形图,[内半径,外半径]
*/
private Object radius;

/**
* 构造函数
*/
public Sunburst() {
this.type(SeriesType.sunburst);
}

/**
* 构造函数,参数:name
*
* @param name
*/
public Sunburst(String name) {
super(name);
this.type(SeriesType.pie);
}

/**
* 获取center值
*/
public Object[] center() {
return this.center;
}

/**
* 设置center值
*
* @param center
*/
public Sunburst center(Object[] center) {
this.center = center;
return this;
}

/**
* 获取radius值
*/
public Object radius() {
return this.radius;
}

/**
* 圆心坐标,支持绝对值(px)和百分比,百分比计算min(width, height) * 50%
*
* @param width
* @param height
* @return
*/
public Sunburst center(Object width, Object height) {
this.center = new Object[]{width, height};
return this;
}

/**
* 半径,支持绝对值(px)和百分比,百分比计算比,min(width, height) / 2 * 75%,
* 传数组实现环形图,[内半径,外半径]
*
* @param radius
* @return
*/
public Sunburst radius(Object radius) {
this.radius = radius;
return this;
}

/**
* 半径,支持绝对值(px)和百分比,百分比计算比,min(width, height) / 2 * 75%,
* 传数组实现环形图,[内半径,外半径]
*
* @param width 内半径
* @param height 外半径
* @return
*/
public Sunburst radius(Object width, Object height) {
radius = new Object[]{width, height};
return this;
}
}
116 changes: 0 additions & 116 deletions src/test/java/com/github/abel533/echarts/FromJsonTest.java

This file was deleted.

Loading