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

Update to latest JFreeChart 1.5.3 and update code? Missing BarRenderer3d #3

Open
tmulle opened this issue Nov 4, 2022 · 3 comments
Assignees

Comments

@tmulle
Copy link

tmulle commented Nov 4, 2022

Hi,

Thanks for this code, we would like to use this in our project but can't because of the use of a very old JFreeChart version as the dependency in this project.

We use the latest 1.5.3 version and after trying to exclude the 1.0 version in this project things compile but the code fails with a ClassNotFound on BarRenderer3D.

After searching the JFree.org javadocs looks like this class is no longer supported.

Would you be able to update the project?

I found this link on the 1.5 version and the changes to the 3D libraries:

https://www.jfree.org/forum/viewtopic.php?f=3&t=119664

@hbarsnes hbarsnes self-assigned this Nov 4, 2022
@hbarsnes
Copy link
Member

hbarsnes commented Nov 4, 2022

I just deployed a new version of JSparklines (v1.1.0) which updates jfreechart to version 1.5.3. Note that Java 11 or newer is now required.

Hopefully this will enable you to use JSparklines in your project?

@tmulle
Copy link
Author

tmulle commented Nov 7, 2022 via email

@hbarsnes
Copy link
Member

hbarsnes commented Nov 7, 2022

Question, do you have any renderers that provide something like MIN/MID/MAX range?

I think the closest you get is the gradient color coding (no.uib.jsparklines.renderers.util.GradientColorCoding).

Example:
((JSparklinesBarChartTableCellRenderer) singleValuesJTable.getColumn("Peptides").getCellRenderer()).setGradientColoring(ColorGradient.BlueWhiteGreen, false);

The input here is only min and max for the given column though, and the colors are graded from, in the case of the above example, blue to green with white in the middle.

But it should perhaps be possible to extend this class to also support your simpler three-color scheme?

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

No branches or pull requests

2 participants