java - Android: AChartEngine vertical gradient on bars? -


I am working with AChartEngine in Android and no way to get vertical shield on bars can be found in my stacked bar Here are my codes for the chart bars.

  renderer.getSeriesRendererAt (1) .setGradientEnabled (true); Renderer.getSeriesRendererAt (1) .setGradientStart (0, Color. RGB (192, 1, 2, 1 9 2)); Renderer.getSeriesRendererAt (1) .setGradientStop (45, Color.rgb (25, 25, 112));   

Here is the view:

image Enter Details Here

I want to move the gradient from left to right, not below the top. Any help would really be appreciated!

The gradient in AChartEngine is based on the displayed data values. The values ​​in your bar chart increase from bottom to bottom, so the gradient is displayed on the same direction.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -