Now, lets set up the Chart legend. The BarSeries can be given a name using attribute Name. Simple, just add another BarSeries to the Series collection and the chart will pick up the second series and plot it along with the first one. First lets set the chart appearance. You can position the title through Position attribute or rotate the title using the RotationAngle and also the title text through Text attribute. Then MajorTickType is the type of the ticks that mark the major grid lines and values can be None of Outside. This is the data point which will be plotted on the chart. In this example I will be considering a simple example of Bar chart so we will see how to define a BarSeries.
Notify me of new comments proyrammatically email. Do you want to know when a feature you care about is added or when a bug fixed?
c# – Telerik HtmlChart Multiple LineSeries – Stack Overflow
Posted 26 Jul in reply to Danail Vasilev Link to this post I try to learn how to add series and data programmatically. After that you can add programmatically the series to the chart based on that number and set their DataFieldY property which should refer to the corresponding data source field name. Do programmatical,y have any snapshot of what you are trying to do? We can configure the Y axis labels through LabelsAppearance property.
Chart exposes ChartTitle property. Also notice the appearance of the legend at the bottom. UI namespace supports the RadChart declaration and the Telerik. Was this article helpful? The Min and Max programmatiaclly to be represented on the the Y Axis is set. The BarSeries can be given a name using attribute Name. Here is the code snippet of creating a Bar series and adding it to the chart:.
Then MajorTickType is the type of the ticks that mark the major grid lines and values can be None of Outside. Next I have given the items that make up the x axis.
As you can see we have set the text and appearance of the title. If we now run the application and check the output, you will see the chart as below:. Leave a Reply Cancel reply Enter your comment here Then the actual values of the data points can be added to Items collection of BarSeries. The appearance of the chart title can be serkes through Appearance property of the chart title.
And… what if you really want that Friday would be without data for Week 1, you wrote: ChartTitle contains a text Property and you can provide the text you want to see on the chart. If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.
The MajorGridLines allows us to configure the color and width of the major grid line and similarly seies MinorGridLines property.
Programmatically create Chart’s data and appearance | RadHtmlChart demo
Notify me of new comments via email. For the time being you can manually do the grouping manipulations of the datasource.
So if you are in need of using a RadHtmlChart in your pages, read through the following sections and follow along. Here is the output of the chart with the settings done so far:. Visual Studio will spin up our new project and we are all set to code. First add programmatlcally namespaces that support the objects to be referenced.
Here is the snapshot of the same chart after I added another series:. We can get hold of XAxis property of the chart to do the customization.
Programmaticqlly add the RadHtmlChart control to our Default. Other By checking this box you consent to Progress contacting you by email about your response on this page.
If you look at the web. So We have the following options to play with respect to the play area:.
Give it a name and keep the default settings in all dadhtmlchart the dialog that comes up. We can customize the plot area such as appearance etc.
Pretty similar to X axis, we have the Color attribute of the Y axis line which can be configured. RadHtmlChart control has radhmtlchart rich visual designer support.
In this blog post I attempted to construct a Seriez piece by piece and show how easy it is to configure different aspects of the RadHtmlChart control.