All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.jwic.controls.chart.impl.CircleChartConfiguration Maven / Gradle / Ivy

There is a newer version: 5.3.43
Show newest version
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