-
Notifications
You must be signed in to change notification settings - Fork 199
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
Making or is it possible to change "Name" Color in ChartData for RadarChart #56
Comments
Would be more helpful with a little bit of test code that reproduces your problem... |
Here, as an example, I changed the colors whereever possible (it's offered). private void radarColorTest() {
ChartData a = new ChartData("one", 1);
ChartData b = new ChartData("two", 2);
ChartData c = new ChartData("three", 3);
ChartData d = new ChartData("four", 4, Color.RED, Color.RED, Color.RED, Instant.MAX, true, 0);
Tile radarChartTile = TileBuilder.create().skinType(Tile.SkinType.RADAR_CHART)
.prefSize(500, 500)
.minValue(0)
.maxValue(5)
.title("RadarChart Polygon")
.unit("Radar")
.radarChartMode(RadarChart.Mode.POLYGON)
.text("Test")
.chartData(a, b, c, d)
.tooltipText("")
.animated(true)
.backgroundColor(Color.rgb(255, 255, 255))
.gradientStops(
new Stop(0.00000, Color.TRANSPARENT),
new Stop(0.00001, Color.rgb(0, 160, 215)),
new Stop(0.25, Color.rgb(0, 120, 155)),
new Stop(0.5, Color.rgb(0, 110, 110)),
new Stop(0.75, Color.rgb(85, 140, 90)),
new Stop(1.0, Color.rgb(175, 190, 50)))
.chartGridColor(Color.rgb(0, 60, 90))
.textColor(Color.rgb(0, 60, 90))
.titleColor(Color.rgb(0, 60, 90))
.activeColor(Color.CORAL)
.alarmColor(Color.CORAL)
.backgroundColor(Color.CORAL)
.barBackgroundColor(Color.CORAL)
.barBorderColor(Color.CORAL)
.barColor(Color.CORAL)
.borderColor(Color.CORAL)
.chartGridColor(Color.CORAL)
.dateColor(Color.CORAL)
.descriptionColor(Color.CORAL)
.foregroundBaseColor(Color.CORAL)
.foregroundColor(Color.CORAL)
.hourColor(Color.CORAL)
.knobColor(Color.CORAL)
.minuteColor(Color.CORAL)
.minuteTickMarkColor(Color.CORAL)
.needleBorderColor(Color.CORAL)
.needleColor(Color.CORAL)
.notificationBackgroundColor(Color.CORAL)
.notificationForegroundColor(Color.CORAL)
.secondColor(Color.CORAL)
.sunburstAutoTextColor(true)
.sunburstBackgroundColor(Color.CORAL)
.sunburstTextColor(Color.CORAL)
.sunburstUseChartDataTextColor(true)
.textColor(Color.CORAL)
.thresholdColor(Color.CORAL)
.titleColor(Color.CORAL)
.trackColor(Tile.TileColor.BLUE)
.unitColor(Color.CORAL)
.valueColor(Color.CORAL)
.build();
ap.getChildren().add(radarChartTile);
} |
Ok got it, so with the next release the text color will be taken from the ChartData textColor. |
Fixed with commit 5dcf409 |
Thank you Is it considered as spam to write "thank you" after an issue is closed on github? |
my pleasure...and no it’s no spam 😊 |
I tried changing ChartData("one", 1) by way of text color for a RadarChart and by the tilebuilder.
But nothing I tried seems to take effekt. It stays grey.
Is the color maybe hard coded?
The text was updated successfully, but these errors were encountered: