Package io.jmix.charts.model
Interface HasColors<T>
- All Known Subinterfaces:
CoordinateChart<T>
,CoordinateChartModel<T>
,FunnelChart
,FunnelChartModel<T>
,GanttChart
,GanttChartModel<T>
,PieChart
,PieChartModel<T>
,RadarChart
,RadarChartModel<T>
,RectangularChart<T>
,RectangularChartModel<T>
,SerialChart
,SeriesBasedChart<T>
,SeriesBasedChartModel<T>
,SlicedChart<T>
,SlicedChartModel<T>
,StockChart
,StockChartModel<T>
,XYChart
,XYChartModel<T>
- All Known Implementing Classes:
AbstractSerialChart
,CoordinateChartImpl
,CoordinateChartModelImpl
,FunnelChartImpl
,FunnelChartModelImpl
,GanttChartImpl
,GanttChartModelImpl
,PieChartImpl
,PieChartModelImpl
,RadarChartImpl
,RadarChartModelImpl
,RectangularChartImpl
,RectangularChartModelImpl
,SerialChartImpl
,SerialChartModelImpl
,SeriesBasedChartImpl
,SlicedChartImpl
,SlicedChartModelImpl
,StockChartGroup
,StockChartImpl
,StockPanel
,XYChartImpl
,XYChartModelImpl
public interface HasColors<T>
-
Method Summary
-
Method Details
-
getColors
- Returns:
- List of colors
-
setColors
Sets the list of colors.If you use charts based on
SlicedChartModelImpl
it specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color.If you use charts based on
CoordinateChartModelImpl
orStockChartModel
it specifies the colors of the graphs if the lineColor of a graph is not set. If there are more graphs then colors in this array, the chart picks a random color. If not set the default value is["#FF6600", "#FCD202", "#B0DE09", "#0D8ECF", "#2A0CD0", "#CD0D74", "#CC0000", "#00CC00", "#0000CC", "#DDDDDD", "#999999", "#333333", "#990000"]
If you use chart based on
SlicedChartModelImpl
(PieChart, FunnelChart). Specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color. If not set default value is["#FF0F00", "#FF6600", "#FF9E01", "#FCD202", "#F8FF01", "#B0DE09", "#04D215", "#0D8ECF", "#0D52D1", "#2A0CD0", "#8A0CCF", "#CD0D74", "#754DEB", "#DDDDDD", "#999999", "#333333", "#000000", "#57032A", "#CA9726", "#990000", "#4B0C25"]
- Parameters:
colors
- list of colors- Returns:
- chart
-
addColors
Adds colors.- Parameters:
colors
- list of colors- Returns:
- chart
-