Showing posts with label Chart. Show all posts
Showing posts with label Chart. Show all posts

Saturday, April 15, 2017

How to set alternative color of column in asp.net chart control

In this article I am going to explain how to set alternative color of column in column chart in asp.net chart control.


Implementation:
I am using chart control to draw column chart and set alternative color of column.

Thursday, April 13, 2017

Create column chart in asp.net

In this article I am going to explain how to create column chart using Chart control in asp.net.

  
Implementation:
I am using chart control to draw column chart.
I have created a table Tb_Population and insert some dummy data.

Id
int
StateName
varchar(200)
TotalPopulation
bigint

Wednesday, January 25, 2017

Draw Pie chart using Google chart in MVC

Thursday, December 15, 2016

Google chart: create chart in MVC

Monday, November 28, 2016

Create chart using highchart in MVC

Thursday, November 24, 2016

How to create chart with database data using MVC

In this article I am going to explain how to create chart with database using MVC


Description:
I want to show state wise population of Indian states on chart. We have lot of options like jquery based high charts and Jqplot, chart control, chart web helpers etc. You can create more than 30 types of charts like area, bar, column, bubble etc. using chart web helpers. In this tutorial I am going to implement chart using web helpers.

Friday, October 7, 2016

How to create pie chart in asp.net using chart control

In this article I am going to explain how to create pie chart in asp.net using chart control.

How to create pie chart in asp.net using chart control


Description:
I want to create a pie chart to show the state wise population in percentage. I am using asp.net chart control to create pie chart.

Thursday, October 29, 2015

Simple steps to display data point labels outside a pie Chart in asp.net

In this article I am going to explain how to display the data point labels outside a pie Chart in asp.net

Description:

I am displaying the data in chart control. Chart type is pie. I want to display the data labels outside the pie chart because data values got overlap.

Simple steps to display the data point labels outside a pie Chart in asp.net

Implementation:
To display the outside a pie chart follow the below given steps.

Go to properties section of chart control. In properties section look Chart >>Series >> Misc >>


How to display Microsoft Chart data value on mouse (cursor) hover (tooltip) in asp.net

In this article I am going to explain how to display Microsoft Chart data values on mouse (cursor) hover (tooltip) in asp.net

Description:

I am using the Microsoft chart control to display the data. I want to display the data values on mouse (cursor) hover. I have created a table Tb_Population.

Implementation:
To display the data in tooltip write the below given code.

C# Code:


foreach (Series s in Chart1.Series)
            {
                s.ToolTip = "State: #VALX\nPopulation: #VALY\nPercentage: #PERCENT";
            }

VB.net code:
  For Each s As Series In Chart1.Series
                s.ToolTip = "State: #VALX" & vbLf & "Population: #VALY" & vbLf & "Percentage: #PERCENT"
            Next

Saturday, October 24, 2015

Asp.net: Display data in Chart control from database

In this article I am going to explain how to display/show the data in Asp.net chart control from database

Description:

I have a table Tb_Population and want to display the population state wise in pie chart.

Asp.net: Display data in Chart control from database

Implementation:
Add a webform to project. Drag and drop the chart control from tootlbox to webform.

HTML Markup: