android - Achartengine does not display the last value on the line -


Hello friends I am trying to write a simple line graph but it does not present the last value on lines. I want to show all the values ​​on the line graph.

The code is tried

  XYSeriesRenderer rendererLijn0 = New XYSeriesRenderer (); RendererLijn0.setColor (Color.RED); RendererLijn0.setChartValuesTextSize (rendererLijn0.getChartValuesTextSize () + 20); RendererLijn0.setDisplayChartValues ​​(true); RendererLijn0.setPointStyle (PointStyle.CIRCLE); RendererLijn0.setFillPoints (true); RendererLijn0.setDisplayBoundingPoints (true); XYSeriesRenderer rendererLijn1 = New XYSeriesRenderer (); RendererLijn1.setDisplayChartValues ​​(true); RendererLijn1.setPointStyle (PointStyle.CIRCLE); RendererLijn1.setFillPoints (true); RendererLijn1.setDisplayBoundingPoints (true); AlleSeries.addSeries (GrafiekDataLijn0); AlleSeries.addSeries (GrafiekDataLijn1); AlleRenderers.addSeriesRenderer (rendererLijn0); AlleRenderers.addSeriesRenderer (rendererLijn1); AlleRenderers.setXTitle ("Tijden"); AllRenderers.Setitleal ("Warde LeZan"); AlleRenderers.setYAxisMin (0); Alenderers Set waxis max (hogst + 20)); AlleRenderers.setZoomEnabled (true); AlleRenderers.setZoomButtonsVisible (true); AlleRenderers.setXLabelsAlign (Align.CENTER); AlleRenderers.setXAxisMin (0-0.2); AlleRenderers.setXAxisMax (GrafiekDataLijn1.getItemCount ()); Graphicalview Graphic = charfainector.getBaseContext (), Al-Seriouss, AlertRenderers); LnGrafiek.addView (Grafiek);  

Try out some padding in your view:

  Graphic .Setpadding (0,020,0); // (left, top, right, bottom);  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -