-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circle gauge add real time values #241
Comments
@Krishnaranji |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: