In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to make all kinds of 3D charts in ASP.NET". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to make all kinds of 3D charts in ASP.NET.
Preface
As we all know, through the chart control, we can both represent the data and compare the data of various charts, such as comparing the income of last year and this year. There are also many types of charts, such as bar charts, line charts, bar charts, combination charts, and so on.
First, I'll show you how to draw a simple chart.
Steps for a simple chart
Step 1
Create a new "ASP.NET Empty Web Site".
Step 2
Add a new project to Solution Explorer and add new form.
Step 3
Toolbar-Standard-Project. We will see in .net Framework Component. There are two chart options in, tick and save. .net Framework 4.0 and later integrates chart controls into the toolbox toolbox, which is required in 3.5 and earlier versions.
Step 4
Go to the toolbar-data-chart and drag from the toolbar to the page.
Step 5
After you drag the chart control to the page, IDE automatically adds the following four tags to the web.config file, and you can also see a normal chart on the designer page of Default.aspx.
Step 6
Right-click the chart to enter the properties. Property window to select and add a data source. Of course, we can also bind the data to the chart with code. I used the binding method for the 3D chart code below.
Step 7
After successfully adding the data source, return to the properties window, click on the series, and we will see such a window.
Step 8
Set the corresponding items of the X axis and Y in the data source of the series, where I set the value of the corresponding item of the X axis to the name and the value of the corresponding item of the Y axis to the age. If you want to name the X and Y axes in the chart, go back to the properties window, click on the chart area, and you will see a property of Axes.
Step 9
Run the program and output the result as shown below.
Type of chart
If you want various types of charts, this is very simple, right-click the chart-display smart tags, you can select a variety of chart types.
3D chart
Compared with other charts, 3D charts have the advantage of looking clearer and more intuitive. Now let's talk about how to make 3D charts.
First create a new website and drag the chart to the aspx page. As I said above, the code is automatically added to the web.config file. Then only there is a chart area label in the aspx page. Let's change 3D to true. We can also use the wizard, right-click the chart-properties-chart area properties, and then change 3D to true in the 3D chart settings, which will be false by default.
Code:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.