AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
if i give static value from demo app, it's work fine. if i add multiple data using real time values, circle gauge graph can draw graph using values, but cannot create background transparent circle.
String[] str = new String[sample.size()];
for (int k = 0; k < sample.size(); k++) {
if (!sample.get(k).getValue().isEmpty())
str[k] = sample.get(k).getValue();
}
SingleValueDataSet dataSet = new SingleValueDataSet(str);
circularGauge.data(dataSet);
if i give static value from demo app, it's work fine. if i add multiple data using real time values, circle gauge graph can draw graph using values, but cannot create background transparent circle.
String[] str = new String[sample.size()]; for (int k = 0; k < sample.size(); k++) { if (!sample.get(k).getValue().isEmpty()) str[k] = sample.get(k).getValue(); }
SingleValueDataSet dataSet = new SingleValueDataSet(str); circularGauge.data(dataSet);
and then
circularGauge.label(0d) .text("Temazepam, <span style=\"\">32%") .useHtml(true) .hAlign(HAlign.CENTER) .vAlign(VAlign.MIDDLE); circularGauge.label(0d) .anchor(Anchor.RIGHT_CENTER) .padding(0d, 10d, 0d, 0d) .height(17d / 2d + "%") .offsetY(100d + "%") .offsetX(0d); Bar bar0 = circularGauge.bar(0d); bar0.dataIndex(0d); bar0.radius(100d); bar0.width(17d); bar0.fill(new SolidFill("#64b5f6", 1d)); bar0.stroke(null); bar0.zIndex(5d);
that bar100 value is not created.
anyone help me how to add background transparent layer circle dynamically.