question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CategorySeriesRenderStyle.Line bug

See original GitHub issue

Hey!

I got CategoryChart with years in x-axis and some data in y-axis. Y-axis data can be negative or null. When I draw this as CategorySeriesRenderStyle.Bar which is default it draws nicely showing negative values and leaving empty spaces whenever there is null. However when I change charts default render style with .getStyler().setDefaultSeriesRenderStyle(CategorySeriesRenderStyle.Line); it doesn’t leave empty spaces when there is null value in y-axis data, but draws everything at the start of the chart leaving empty space to the wrong years at the end.

I also tried setting each series render style individually with .setChartCategorySeriesRenderStyle(CategorySeriesRenderStyle.Line and then null values draw just fine. But now all negative values are drawn as zeroes. It scales chart fine but all the lines just go to zero when they should go to negative value.

I’ve checked imported data with .getSeriesMap() and it is correct showing negative values and nulls in correct places. Overlapping is set true. Also I’m using GGPlot2 -theme but this happens with default one too.

This seems to be a bug when setting render style to CategorySeriesRenderStyle.Line.

Any workaround ideas also appreciated, since I am on a tight schedule.

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
timmoltercommented, Nov 24, 2016

Thanks, I see two bugs. I’m working on it now.

0reactions
odporkkacommented, Nov 24, 2016

Wow that was fast! Thank you very much 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

CategoryStyler.setDefaultSeriesRenderStyle - Java - Tabnine
Sets the default series render style for the chart (bar, stick, line, scatter, area, etc.) You can override the series render style individually...
Read more >
v4.0.0 Bug report: Glitch with slide control lines - WordPress.org
With v4.0.0 the line to the top is missing, but there is a vertical line in the circle itself. We proved this in...
Read more >
TestForIssue167.java example - Javatips.net
setDefaultSeriesRenderStyle(CategorySeriesRenderStyle.Line); // Series String[] years = new String[]{"2000", "2001", "2002", "2003", "2004"}; chart.
Read more >
XChart - Bountysource
it would be great to have the line annotations just inside the chart area, ... But I am now trying to move to...
Read more >
Bug on Line Renderer - Unity Forum
Hello, I need to implement a scrollable map area where to draw connected points and I'm using the Line Renderer in order to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found