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.

Vertical and horizontal grid lines are not visible inside the area chart

See original GitHub issue

Awesome library, love it especially due to real-time features like .repaintChart().

Is there a way to make the gridlines visible within the area chart? For now, grid lines are visible but they are in the background. Is it possible to achive something like this?

image

At present, it appears like this image

I want my chart to show the gridlines in the background.

I set the following properties to true but had no luck. Am I missing something? Thanks again!

xyChart.getStyler().setPlotGridVerticalLinesVisible(true);
xyChart.getStyler().setPlotGridHorizontalLinesVisible(true);

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Mr14huashaocommented, Jan 21, 2020

Add series, put Ser1_UsedHeap behind

totHeapSeries = xyChart.addSeries(Ser2_TotHeap, nodeRunTime, totHeapMemData);
usedHeapSeries = xyChart.addSeries(Ser1_UsedHeap, nodeRunTime, usedHeapMemData);

The result is this: 011

1reaction
Mr14huashaocommented, Jan 19, 2020

@pwankhed addSeries, big data comes first

XYSeries usedHeapSeries, totHeapSeries;

totHeapSeries = xyChart.addSeries(Ser2_TotHeap, nodeRunTime, totHeapMemData);
		
usedHeapSeries = xyChart.addSeries(Ser1_UsedHeap, nodeRunTime, usedHeapMemData);

The effect is as follows: 008

xyChart.getStyler().setDefaultSeriesRenderStyle(XYSeriesRenderStyle.Area), this style draw the area, drawing the series behind will cover the previous series.

Can it be changed to draw lines,set style xyChart.getStyler().setDefaultSeriesRenderStyle(XYSeriesRenderStyle.Line), like this: 009

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display or hide chart gridlines - Microsoft Support
Select the horizontal or vertical chart gridlines that you want to remove, and then press DELETE.
Read more >
Google AreaChart not displaying Vertical Gridlines.
As I understand it vAxis is for vertical axis and vAxis.gridlines is for horizontal lines. It seems that you have problem with hAxis.gridlines....
Read more >
How to show & hide Gridlines in Line Graphs in Excel 2013
Want to show and hide Gridlines in Line Graphs in Microsoft® Excel 2013? Follow the easy steps shown in this video. Content in...
Read more >
Formatting Gridlines
Horizontal gridlines in a vertical chart run on the Y axis. Horizontal major gridlines enhance the display of values, compared to the Y-axis...
Read more >
Line Chart not displaying X-Axis gridlines
Wondering how to show vertical x-axis gridlines on a line chart? I've turned on the 'X axis' setting for 'Gridlines', but lines are...
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