GutenKit Donut Progress Bar Block lets you easily give an appealing look to your data on your WordPress website using the default block editor. You can choose to display a number, icon, image, and supporting content, and also customize the pie chart with extensive styling options.
Let’s learn how to add the pie chart block from the Gutenberg editor area.
Step 1: Add GutenKit Donut Progress Bar Block #
Instale o plugin GutenKit e vá para o painel do WordPress. Então, pegue uma nova página ou post e siga os passos abaixo:
- Habilitar o editor de blocos.
- Encontre o "+” ícone na parte superior da tela do editor.
- Clicar nele exibirá uma biblioteca de blocos.
- Search for the GutenKit Donut Progress Bar block.
- Depois de vê-lo, clique ou arraste e solte-o na tela do editor.
Step 2: Add Pie Chart Number and Icon #
Now, open the block setting and step up to the content tab.
Contente:
- Estilo de gráfico de pizza: Choose to display your pie chart style with or without text.
- Conteúdo do gráfico: Show the percentage or icon for the chart content.
- Percentagem: Enter the percentage number in this box.
- Ícone: Add an icon or image from the library or upload it from your device.
- Estilo de conteúdo: Apart from the default style, you can add a slide animation effect on the hover state.
Step 3: Style Donut Progress Bar #
In this step, we’ll move to the Style Tab to customize the pie chart section. Let’s see how it functions:
Content Wrapper:
- Alinhamento de conteúdo: Define the horizontal positioning of the pie chart. (Left, Center, Right)
If you choose the second pie chart style, you will see the Title & Content setting in the Style tab. Also, both features have the same settings.
Title & Content:
- Cor: Add color to the title or description text.
- Tipografia: Use this setting area to customize the title or description text. As like chagrin font, weight, style, etc.
- Margem: Enter a value to add margin.
- Title Margin: Define the gap between the pie chart and the title.
- Content Margin: From there specify the gap between title and content.
Chart:
- Pie Chart Size: Use the slider to determine the size of the pie chart.
- Border Line Style: Choose a style for the border line. (Butt, Round, Square)
- Border Size: Define the thickness of the border using the slider.
- Pie Chart Image Size: Determine the size of the image. (This setting appears only if the image is selected in the content tab)
- Track Color: Use the slider to add a color to the pie chart track.
- Bar Color: Give color to the pie chart slice.
- Number Color: Give color to the percentage number using the color picker.
É isso!
We have covered all the details on how to use GutenKit Pie Chart block on your Gutenberg website.
Hopefully, now you can add a pie chart to your Gutenberg website.