Skip to content

Commit

Permalink
[pre v1.0.1] support springboot starter
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Apr 5, 2020
1 parent ff74478 commit fa02c54
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.koy</groupId>
<artifactId>cutecharts</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<description>A hand drawing style charts library in Java</description>

<properties>
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/koy/cutecharts/core/ChartBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ public Chart getChart() {
return chart;
}

public void setChart(ChartType chart) {
public newChart setChart(ChartType chart) {
init(chart);
return this;
}

public GlobalOptions getGlobalOptions() {
Expand All @@ -118,5 +119,9 @@ public GlobalOptions getGlobalOptions() {
public void setGlobalOptions(GlobalOptions globalOptions) {
this.globalOptions = globalOptions;
}

public ChartType getChartType() {
return chartType;
}
}
}
11 changes: 10 additions & 1 deletion src/main/java/com/koy/cutecharts/options/BaseOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.koy.cutecharts.enums.ChartType;
import com.koy.cutecharts.enums.PositionType;

import java.util.Arrays;

/**
* @Description
* @Auther Koy https://github.com/Koooooo-7
Expand All @@ -16,6 +18,9 @@ public class BaseOptions implements Options {
this.chartType = chartType;
}

public BaseOptions() {
}

/**
* xTickCount: customize tick numbers you want to see on the x axis (default 3)
* yTickCount: customize tick numbers you want to see on the y axis (default 3)
Expand Down Expand Up @@ -48,7 +53,7 @@ public String toString() {
", showLabels=" + showLabels +
", showLegend=" + showLegend +
", legendPosition=" + legendPosition +
", dataColors=" + dataColors +
", dataColors=" + Arrays.toString(dataColors) +
", unxkcdify=" + unxkcdify +
", strokeColor='" + strokeColor + '\'' +
", backgroundColor='" + backgroundColor + '\'' +
Expand Down Expand Up @@ -125,6 +130,10 @@ public ChartType getChartType() {
return chartType;
}

public void setChartType(ChartType chartType) {
this.chartType = chartType;
}

public String getFontFamily() {
return fontFamily;
}
Expand Down

0 comments on commit fa02c54

Please sign in to comment.