Charts - Getting Started
Follow the simple steps below to get started quickly.
Step 1. Create a Figma account (if you don't have one)
Step 2. Unzip the File you got
Step 3. Watch the Getting Started Tutorial
Hey! My name is Matt and I'm the creator of Ant Design Charts for Figma.
In this short tutorial, you will learn how to import the Figma file, what you will find in the UI kit, and how to use the components or customize them.
After you unzip the file you got. Go to Figma and in the sidebar on the left, click on a plus icon. Here select the Import option and select the Ant Design Charts .fig file in the folder you just unzipped.
It will take a while until the file is imported. After it's done, double-click on the file to open it.
Once you open the file, you will see the overview page. Here you can preview all charts available in the UI kit or read their descriptions.
In the pages panel on the left, you can navigate to a chart main components page. Here you can modify the components, and all changes you make here will be reflected in each chart component instance.
At the bottom, you will also find the base components page. Here you will see all the base components that our charts were built with.
To access the chart components, let's create a new page. Here use the Frame tool to create a frame that you will need.
Now, press Alt+2 or Opt+2 to open the Assets panel. Here you will find all chart components. Now, select the component you want to use, then drag and drop IT in the Frame. That's it.
Now, you can resize the chart or modify it.
I built each chart with multiple component layers that have the auto layout and variants feature applied.
In the 1st layer - component - you can select how many data Items you want to display in the chart canvas. For example, if you need to present three data items - in the variants menu - select 3 in the Data Items dropdown.
To access the second layer, select the chart component and press Enter. In the second layer - chart base - you'll have more variant options to adjust.
You can select whether your X-axis items should be aligned to the center or the left.
You can show and hide the title and subtitle.
Hide or show the Rulers.
Or select the legend's position, or even hide it.
To access the 3rd layer - axis items - go to the Layers panel and open the chart wrapper, wrapper and select the Y-Axis group.
Now press Enter to select all Y-Axis items.
In the variants menu on the right, you can select whether to see the label, grid, tick line, or change the label's type.
You can also select some Axis items AND hide them to lower the scale.
Notice, that when you disable the label, you need to make some small adjustments so that the canvas will span across the whole width of the chart.
To do it, you need to select the X-axis group and change its left padding to 0.
Then, do the same for the Canvas Wrapper.
Now, the canvas takes the full width of the chart. If you want to enable the labels back or change the labels type - make sure to apply the padding accordingly to the x-axis group and canvas wrapper.
You can also modify the X-axis items and it works the same as we did in the Y-axis items.
If you want to change the colors or typography of your charts, edit the styles in the Styles panel.
Changes that you will make here will be reflected in all components that use this style.
If you want to modify the displayed data or add your own visualization, you must go to the component's page.
Here, you can modify the canvas items or add your own if you want.
Duplicate the canvas item and rename the variant. Now, make your changes inside the frame.
To create a new chart variant, duplicate and rename it.
Then, select the Canvas instance inside and change it to Example.
Voila! This is how you can add your own chart variants.
I hope that this video was helpful so you can start using the charts without any problems! Thanks for watching!