Unveiling the New Angular 3D Chart: A Step Forward in Data Visualization
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (179).NET Core  (29).NET MAUI  (214)Angular  (110)ASP.NET  (51)ASP.NET Core  (83)ASP.NET MVC  (90)Azure  (41)Black Friday Deal  (1)Blazor  (226)BoldSign  (15)DocIO  (24)Essential JS 2  (109)Essential Studio  (200)File Formats  (68)Flutter  (133)JavaScript  (226)Microsoft  (120)PDF  (81)Python  (1)React  (105)Streamlit  (1)Succinctly series  (131)Syncfusion  (942)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (52)Windows Forms  (61)WinUI  (71)WPF  (163)Xamarin  (161)XlsIO  (38)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (9)Business intelligence  (55)Button  (4)C#  (157)Chart  (140)Chart of the week  (54)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (70)Development  (658)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (7)Essential Tools  (14)Excel  (43)Extensions  (22)File Manager  (7)Gantt  (19)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (512)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (54)Security  (4)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (14)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (393)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (614)What's new  (333)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Unveiling the New Angular 3D Chart A Step Forward in Data Visualization

Unveiling the New Angular 3D Chart: A Step Forward in Data Visualization

Three-dimensional (3D) charts go beyond the limitations of traditional two-dimensional graphs, providing a dynamic canvas for illustrating complex datasets.

In Syncfusion’s Essential Studio 2023 Volume 4 release, we are thrilled to introduce our latest addition—the Angular 3D Chart component. This cutting-edge tool is designed to improve data presentation by injecting depth and clarity into your visualizations. Let’s explore the features of this new Angular 3D Chart and the steps to get started with it!

Angular 3D Chart: An overview

The Angular 3D Chart component provides a graphical representation of data in three dimensions, showcasing relationships and trends among variables. Unlike traditional 2D charts, 3D charts add depth to the visualization, allowing for a better understanding of data patterns.

With tool, you can effortlessly create various 3D chart types: bar, stacked bar, 100% stacked bar, column, stacked column, 100% stacked column, pie, and doughnut

Angular 3D Charts
Angular 3D Charts

Key features

The Angular 3D Chart component supports the following key features:

Let’s look at all of these more closely.

Chart types

The Angular 3D Chart component offers six versatile chart types, easily configurable, with built-in support for visually stunning effects:

  • Column: Represents data with vertical bars for easy value comparison.
  • Bar: Utilizes horizontal bars to display data and facilitate value comparison.
  • Stacked column: Plots data points on top of each other using vertical bars for comprehensive visualization.
  • Stacked bar: Achieves the same effect as the stacked column but with horizontal bars.
  • 100% stacked column: Illustrates the percentage distribution of multiple datasets within a total, with each column adding up to 100%.
  • 100% stacked bar: Like the stacked column but using horizontal bars, showcasing the percentage distribution of datasets within a total.
Different chart types supported in Angular 3D Chart
Different chart types supported in Angular 3D Chart

Data binding

Effortlessly bind the 3D Chart component with an array of JSON objects or a data manager, with support for both local and remote data binding methods. In addition to the chart series, data labels and tooltips can also be bound to your data.

Data labels

Annotate points with labels to improve the readability of data. Enhance these labels with HTML elements such as images, DIVs, and spans, creating informative and visually appealing data representations.

Data labels in Angular 3D Chart
Data labels in Angular 3D Chart

Axis types

Plot number, date-time, logarithmic, and string data types in the chart axis. The axis features include:

  • Inversed axis: Flip the axis direction from its default orientation.
  • Opposed position: Display the axis in the opposite position.
  • Multiple axes: Include more than one axis on the same or opposite side.
  • Smart labels: Add dynamic labels that automatically position themselves to enhance readability and prevent overlapping.
Axis types in Angular 3D Chart
Axis types in Angular 3D Chart

Legends

Provide additional information about the data series using a customizable legend. Labels and symbols aid viewers in identifying and differentiating between various series within the chart.

Legends in Angular 3D Chart
Legends in Angular 3D Chart

User interaction

You can also add interactive features to the 3D charts:

  • Tooltip: A small, informative pop-up box offering additional context, details, or information when users hover over or click on data points.
  • Highlight and selection: Easily highlight and select data points for improved comprehension. Adding patterns and colors to selected data enhances chart interactivity.
