de.jwic.controls.chart.impl.CircleChartConfiguration Maven / Gradle / Ivy
package de.jwic.controls.chart.impl;
import de.jwic.controls.chart.api.ChartConfiguration;
/**
*
* @author Karolina Marek (karolina-marek.eu)
*
* @date 14.11.2015
*/
public class CircleChartConfiguration extends ChartConfiguration {
/**
*
*/
private static final long serialVersionUID = 1L;
private int percentageInnerCutout = 50;
public CircleChartConfiguration() {
super(
"-legend\"><% for (var i=0; i- \"><%if(segments[i].label){%><%=segments[i].label%><%}%>
<%}%>
");
}
/**
*
* @return Number - The percentage of the chart that we cut out of the
* middle - 0 for pie charts
*/
public int getPercentageInnerCutout() {
return percentageInnerCutout;
}
/**
*
* @param percentageInnerCutout
* Number - The percentage of the chart that we cut out of the
* middle - 0 for pie charts
*/
public void setPercentageInnerCutout(int percentageInnerCutout) {
this.percentageInnerCutout = percentageInnerCutout;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy