Ba Ma Posted March 7, 2016 Share Posted March 7, 2016 Hi everyone,I created a Line chart which displays 3 diffrent series. But there is a problem: The line stops when there is no x axis value for a specific date, but if in a futher date there is a x axis value, the dot will be displayed, but the line doesn't connect the dots.I wonder if it is possible to edit the chart the line goes through the whole graph, without stopping when there is no x axis value for a specific date.Anyone knows how to solve this?Would appreciate any help.Cheers Marco Link to comment Share on other sites More sharing options...
javier.ggi90 Posted March 7, 2016 Share Posted March 7, 2016 As you probably found out already, if the value is null there will be no dot so you can solve this in several ways, I can think of these:Create a new dataset for the chart and EXCLUDE data for the registers that have no value.Put the values into a variable and create the chart using this variable. In the expression create a condition so that if the value is null, it should take a value of zero.Regards,Javier Link to comment Share on other sites More sharing options...
Ba Ma Posted March 7, 2016 Author Share Posted March 7, 2016 Hi Javier,thank you for your answer, i really appreciate the help.Could you explan to me how it's working? I never did something like that before. --- EDIT: I tried to change the condition in the series Expression editor with : ($F{PRIORITY} == null ? "0" : $F{PRIORITY})This condition should achieve, that every null value will be a "0" and the line will go down to the x axis.But it isn't working. Link to comment Share on other sites More sharing options...
Solution javier.ggi90 Posted March 7, 2016 Solution Share Posted March 7, 2016 Is PRIORITY a numerical value? If so try it like this: ($F{PRIORITY} == null ? 0 : $F{PRIORITY}) and make sure the variable is of a number type (BigDecimal, Integer, Double, etc) Link to comment Share on other sites More sharing options...
Ba Ma Posted March 7, 2016 Author Share Posted March 7, 2016 hi and thanks again. yes PRIORITY is a numerical type. I followed your instructions but it still doesn't work. NAME: VARIABLE_1VALUE CLASS NAME: java.lang.IntegerCCalculation: No calc functionExpression :($F{PRIORITY} == null ? 0 : $F{PRIORITY})and so on.... I then picked the variable as the series Experssion editor in the Line chart, but it is still displaying the same result?Did i make an mistake? Cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now