Skip to content

Commit 22353a3

Browse files
修复boxplot在生成json时出现itemStyle重复定义
1 parent 75b2cd8 commit 22353a3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/github/abel533/echarts/series/Boxplot.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public class Boxplot extends Series<Boxplot> {
4545
/**
4646
* boxplot 图形样式,有 normal 和 emphasis 两个状态,normal 是图形正常的样式,emphasis 是图形高亮的样式,比如鼠标悬浮或者图例联动高亮的时候会使用 emphasis 作为图形的样式
4747
*/
48-
private ItemStyle itemStyle;
48+
//private ItemStyle itemStyle;
49+
//在Gson生成json时会出现该成员变量重复定义的问题
4950

5051
/**
5152
* 构造函数

src/main/java/com/github/abel533/echarts/series/Series.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public abstract class Series<T> extends AbstractData<T> implements Chart {
7777
*
7878
* @see com.github.abel533.echarts.style.ItemStyle
7979
*/
80-
private ItemStyle itemStyle;
80+
protected ItemStyle itemStyle;
8181
/**
8282
* 标注
8383
*

0 commit comments

Comments
 (0)