Monday, April 29, 2024
HomeC#Unveiling the New Angular 3D Round Charts Element

Unveiling the New Angular 3D Round Charts Element


TLDR: Exploring the brand new Syncfusion Angular 3D Round Charts element, visualizing knowledge with its marvelous options and code examples.

We’re thrilled to introduce the brand new Angular 3D Round Charts element within the Important Studio 2024 Quantity 1 launch. It’s designed to revolutionize knowledge presentation by injecting depth and readability into your visualizations, taking data to a complete new dimension for enhanced engagement and understanding.

Exploring the world of 3D Round Charts

The Angular 3D Round Charts element supplies a graphical illustration of knowledge in three dimensions, with every slice’s dimension indicating its proportion relative to your complete dataset.

Not like the normal 2D charts, the 3D Round Charts element provides depth to the visualization, permitting a greater understanding of knowledge patterns.

Angular 3D Circular Charts component
Angular 3D Round Charts element

Key options that outline excellence

Let’s see the vivid options of the Angular 3D Round Charts element:

Chart sorts

The Angular 3D Round Charts element boasts two versatile chart sorts,

  • Pie: A pie chart is a round diagram representing the proportions of a complete by dividing it into slices.
  • Donut: A donut is a round chart akin to a pie chart however that includes a central void, representing knowledge proportions and distributions.
Angular 3D Pie and Donut Circular Charts
Angular 3D Pie and Donut Round Charts

Knowledge binding

You may effortlessly bind the 3D Round Charts element with an array of JSON objects or a DataManager, supporting native and distant knowledge binding strategies. Not solely can chart sequence be sure, however knowledge labels and tooltips may also be seamlessly built-in along with your knowledge.

Binding data with the Angular 3D Circular Charts
Binding knowledge with the Angular 3D Round Charts

Knowledge labels

Knowledge labels characterize textual or numeric data connected to particular person knowledge factors. We will additionally improve these labels with HTML parts reminiscent of photographs, DIV, and spans, creating informative and visually interesting knowledge representations.

Data labels in Angular 3D Circular Charts
Knowledge labels in Angular 3D Round Charts

Legends

Legends present important details about knowledge classes in a chart. Labels and symbols assist viewers in figuring out and differentiating between varied knowledge factors throughout the chart.

Legends in Angular 3D Circular Charts
Legends in Angular 3D Round Charts

Person interplay options

Elevate consumer expertise with interactive options reminiscent of tooltips, spotlight, and choice.

  • Tooltip: A small, informative pop-up field providing extra context, particulars, or data when customers hover over or click on on chart knowledge.
  • Spotlight and choice: Simply spotlight and choose knowledge factors for improved comprehension. Including patterns and colours to chose knowledge enhances the chart’s interactivity.
User interactive features in Angular 3D Circular Charts
Person interactive options in Angular 3D Round Charts

Rotation and tilt

Rotation: We will dynamically rotate the 3D Round Charts element from 0 to 360 levels round a set level in a three-dimensional area, clockwise or anti-clockwise.

Tilt: We will additionally alter the inclination angle of the chart to offer a novel and interesting perspective.

Rotation and tilt features in Angular 3D Circular Charts
Rotation and tilt options in Angular 3D Round Charts

Getting began with the Angular 3D Round Charts element

We’ve explored the marvelous options of the Angular 3D Round Charts element. Let’s see find out how to combine it into your Angular app.

  1. First, create an Angular app utilizing the next command.
    ng new-my app
    cd my-app
  1. Now, set up the Syncfusion Angular Charts NPM bundle utilizing the next command.
    npm set up @syncfusion/ej2-angular-charts –save
  1. Import the 3D Round Charts module into the Angular app from the bundle @syncfusion/ej2-angular-charts within the app.module.ts file.
    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    // Import the Chart Module for the Chart element.
    import { CircularChart3DModule } from '@syncfusion/ej2-angular-charts';
    import { AppComponent }  from './app.element';
    
    @NgModule({
      //Declaration of ChartModule into NgModule.
      imports:      [ BrowserModule, CircularChart3DModule ],
      declarations: [ AppComponent ],
      bootstrap:    [ AppComponent ]
    })
    export class AppModule { }
    
  1. Modify the template within the app.element.ts file to render the 3D Round Charts element.
    import { Element, ViewEncapsulation } from '@angular/core';
    
    @Element({
      selector: 'app-container',
      // Specifies the template string for the 3D Round Charts element.
      template: `<ejs-circularchart3d id='chart-container'></ejs-circularchart3d>`,
      encapsulation: ViewEncapsulation.None
    })
    export class AppComponent  { }
  1. Use the app-container within the html file as an alternative of the default one.
    <app-container></app-container>
  1. Now, run the app utilizing the next command.
    npm begin
  1. Lastly, let’s render a 3D Pie Round Chart utilizing the next code.

    App.element.ts

    import { Element, OnInit } from '@angular/core';
    
    @Element({
        selector: 'app-container',
        template: `<ejs-circularchart3d model="show:block;" align='middle' 
        rotation=7 tilt=10 depth=100 [tooltip]=’tooltip’ [enableRotation]='enableRotation'>
        <e-circularchart3d-series-collection>
            <e-circularchart3d-series [dataSource]='dataSource' xName="x" yName="y">
            </e-circularchart3d-series>
        </e-circularchart3d-series-collection>
    </ejs-circularchart3d>`
    })
    export class AppComponent implements OnInit {
        public dataSource?: Object[];
        public enableRotation?: boolean;
        public tooltip?: Object[];
        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.enableRotation = true;
            this.tooltip = {allow: true};
        }
    }

After executing the above code examples, we’ll get the output that resembles the next picture.

Integrating the 3D Circular Charts component in the Angular app
Integrating the 3D Round Charts element within the Angular app

References

For extra particulars, discuss with the Angular 3D Round Charts documentation and demos.

Conclusion

Thanks for studying! We’ve explored the brand new Angular 3D Round Charts element, a outstanding addition to our 2024 Quantity 1 launch. This highly effective software is designed to enhance your knowledge visualization expertise, and we’re keen to listen to your ideas on it. Don’t hesitate to share your opinion within the feedback part.

For an in depth overview of this launch’s thrilling updates, we invite you to go to our Launch Notes and What’s New pages. For our current prospects, the brand new model of Important Studio is obtainable on the License and Downloads web page. Should you’re new to Syncfusion, we provide a 30-day free trial so you’ll be able to expertise the huge array of options we offer. It’s a terrific alternative to discover how our instruments can improve your improvement course of.

You probably have any questions, you’ll be able to attain us by our help discussion boardhelp portal, or suggestions portal. Your satisfaction is our high precedence, and we’re all the time joyful to help you in any means we will.

Associated blogs

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments