RCHART .NET TUTORIAL, Chapter 1
Copyright 2003, J4L
Components (http://www.java4less.com)
Go bak to contents
RChart , first steps.
Installation
The installation of RChart is very simple:
- download the evaluation version from http://www.java4less.com.
- Unzip the file you have downloaded in an empty directory. Make sure you
unzip also the subdirectories.
Note about the evaluation version: the evaluation version has the following
restrictions:
- it plots a maximum of 8 values.
- it plots a maximum of 3 series
- it displays always the "RChart demo" text in the legend.
The product includes precompiled versions of the component in the NET10 and
NET11 directories. The name of the files are rchart10.dll (for .NET10 ), rchart11.dll
and so on.
You can execute the sample application by double cliking on ChartViewer10.exe
or ChartViewer11.exe.
Where
to start
As starting point we recommend you not to create a chart from scratch but to
take one of the examples we provide and start working by modifying them. We
provide examples for:
- A sample chart viewer that loads charts definitions from files (source/ChartViewer.cs).
- A c# file that creates charts using the API (source/examples.cs).
- A aspx page that creates a charts and send it to the browser (AspXExample/bars/ChartC.aspx).
Format
of the parameters
There are some parameters that have a special format:
- Colors: valid values are: RED,BLUE,GREEN,BLACK,GRAY,LIGHTGRAY,WHITE,DARKGRAY,YELLOW,ORANGE,CYAN
and MAGENTA. You can also use the RGB numeric value of a color as parameter.
For example "FF0000" is red (RGB format), "00FF00" is
green and so on.
- Line styles have the format <width>|<color>|<style>.
Style can be LINE, DASHED or DOTS. Example: "1|RED|LINE"
- Fonts have the format <font name>|<style>|<size>.
Style can be PLAIN, ITALIC or BOLD. Example: "Arial|BOLD|12"
- Fill style: like color.
- List of values. List of values a separated by "|"
You can define transparency in Fill and line styles using an additional parameter:
- Line styles have the format <width>|<color>|<style>|<transparency>
- Fill style: <color>|<transparency>
where <transparency> is a value between 0 (full transparent) and 255
(opaque). You can use 120 for semi-transparent colors.