public static Pareto instantiate() { return new Pareto("new anychart.charts.pareto()"); }
/** * */ public com.anychart.data.View data(List<DataEntry> data, String fillMethod) { return new com.anychart.data.View(String.format(Locale.US, jsBase + ".data(%s, %s)", arrayToString(data), wrapQuotes(fillMethod))); } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Pareto selectMarqueeFill(String[] keys, Number angle, String mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, wrapQuotes(mode), opacity)); return this; } /**
/** * Setter for the select marquee stroke. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs} */ public com.anychart.charts.Pareto selectMarqueeStroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeStroke(%s, %s, %s, %s, %s);", wrapQuotes(color), thickness, wrapQuotes(dashpattern), wrapQuotes(lineJoin), wrapQuotes(lineCap))); return this; } /**
data.add(new ValueDataEntry("Food is to salty", 35)); pareto.data(data); pareto.title("Pareto Chart of Restaurant Complaints"); pareto.yAxis(0d).title("Defect frequency"); pareto.yAxis(1d).title("Cumulative Percentage"); pareto.animation(true); pareto.lineMarker(0) .value(80d) .axis(pareto.yAxis(1d)) .stroke("#A5B3B3", 1d, "5 2", StrokeLineJoin.ROUND, StrokeLineCap.ROUND); pareto.getSeries(0d).tooltip().format("Value: {%Value}"); Base line = pareto.getSeries(1d); line.seriesType("spline") .markers(true); line.tooltip().format("Cumulative Frequency: {%CF}% \\n Relative Frequency: {%RF}%"); pareto.crosshair().enabled(true); pareto.crosshair().xLabel(true);
/** * Adds series to the chart. */ public void addSeries(String[] var_args) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".addSeries(%s);", arrayToStringWrapQuotes(var_args))); } /**
/** * */ public com.anychart.data.View data(List<DataEntry> data) { return new com.anychart.data.View(String.format(Locale.US, jsBase + ".data(%s)", arrayToString(data))); } /**
/** * Setter for the chart margin in pixels using several simple values. */ public com.anychart.charts.Pareto margin(String value1, String value2, String value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s, %s, %s, %s);", wrapQuotes(value1), wrapQuotes(value2), wrapQuotes(value3), wrapQuotes(value4))); return this; } /**
/** * Setter for the chart colors palette. */ public com.anychart.charts.Pareto palette(String[] settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".palette(%s);", arrayToStringWrapQuotes(settings))); return this; } /**
/** * */ public com.anychart.data.View data(List<DataEntry> data, com.anychart.enums.TreeFillingMethod fillMethod) { return new com.anychart.data.View(String.format(Locale.US, jsBase + ".data(%s, %s)", arrayToString(data), (fillMethod != null) ? fillMethod.getJsBase() : null)); } /**
/** * Setter for element bounds settings. */ public com.anychart.charts.Pareto bounds(String x, Number y, String width, String height) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".bounds(%s, %s, %s, %s);", wrapQuotes(x), y, wrapQuotes(width), wrapQuotes(height))); return this; } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.Pareto selectMarqueeFill(String[] keys, Number angle, Boolean mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, mode, opacity)); return this; } /**
/** * Setter for hatch fill palette settings. */ public com.anychart.charts.Pareto hatchFillPalette(com.anychart.graphics.vector.hatchfill.HatchFillType[] settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".hatchFillPalette(%s);", arrayToString(settings))); return this; } /**
public static com.anychart.charts.Pareto pareto() { return new com.anychart.charts.Pareto("anychart.pareto()"); }
/** * Setter for element bounds settings. */ public com.anychart.charts.Pareto bounds(String x, String y, Number width, String height) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".bounds(%s, %s, %s, %s);", wrapQuotes(x), wrapQuotes(y), width, wrapQuotes(height))); return this; } /**
/** * Setter for the chart margin in pixels using a single complex object. */ public com.anychart.charts.Pareto margin(String[] margin) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s);", arrayToStringWrapQuotes(margin))); return this; } /**
/** * Setter for the chart paddings in pixels using several numbers. */ public com.anychart.charts.Pareto padding(String value1, String value2, Number value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s, %s, %s, %s);", wrapQuotes(value1), wrapQuotes(value2), value3, wrapQuotes(value4))); return this; } /**
/** * Setter for chart markers palette settings. */ public com.anychart.charts.Pareto markerPalette(String[] settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".markerPalette(%s);", arrayToStringWrapQuotes(settings))); return this; } /**
/** * Setter for the chart margin in pixels using several simple values. */ public com.anychart.charts.Pareto margin(String value1, String value2, String value3, Number value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s, %s, %s, %s);", wrapQuotes(value1), wrapQuotes(value2), wrapQuotes(value3), value4)); return this; } /**
/** * Setter for annotations. */ public com.anychart.charts.Pareto annotations(String[] annotationsList) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".annotations(%s);", arrayToStringWrapQuotes(annotationsList))); return this; } /**