Help plz with chart error!

UI Components for JSF
Post Reply
phidippus
Posts: 4
Joined: 07 Apr 2017, 14:37

12 Apr 2017, 15:10

Hi fellows!

I need some help please!
I have 2 stacked column, with positive and negative values. However, column for positive values doesnt display starting from yAxis = 0, instead, start from bottom of chart, including for null values.
Negatives values (red column) is ok.
Any idea of what I am missing?..

-------------------------
grafico.setAnimate(true);
grafico.setStacked(true);
grafico.setMouseoverHighlight(false);
grafico.setBreakOnNull(true);

grafico.getAxes().put(AxisType.X, new CategoryAxis("Dates"));
Axis xAxis = grafico.getAxis(AxisType.X);
xAxis.setTickAngle(-50);

Axis yAxis = grafico.getAxis(AxisType.Y);
yAxis.setLabel("% field A");
yAxis.setTickFormat("%.1f%");

Axis y2Axis = new LinearAxis("Registros");
y2Axis.setMin(0);

grafico.getAxes().put(AxisType.Y2, y2Axis);
-------------------------

Image

I appreciate any help! Thanks!

phidippus
Posts: 4
Joined: 07 Apr 2017, 14:37

24 Apr 2017, 16:11

Any idea?..

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

24 Apr 2017, 21:02

I would put a test case together using the test project.

Clone this repository https://github.com/primefaces/primefaces-test.git in order to reproduce your problem, you'll have better chance to receive an answer and a solution.

if you still have the issue after creating this Test Project attach it and report a GitHub Issue.
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