Specify LinePattern for each LineChartSeries

UI Components for JSF
Post Reply
stavrosmachinima
Posts: 11
Joined: 27 Oct 2021, 09:49

27 Oct 2021, 10:31

Hello Guys,

This is my first post here btw.
I have two LineChartSeries like this

Code: Select all

LineChartSeries series1 = new LineChartSeries();
        LineChartSeries series2 = new LineChartSeries();
Is it possible to make one dashed line and the other solid line?

I don't think i can specify that in JSF. I also tried to read to the jqplot according to this viewtopic.php?t=44549 answer
but it got me nowhere

Thanks in advance.
JSF 2.0
Primefaces 11.0
Tomcat 8.5.57.0
Servlet 3.1
JSP 2.3
Java 1.8.0

Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

30 Oct 2021, 13:37

The old jqPlot charts are deprecated in PrimeFaces. Please use the new ChartsJS based charts and you can use the borderDash property to make a dotted line. See: https://stackoverflow.com/a/44813801/502366
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests