Knowledgebase: RadarCube ASP.NET MSAS
RiaChart - Getting started
Posted by - NA - on 16 March 2009 08:04 AM

Placing the RiaChart Control on the Web Page

  1. Place the ScriptManager control on the web page.
  2. From the RadarSoft Essential Pack tab in the Toolbox select the RiaChart control and drag it to your web page.

Another way is to convert the Chart control (that already is on your page) into RiaChart: simply substitute the “asp” tag prefix for “rs” and the “Chart” tag name for “RiaChart” ” and add the following line after the “<%@ Page … %>” line of your apsx page:

<%@ Register assembly="RadarSoft.Web.Essential.Chart" namespace="RadarSoft.Web.Essential.Chart" tagprefix="rs" %>

Functions of the RiaChart Control

Using the RiaChart control on your web page expands the options of data analysis that can be presented both as diagrams and as charts. This element is a .Net Framework component that supports the capability of design in the Microsoft Visual Studio 2008 environment. The visualization of the RiaChart control is based on the Silverlight technology.

Functional Capabilities of the RSCart Control:

  • Five different types of diagrams (Column, Bar, Point, Line, Pie).
  • Automatic and manual setting of the diagram properties.
  • An unlimited number of areas to create.
  • Display of the area name in the header.
  • Specifying data as a series of points with set coordinates through binding the control to the data source or using the series collection editor.
  • Support of different types of data, including the date and time type.
  • A legend for each series, specifying its name and color in the diagram.
  • Display of several series in different colors within the area of a single diagram.
  • Defining vertical and horizontal axes and the lines of the coordinate grid.
  • Automatic and manual specification of the coordinate range (the minimum and maximum values of axes) of the chart on the coordinate grid.
  • Automatic layout of label names on the axis.
  • Display of the axes headers.
  • Highlighting elements in diagrams.
  • More that 50 formulas for statistic and financial analysis of data.
  • Manipulating data: sorting, searching points with set values, grouping, filtering, exporting, copying, splitting and merging series.

An example of RiaChart control element:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
 Inherits="RadarSoft.Silverlight.Essential.Test._Default" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=, 
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<%@ Register assembly="RadarSoft.Essential.Web" namespace="RadarSoft.Essential.Web"
 tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

<html xmlns="" >

    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            SelectCommand="SELECT  top 5   ProductName, UnitPrice, UnitsInStock FROM Products"      

        <cc1:RiaChart ID="RiaChart1" runat="server" DataSourceID="AccessDataSource1" 
                <asp:Series ChartArea="ChartArea1" Name="Series1">
                        <asp:DataPoint YValues="10" />
                        <asp:DataPoint YValues="2" />
                        <asp:DataPoint YValues="24" />
                        <asp:DataPoint YValues="11.5" />
                        <asp:DataPoint YValues="0" />
                        <asp:DataPoint YValues="30.3" />
                <asp:Series ChartArea="ChartArea2" ChartType="Pie" Name="Series2"
                    XValueMember="ProductName" XValueType="String" 
                <asp:Series ChartArea="ChartArea1" Name="Series3">
                        <asp:DataPoint YValues="20" />
                        <asp:DataPoint YValues="15" />
                        <asp:DataPoint YValues="6" />
                        <asp:DataPoint YValues="4.7" />
                        <asp:DataPoint YValues="15" />
                        <asp:DataPoint YValues="3" />
                <asp:ChartArea Name="ChartArea1">
                    <Position Height="95" Width="45" X="3" Y="3" />
                <asp:ChartArea Name="ChartArea2">
                    <Position Height="95" Width="45" X="50" Y="3" />
(434 vote(s))
This article was helpful
This article was not helpful

Help Desk Software by Kayako Resolve