Online documentation for Rchart
There are mainly 2 class Rchart and Rdata.

Rdata class used for managing data and its structure.

Rdata.new

This function create a new Rdata object.Which helps in to manage data of chart

Instance Methods

add_point(value,serie="Serie1",description="Description")

This function add value to Given series. if series is not given by default serie is Serie1. value can be an array or single value.If You Passed serie name then if series does not exist It create new series.

add_serie(serie_name = "Serie1")

This function add new serie with serie_name as value.

set_abscise_label_serie(serie_name = "name")

This function can be used to set which serie is used (if any) as abcisse value Generate some data. It is mainly used for legend,and it is not graphable.

add_all_series

This function add all series and manipulate data for particular series.

get_data

This function is used every time you want to retrieve the Data stored in the Rdata structure

get_data_description

This function is used every time you want to retrieve the Data description stored in the Rdata structure.

Rchart class used for manipulating and drawing chart.

Rchart.new

This function create a new Rchart object.Which helps us to draw chart.

Some Of Common Instance Methods

set_font_properties(font_name, font_size)

Set font Properties :- font_name and font_size.
  • GeosansLight.ttf
  • MankSans.ttf
  • pf_arma_five.ttf
  • Silkscreen.ttf
  • tahoma.ttf

set_graph_area(x1, y1, x2, y2)

A call to this function is mandatory when creating a graph. The upper left and bottom right border positions are used as arguments. This area will be used to draw graphs, grid, axis & more. Calling this function will not draw anything this will only set the graph area boundaries.

draw_filled_rectangle(x1, y1, x2, y2, r, g, b, draw_border = true, alpha = 100, no_fall_back = false)

This function draw an aliased filled rectangle The upper left and bottom right border positions are used as first 4 arguments. The last R,G,B parameters are used to set the border color. You can specify if the aliased border will be drawn and the transparency.

draw_graph_area(r, g, b, stripe = false)

Prepare the graph area.

render_png(file_name)

Render Graph as png format

render_jpeg(file_name, quality = 0)

Render Graph as jpg format