primefaces / primefaces

Ultimate Component Suite for JavaServer Faces
http://www.primefaces.org
MIT License
1.81k stars 763 forks source link

primefaces 14.0.2 ScatterDataPoint class is missing #12861

Closed iGuv11 closed 1 hour ago

iGuv11 commented 2 days ago

Describe the bug

Hello i am using primefaces 14.0.2 and primefaces extensions 14.0.2 with classifer as jakarta (4.1.0) in my jsf project. I want to draw linechart with data as ScatterDataPoint class but the is no import for this. After i searched it in internet i found that folder which has ScatterDataPoint.class is missing in my jar how do i fix it? Thanks for the answers image

Reproducer

No response

Expected behavior

Add linechart data as a ScatterDataPoint .

PrimeFaces edition

None

PrimeFaces version

14.0.2

Theme

No response

JSF implementation

All

JSF version

4.1

Java version

21.0.3

Browser(s)

No response

tandraschko commented 2 days ago

did you include the xdev dependency like stated in the docs?

@melloware AFAIR we added the includes the in the showcase; just not deployed yet, right?

melloware commented 2 days ago

Yes @iGuv11 go here to see the Scatter properly: https://quarkus-faces-melloware-8a6a34c1.koyeb.app/ui/chart/scatter.xhtml

Make sure you include:

<dependency>
    <groupId>software.xdev</groupId>
    <artifactId>chartjs-java-model</artifactId>
    <version>2.3.1</version>
</dependency>

@tandraschko yes the showcase is updated I believe just not deployed yet...

tandraschko commented 2 days ago

:/ we would really benefit from a auto-deployment somewhere, free and opensource

iGuv11 commented 2 days ago

First of all, thank you very much, I was able to import ScatterDataPoint after adding the dependecy. However, when I added data with this data type in the graph I drew with a deprecated linechart, I thought it would look like the 1st photo, but I cannot draw the graph. I wonder how I should follow to make the point on the cursor in the deprecated model look like the 1st photo. In addition, I draw the graph with NumericPoint, but the data; It looks like the image in the 2nd photo. Since my graphic structure is very large, it will take me a long time to switch to the new structure. image image

melloware commented 2 days ago

@iGuv11 everything in Chart.js is available in the XDEV library and it actually maps closer and better to Chart.js. So anything you did with the old PF Model can be done with XDev and more.