public static CircularGauge instantiate() { return new CircularGauge("new anychart.charts.circularGauge()"); }
/** * */ 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.CircularGauge 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; } /**
circularGauge.fill("#fff") .stroke(null) .padding(0, 0, 0, 0) .margin(30, 30, 30, 30); circularGauge.startAngle(0) .sweepAngle(360); circularGauge.data(new SingleValueDataSet(new Double[] { currentValue })); circularGauge.axis(0) .startAngle(-150) .radius(80) circularGauge.axis(0).labels().position("outside"); circularGauge.axis(0).scale() .minimum(0) .maximum(140); circularGauge.axis(0).scale() .ticks("{interval: 10}") .minorTicks("{interval: 10}"); circularGauge.needle(0) .stroke(null) .startRadius("6%") circularGauge.cap() .radius("4%")
circularGauge.data(new SingleValueDataSet(new String[] { "23", "34", "67", "93", "56", "100"})); circularGauge.fill("#fff") .stroke(null) .padding(0d, 0d, 0d, 0d) .margin(100d, 100d, 100d, 100d); circularGauge.startAngle(0d); circularGauge.sweepAngle(270d); Circular xAxis = circularGauge.axis(0) .radius(100d) .width(1d) circularGauge.label(0d) .text("Temazepam, <span style=\"\">32%</span>") .useHtml(true) .hAlign(HAlign.CENTER) .vAlign(VAlign.MIDDLE); circularGauge.label(0d) .anchor(Anchor.RIGHT_CENTER) .padding(0d, 10d, 0d, 0d) .offsetY(100d + "%") .offsetX(0d); Bar bar0 = circularGauge.bar(0d); bar0.dataIndex(0d); bar0.radius(100d); bar0.stroke(null); bar0.zIndex(5d);
circularGauge.fill("#fff") .stroke("null") .padding(0, 0, 0, 0) .margin(30, 30, 30, 30) .startAngle(0) .sweepAngle(360); circularGauge.data(new SingleValueDataSet(new Double[] { 18.1 })); circularGauge.axis(0) .startAngle(0) .radius(80) circularGauge.axis(0).labels() .position("outside") .useHtml(true); circularGauge.axis(0).labels().format( "function () {\n" + " return this.value + '°'\n" + " }"); circularGauge.axis(0).scale() .minimum(0) .maximum(360); circularGauge.axis(0).scale() .ticks("{interval: 45}") .minorTicks("{interval: 10}"); circularGauge.marker(0)
/** * Adds pointers to the gauge. */ public void addPointer(String[] var_args) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".addPointer(%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 a single complex object. */ public com.anychart.charts.CircularGauge margin(String[] margin) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".margin(%s);", arrayToStringWrapQuotes(margin))); 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)); } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.CircularGauge fill(String[] keys, Number angle, Boolean mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".fill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, mode, opacity)); return this; } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.CircularGauge fill(String[] keys, Number angle, String mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".fill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, wrapQuotes(mode), opacity)); return this; } /**
public static com.anychart.charts.CircularGauge circularGauge() { return new com.anychart.charts.CircularGauge("anychart.circularGauge()"); }
/** * Setter for the chart paddings in pixels using a single value. */ public com.anychart.charts.CircularGauge padding(String[] padding) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".padding(%s);", arrayToStringWrapQuotes(padding))); return this; } /**
public static com.anychart.charts.CircularGauge circular() { return new com.anychart.charts.CircularGauge("anychart.gauges.circular()"); }
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.CircularGauge 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 fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.CircularGauge fill(String[] color) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".fill(%s);", arrayToStringWrapQuotes(color))); return this; } /**
/** * Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.CircularGauge selectMarqueeFill(String[] color) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s);", arrayToStringWrapQuotes(color))); return this; } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.CircularGauge fill(String[] keys, Number angle, com.anychart.graphics.vector.Rect mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".fill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, (mode != null) ? mode.getJsBase() : null, opacity)); return this; } /**
/** * Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs} */ public com.anychart.charts.CircularGauge selectMarqueeFill(String[] keys, Number angle, com.anychart.graphics.vector.Rect mode, Number opacity) { APIlib.getInstance().addJSLine(String.format(Locale.US, jsBase + ".selectMarqueeFill(%s, %s, %s, %s);", arrayToStringWrapQuotes(keys), angle, (mode != null) ? mode.getJsBase() : null, opacity)); return this; } /**