You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
com.github.appreciated.apexcharts.config.plotoptions.bar.Colors.setRanges(Ranges) is not consistent with JavaScript API. It should accept a var array (or collection of colors).
Describe the solution you'd like
Change the API to accept an array of colors.
Additional context
I am happy to contribute a solution if you will accept a Pull Request. See excerpt below.
package com.github.appreciated.apexcharts.config.plotoptions.bar;
import java.util.List;
public class Colors {
private Ranges[] ranges;
private List<String> backgroundBarColors;
private Double backgroundBarOpacity;
public Colors() {
}
public Ranges[] getRanges() {
return ranges;
}
public List<String> getBackgroundBarColors() {
return backgroundBarColors;
}
public Double getBackgroundBarOpacity() {
return backgroundBarOpacity;
}
public void setRanges(Ranges ...ranges) {
this.ranges = ranges;
}
public void setBackgroundBarColors(List<String> backgroundBarColors) {
this.backgroundBarColors = backgroundBarColors;
}
public void setBackgroundBarOpacity(Double backgroundBarOpacity) {
this.backgroundBarOpacity = backgroundBarOpacity;
}
}
The text was updated successfully, but these errors were encountered:
Obi-TP
changed the title
Bar chart plot options should allow for range of colors like javascript API
Bar chart plot options should allow for range of colors like JavaScript API
Dec 31, 2020
Is your feature request related to a problem? Please describe.
com.github.appreciated.apexcharts.config.plotoptions.bar.Colors.setRanges(Ranges) is not consistent with JavaScript API. It should accept a var array (or collection of colors).
Describe the solution you'd like
Change the API to accept an array of colors.
Additional context
I am happy to contribute a solution if you will accept a Pull Request. See excerpt below.
The text was updated successfully, but these errors were encountered: