Android Chart Engine Achartengine (v)-Introduction to DataSet and render parameters

Source: Internet
Author: User

Here's just a renderer and a dataset, more on official documents

Defaultrenderer:

void

Addseriesrenderer (int index, Simpleseriesrenderer renderer)
Add a renderer to multiple renderer, and index is the specified position.

void

Addseriesrenderer (Simpleseriesrenderer renderer) Add a renderer to multiple renderer

Int

Getaxescolor ()
Get the X-axis color.

Int

Getbackgroundcolor ()
Get background color

Java.lang.String

Getcharttitle ()
Get the title of the chart

Float

getcharttitletextsize ()
Get the font size of the chart title

Int

Getlabelscolor ()
Gets the color of the y-axis.

Float

getlabelstextsize ()
Gets the font size of the y-axis.

Int

Getlegendheight ()
Gets the height of the legend.

Float

getlegendtextsize ()
Gets the font size of the legend.

Int[]

Getmargins ()
Gets the size of the outer frame of the chart.

Float

Getoriginalscale ()
Returns the original value to being used for scaling the chart.

Float

Getscale ()
Returns the value to is used for scaling the chart.

Int

Getselectablebuffer ()
The value of the buffer radius of the point (at which point an attachment is clicked, the range is counted click this point) Returns the selectable radius value around clickable points.

Simpleseriesrenderer

Getseriesrendererat (int index)
Gets the renderer of the specified position in the multiple renderer.

Int

Getseriesrenderercount () Gets the number of renderer in the multiple renderer collection.

Simpleseriesrenderer[]

getseriesrenderers ()
Get the renderer array in multiple renderer.

Float

Getstartangle ()
Get the start angle of a circular chart (for example: Pie/doughnut chart, etc.).

Java.lang.String

Gettexttypefacename ()

Gets the font name.

Int

Gettexttypefacestyle ()

Gets the font type.

Float

getzoomrate ()

Get the magnification of the zoom out.

Boolean

isantialiasing ()
Returns the antialiasing flag value.

Boolean

Isapplybackgroundcolor ()

Gets the setting result (true/false) whether the background color is applied.

Boolean

isclickenabled ()

Gets whether the Click event is enabled.

Boolean

isexternalzoomenabled ()
Returns the enabled state of the external (application implemented) zoom.

Boolean

Isfitlegend ()

Gets whether the legend size is set to adaptive.

Boolean

Isinscroll ()
Returns if the chart is inside a scroll view and doesn ' t need to shrink.

Boolean

ispanenabled ()
Gets whether to allow dragging Returns the enabled state of the pan.

Boolean

isshowaxes ()

Gets whether the x-axis is displayed.

Boolean

Isshowcustomtextgrid ()

Gets whether the x-axis and y-axis grids are displayed.

Boolean

Isshowgridx ()

Gets whether the x-axis grid is displayed.

Boolean

Isshowgridy ()

Gets whether the y-axis grid is displayed.

Boolean

Isshowlabels ()

Gets whether the scale is displayed.

Boolean

Isshowlegend ()

Gets whether the legend is displayed.

Boolean

iszoombuttonsvisible ()

Gets whether the drop-down button is displayed.

Boolean

iszoomenabled ()

Whether zooming in and out is supported.

void

Removeseriesrenderer (Simpleseriesrenderer renderer)
Remove a renderer in the multiple renderer.

void

setantialiasing (Boolean antialiasing)
Sets the antialiasing value.

void

Setapplybackgroundcolor (Boolean apply)

Sets whether the background color is applied.

void

Setaxescolor (int color)

Sets the color of the x-axis.

void

SetBackgroundColor (int color)

Sets the background color.

void

Setcharttitle (java.lang.String title)

Sets the title of the chart.

void

setcharttitletextsize (Float textSize)

Sets the chart title font size.

void

setclickenabled (Boolean enabled)

Sets whether to allow Click events.

void

setexternalzoomenabled (Boolean enabled)
Sets the enabled state of the external (application implemented) zoom.

void

Setfitlegend (Boolean Fit)

Sets the legend font size adaptive.

void

Setinscroll (Boolean Inscroll)
To being set if the chart is inside a scroll view and doesn ' t need to shrink when not enough space.

void

Setlabelscolor (int color)

Sets the coordinate color.

void

setlabelstextsize (Float textSize)
Sets the coordinate font size.

void

Setlegendheight (int height)
Sets the height of the legend (units: pixels).

void

setlegendtextsize (Float textSize)

Sets the legend font size.

void

SetMargins (int[] margins)

Set the outer frame (unit: pixels) up/left/bottom/right.

void

setpanenabled (Boolean enabled)
Sets whether to allow dragging sets the enabled state of the pan.

void

Setscale (Float scale)
Sets the value to is used for scaling the chart.

void

Setselectablebuffer (int buffer)
Set the buffer radius value of the point (click on a point when the attachment is clicked) sets the selectable radius value around clickable points.

void

setshowaxes (Boolean showaxes)

Sets whether the X-axis is displayed.

void

Setshowcustomtextgrid (Boolean showgrid)
Sets whether the x-axis and y-axis grids are displayed.

void

Setshowgrid (Boolean showgrid)

Sets whether or not to display the grid.

void

Setshowgridx (Boolean showgrid)

Sets whether the X-axis grid is displayed.

void

Setshowgridy (Boolean showgrid)

Sets whether to display the y-axis grid.

void

Setshowlabels (Boolean showlabels)

Sets whether coordinates are displayed.

void

Setshowlegend (Boolean showlegend)

Sets whether the legend is displayed.

void

Setstartangle (Float startangle)
Sets the start angle of the circle chart (for example: Pie/doughnut chart, etc.).

void

Settexttypeface (java.lang.String typefacename, int style)

Sets the font name and type.

void

setzoombuttonsvisible (Boolean visible)

Sets whether the Zoom Out button is displayed.

void

setzoomenabled (Boolean enabled)

Sets whether to allow magnification and zoom out.

void

setzoomrate (float rate)
Sets the magnification to zoom out.

Xymultipleseriesdataset:

void

addseries (int index, Xyseries series)
Adds a sequence at the specified position.

void

addseries (Xyseries series)
Adds a sequence.

Xyseries[]

getseries ()
Get an array of sequences

Xyseries

Getseriesat (int index)
Gets the sequence of the specified position.

Int

Getseriescount ()
Gets the number of sequences.

void

removeseries (int index)
Removes the sequence at the specified position.

void

removeseries (Xyseries series)
Remove a sequence

Android Graphics Engine Achartengine (i)-Introduction

http://blog.csdn.net/lk_blog/article/details/7645509

Android Graphics engine Achartengine (ii)-Sample source code Overview and analysis

http://blog.csdn.net/lk_blog/article/details/7642751

Android Graphics engine Achartengine (iii)-sample source line, pie, and histogram

http://blog.csdn.net/lk_blog/article/details/7645668

Android Chart engine Achartengine (iv)-source code example embed a line chart in acitivity

http://blog.csdn.net/lk_blog/article/details/7645665

Android Chart Engine Achartengine (v)-Introduction to DataSet and render parameters

http://blog.csdn.net/lk_blog/article/details/7645661

Android Chart engine Achartengine (vi)-Framework source code structure diagram

http://blog.csdn.net/lk_blog/article/details/7645671

Android Chart Engine Achartengine (v)-Introduction to DataSet and render parameters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.