Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix setting YAxis Label colors #183

Merged
merged 1 commit into from
Jun 12, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.github.appreciated.apexcharts.config.yaxis.labels;

import java.util.List;

public class Style {
private String color;
private List<String> colors;
private String fontSize;
private String fontFamily;
private String cssClass;
Expand All @@ -10,8 +12,8 @@ public class Style {
public Style() {
}

public String getColor() {
return color;
public List<String> getColors() {
return colors;
}

public String getFontSize() {
Expand All @@ -26,8 +28,8 @@ public String getCssClass() {
return cssClass;
}

public void setColor(String color) {
this.color = color;
public void setColors(List<String> colors) {
this.colors = colors;
}

public void setFontSize(String fontSize) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import com.github.appreciated.apexcharts.config.yaxis.labels.Style;

import java.util.List;

public class StyleBuilder {
private String color;
private List<String> colors;
private String fontSize;
private String fontFamily;
private String cssClass;
Expand All @@ -15,8 +17,8 @@ public static StyleBuilder get() {
return new StyleBuilder();
}

public StyleBuilder withColor(String color) {
this.color = color;
public StyleBuilder withColors(List<String> colors) {
this.colors = colors;
return this;
}

Expand All @@ -37,7 +39,7 @@ public StyleBuilder withCssClass(String cssClass) {

public Style build() {
Style style = new Style();
style.setColor(color);
style.setColors(colors);
style.setFontSize(fontSize);
style.setFontFamily(fontFamily);
style.setCssClass(cssClass);
Expand Down