Skip to content
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

Closed
seriouslyEnter opened this issue Jun 15, 2018 · 6 comments
Assignees

Comments

@seriouslyEnter
Copy link

seriouslyEnter commented Jun 15, 2018

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?

@HanSolo HanSolo self-assigned this Jun 17, 2018
@HanSolo
Copy link
Owner

HanSolo commented Jun 17, 2018

Would be more helpful with a little bit of test code that reproduces your problem...

@seriouslyEnter
Copy link
Author

Here, as an example, I changed the colors whereever possible (it's offered).
The text around the Radar "one, two, three, four" is the only part that doesn't change.
It stays grey!

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);
    }

@HanSolo
Copy link
Owner

HanSolo commented Jun 17, 2018

Ok got it, so with the next release the text color will be taken from the ChartData textColor.

@HanSolo
Copy link
Owner

HanSolo commented Jun 17, 2018

Fixed with commit 5dcf409

@HanSolo HanSolo closed this as completed Jun 17, 2018
@seriouslyEnter
Copy link
Author

Thank you

Is it considered as spam to write "thank you" after an issue is closed on github?

@HanSolo
Copy link
Owner

HanSolo commented Jun 17, 2018

my pleasure...and no it’s no spam 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants