/** * Setter for the chart margin in pixels using several simple values. */ public com.anychart.charts.Mekko 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 paddings in pixels using several numbers. */ public com.anychart.charts.Mekko padding(String value1, Number value2, String value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s, %s, %s, %s);", wrapQuotes(value1), value2, wrapQuotes(value3), wrapQuotes(value4))); return this; } /**
/** * Setter for element bounds settings. */ public com.anychart.charts.Mekko bounds(Number x, String y, String width, Number height) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".bounds(%s, %s, %s, %s);", x, wrapQuotes(y), wrapQuotes(width), height)); return this; } /**
/** * Setter for element bounds settings. */ public com.anychart.charts.Mekko bounds(String x, Number y, String width, Number height) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".bounds(%s, %s, %s, %s);", wrapQuotes(x), y, wrapQuotes(width), height)); return this; } /**
/** * Setter for the select marquee stroke. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs} */ public com.anychart.charts.Mekko selectMarqueeStroke(String color, Number thickness, String dashpattern, String lineJoin, com.anychart.graphics.vector.StrokeLineCap lineCap) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeStroke(%s, %s, %s, %s, %s);", wrapQuotes(color), thickness, wrapQuotes(dashpattern), wrapQuotes(lineJoin), (lineCap != null) ? lineCap.getJsBase() : null)); return this; } /**
/** * Setter for the chart label. */ public com.anychart.charts.Mekko label(String index, String settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".label(%s, %s);", wrapQuotes(index), wrapQuotes(settings))); return this; } /**
/** * Setter for the chart margin in pixels using several simple values. */ public com.anychart.charts.Mekko margin(Number value1, Number value2, String value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s, %s, %s, %s);", value1, value2, wrapQuotes(value3), wrapQuotes(value4))); return this; } /**
/** * Removes one of series from chart by its id. */ public com.anychart.charts.Mekko removeSeries(String id) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".removeSeries(%s);", wrapQuotes(id))); return this; } /**
/** * Setter for the context menu. */ public com.anychart.charts.Mekko contextMenu(String settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".contextMenu(%s);", wrapQuotes(settings))); return this; } /**
/** * Setter for the chart margin in pixels using several simple values. */ public com.anychart.charts.Mekko margin(Number value1, Number value2, Number value3, String value4) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s, %s, %s, %s);", value1, value2, value3, wrapQuotes(value4))); return this; } /**
/** * Setter for the maximum width. */ public com.anychart.charts.Mekko maxWidth(String width) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".maxWidth(%s);", wrapQuotes(width))); return this; } /**
/** * Removes all listeners from an object. You can also optionally remove listeners of some particular type. */ public void removeAllListeners(String type) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".removeAllListeners(%s);", wrapQuotes(type))); } /**
/** * Saves chart config as JSON document. */ public void saveAsJson(String filename) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".saveAsJson(%s);", wrapQuotes(filename))); } /**
/** * Setter for the parent bounds using single value.<br> Bounds that would be used in case of percent size calculations. Expects pixel values only. */ public com.anychart.charts.Mekko parentBounds(String bounds) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".parentBounds(%s);", wrapQuotes(bounds))); return this; } /**
/** * Setter for the export charts. */ public com.anychart.charts.Mekko exports(String settings) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".exports(%s);", wrapQuotes(settings))); return this; } /**
/** * Setter for element bounds settings. */ public com.anychart.charts.Mekko bounds(Number x, Number y, Number width, String height) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".bounds(%s, %s, %s, %s);", x, y, width, wrapQuotes(height))); return this; } /**
/** * Setter for the element's container. */ public com.anychart.charts.Mekko container(String element) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".container(%s);", wrapQuotes(element))); return this; } /**
/** * Setter for element left bound settings. */ public com.anychart.charts.Mekko left(String left) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".left(%s);", wrapQuotes(left))); return this; } /**
/** * Setter for the select marquee stroke. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs} */ public com.anychart.charts.Mekko selectMarqueeStroke(com.anychart.graphics.vector.Stroke color, Number thickness, String dashpattern, String lineJoin, com.anychart.graphics.vector.StrokeLineCap lineCap) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeStroke(%s, %s, %s, %s, %s);", (color != null) ? color.getJsBase() : null, thickness, wrapQuotes(dashpattern), wrapQuotes(lineJoin), (lineCap != null) ? lineCap.getJsBase() : null)); return this; } /**
/** * Setter for the select marquee stroke. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs} */ public com.anychart.charts.Mekko selectMarqueeStroke(com.anychart.graphics.vector.Stroke color, Number thickness, String dashpattern, com.anychart.graphics.vector.StrokeLineJoin lineJoin, String lineCap) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeStroke(%s, %s, %s, %s, %s);", (color != null) ? color.getJsBase() : null, thickness, wrapQuotes(dashpattern), (lineJoin != null) ? lineJoin.getJsBase() : null, wrapQuotes(lineCap))); return this; } /**