Raf
Raf

Reputation: 1757

Combine Line and Scatter charts in JavaFX for multiple number of series

I have an app where the user is given plenty of options, and depending on user selection anything from 1 up to 20 scatter plots will be displayed dynamically in the same scatter chart.

I want to add a checkbox to show best fits for each of these samples, same color as the original scatter points, but then using lines.

Even though I like the answer provided here, it solves the problem "statically", i.e. for small and fix number of series.

Is there a way to automate this solution for a large and dynamically changing number of series?

I'd rather not use superimposed charts and setting transparency, unless I really have to.

Upvotes: 0

Views: 948

Answers (1)

JKostikiadis
JKostikiadis

Reputation: 2917

As you pointed out about this here , if you want to create a Scatter chart with line regression ( linear or polynomial ) have a look to my own implementation of a Multi-Axis-Scatter-Chart maybe you will take some ideas about your problem. I am not sure about what you need cause do be honest I didn't understand your question at 100%. I hope my own implementation might help you somehow.

Upvotes: 1

Related Questions