User interactivity features in Angular 3D Chart
User interactivity features in Angular 3D Chart

Rotation and tilt

In addition to the previous features, the Angular 3D Chart supports:

  • Rotation: Dynamically rotate the 3D Chart from 0 to 360 degrees around a fixed point or axis in a three-dimensional space. Rotation can occur in a clockwise or counterclockwise direction.
  • Tilt: Alter the inclination angle of the chart along one axis, providing a different perspective.
Rotation and tilt features in Angular 3D Chart
Rotation and tilt features in Angular 3D Chart

Getting started with the Angular 3D Chart component

We’ve explored the stunning features of the new Angular 3D Chart. Let’s see how to use it to visualize data!

Step 1: Create an Angular application

First, create an Angular application by using the following command.

ng new-my app
cd my-app

Step 2: Install the Syncfusion Angular Charts NuGet package

Add the Syncfusion Angular Charts NuGet package to the application.

npm install @syncfusion/ej2-angular-charts –save

Step 3: Register the 3D Chart module

Import the 3D Chart module into the Angular app in the app.module.ts file.

Refer to the following code example.

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
// import the ChartModule for the Chart component
import { Chart3DModule } from '@syncfusion/ej2-angular-charts';
import { AppComponent }  from './app.component';

@NgModule({
  //declaration of ChartModule into NgModule
  imports:      [ BrowserModule, Chart3DModule ],
  declarations: [ AppComponent ],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }

Then, modify the template in the app.component.ts file to render the 3D Chart.

import { Component, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'app-container',
  // specifies the template string for the 3D Charts component
  template: `<ejs-chart3d id='chart-container'></ejs-chart3d>`,
  encapsulation: ViewEncapsulation.None
})

export class AppComponent { }

Use the app-container in the index.html file instead of the default one.

<app-container></app-container>

Step 4: Populate the chart with data

Bind the JSON data to the Angular 3D Chart in the App.component.ts file.

import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-container',
    template: `<ejs-chart3d style='display:block;' align='center' [primaryXAxis]='primaryXAxis' [primaryYAxis]='primaryYAxis'
    rotation=7 tilt=10 depth=100 [enableRotation]='enableRotation'>
    <e-chart3d-series-collection>
        <e-chart3d-series [dataSource]='dataSource' type='Column' xName='x' yName='y'>
        </e-chart3d-series>
    </e-chart3d-series-collection>
</ejs-chart3d>`
})
export class AppComponent implements OnInit {
    public dataSource?: Object[];
    public primaryXAxis?: Object;
    public primaryYAxis?: Object;
    public enableRotation?: boolean;
    ngOnInit(): void {
        this.dataSource = [
            { x: 'Tesla', y: 137429 }, { x: 'Aion', y: 80308 },
            { x: 'Wuling', y: 76418 }, { x: 'Changan', y: 52849 },
            { x: 'Geely', y: 47234 }, { x: 'Nio', y: 31041 },
            { x: 'Neta', y: 22449 }, { x: 'BMW', y: 18733 }];
        this.primaryXAxis = {
            valueType: 'Category',
            labelRotation: -45,
            labelPlacement: 'BetweenTicks'
        };
        this.primaryYAxis = {
            maximum: 150000,
            interval: 50000
        };
        this.enableRotation = true;
    }
}

Step 5: Run the app

Finally, run the app in the browser using the following command.

npm start

After executing the previous code examples, we’ll get output like in the following image.

Integrating 3D Chart in Angular apps
Integrating 3D Chart in Angular apps

References

For more details, refer to the Angular 3D Chart documentation and demos.

Conclusion

Thank you for taking the time to explore our new Angular 3D Chart component, a remarkable addition to our 2023 Volume 4 release. This powerful tool is designed to improve your app development process, and we’re eager to hear your thoughts on it. Don’t hesitate to share your opinion in the comments section.

For a detailed overview of all the exciting updates in this release, we invite you to visit our Release Notes and What’s New pages. For our existing customers, the new version of Essential Studio is available on the License and Downloads page. If you’re new to Syncfusion, we offer a 30-day free trial so you can experience the wide array of features we provide. It’s a great opportunity to explore how our tools can enhance your development process.

If you have any questions, you can reach us through our support forumsupport portal, or feedback portal. Your satisfaction is our top priority, and we’re always happy to assist you in any way we can.

Related blogs

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed