You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line is broken and becomes a scatter line if items have name set AND there is a null value in data series.
#!java
Date date = new Date();
date.setDate(1);
Series series = new DataSeries();
series.setName("testseries");
List<DataSeriesItem> items = new ArrayList<DataSeriesItem>();
DataSeriesItem item = new DataSeriesItem(date, rand.nextInt());
item.setName("buu1");
items.add(item);
item = new DataSeriesItem();
date = new Date();
date.setDate(2);
item.setX(date);
item.setY(rand.nextInt());
item.setName("buu2");
item.setY((Double)null);
items.add(item);
date = new Date();
date.setDate(3);
item = new DataSeriesItem(date, rand.nextInt());
item.setName("buu3");
items.add(item);
date = new Date();
date.setDate(4);
item = new DataSeriesItem(date, rand.nextInt());
item.setName("buu4");
items.add(item);
((DataSeries) series).setData(items);
conf.addSeries(series);
The following JSON is produced which shows that the y-value is totally missing (not null) in series
Fixing this requires a bit ugly hack to code until #12038. The project that found the issue, found out that names where irrelevant for them so lowering priority. We'll re-consider quick ugly fix in maintenance release if somebody else finds this important (e.g. via pro bug fix priority).
Originally by Jonas Granvik
Line is broken and becomes a scatter line if items have name set AND there is a null value in data series.
The following JSON is produced which shows that the y-value is totally missing (not null) in series
Imported from https://dev.vaadin.com/ issue #11941
The text was updated successfully, but these errors were encountered: