We have come into an issue with jChartFX in displaying multi-series legend labels in a chart. In this case we are using a line chart. The problem is when the last series has null data (i.e. no data points), but there is a series label, that series label does not show on the legend.
If there null series in the middle (like series 3 of 5) that label IS shown in the legend.
The only workaround is to create a datapoint for the last series, then the legend label shows.
Example attached.
In the example attached there are 5 series. Series #3 and series #5 are null. You will see that series' 3 label (i.e. "Category3") is shown in the legend, but series' 5 label is not shown in the legend (i.e. "Category5").
Even though the data has no values, it is important to know that the series was included in the chart; it's just that there was no data.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
ChrisS
Hi,
We have come into an issue with jChartFX in displaying multi-series legend labels in a chart. In this case we are using a line chart. The problem is when the last series has null data (i.e. no data points), but there is a series label, that series label does not show on the legend.
If there null series in the middle (like series 3 of 5) that label IS shown in the legend.
The only workaround is to create a datapoint for the last series, then the legend label shows.
Example attached.
In the example attached there are 5 series. Series #3 and series #5 are null. You will see that series' 3 label (i.e. "Category3") is shown in the legend, but series' 5 label is not shown in the legend (i.e. "Category5").
Even though the data has no values, it is important to know that the series was included in the chart; it's just that there was no data.
Chris
jChartFX - Issue with null last series.html
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.