DocumentationDocumentation
Darty.ai
Get Started
Basics
Methods
Colors
UI
Workflows
Darty.ai
Get Started
Basics
Methods
Colors
UI
Workflows
  • Get Started

    • Installation and Login
    • Your First Darty Document
    • Installers - Instructions and Downloads
    • Licensing
  • Basics

    • Darty Basics
    • Darty Header
    • Darty Tags
  • Methods

    • Darty Methods
    • Align
    • Appearance - General
    • Appearance - Colors & Swatches
    • Appearance - Effect Properties
    • Artboard Methods
    • Arrange
    • Attributes
    • Clean Document
    • Clipping Mask Make and Release
    • Color Mode
    • Compound Path - Make and Release
    • Distribute
    • Duplicate
    • Expand
    • Fit To Bounds
    • Group & Ungroup
    • Layer Methods
    • Outline
    • Pathfinder
    • Place
    • Rasterize
    • Reduce To Basic Appearance
    • Remove
    • Swatch Methods
    • Tags Methods
    • Text
    • Transform Methods
    • zOrder
    • Skip and *
  • Colors

    • Color Libraries
  • User Interface

    • Darty User-Interface
    • Tags Tab
    • Data Tab
    • Export Tab
    • Settings Tab
    • Help Tab
    • Export Settings
    • Export Validation
    • Job Export Settings
    • Export Counter Variables
    • Export Progress
    • Export Presets
    • Recent Files
    • Color Dialog
  • Cloud Data

    • Darty-Ai Cloud Data Integrations
    • Darty-Ai with Google Sheets
  • Workflows

    • Darty Workflows
    • Darty Preview
    • Darty Export Workflows
    • Darty Data Workflows
  • Site Blog

    • Getting Started ⭐️
    • Placing Images in Darty-Ai ⭐️
    • 🚀 New Features — Darty-Ai 1.7.8 (March 2026)
    • Creating a Basic Pie-Chart with Line-Art & Data
    • Customer Data and Darty-Ai
    • Darty-Ai Now Supports Google Sheets
    • External SVGs with Darty-Ai
    • Preview Your Documents
    • Self-Adjusting Logo Automation
    • State Management for Artwork Appearance
    • Text Replacements and Formatting
    • Using Private Google Sheets Shared with Business Emails
  • Site Pages

    • 🏠 Home
    • 💰 Pricing
    • Downloads

Creating a Basic Pie-Chart with Line-Art & Data

Pie Chart from Line Art in Adobe Illustrator with Darty-Ai

Variable-Data Pie-Chart from Line-Art in Adobe Illustrator with Darty-Ai

Welcome to another Darty-AI Illustrator variable art tutorial. Today we are going to focus on a common data visualization task: creating a basic pie chart out of nothing but a circle, appearance strokes, and some mathematics featuring Pi.

Although Darty-AI does not support native Illustrator variable graphs at this time, for many data visualization use cases the freedom it offers for line-art manipulation is more than sufficient.

Design Phase

This is where the magic happens.

Step 1: Draw the CircleSetting the stroke to 100pt, same as the line art's width.
Create a circle:
  • Width: 100 px
  • Height: 100 px

Now here’s the key detail:
Set the stroke width to 100 px.

This causes the stroke to expand inward and visually fill the circle, creating the appearance of a solid disk. The fill is irrelevant — the stroke is doing the heavy lifting.

At this point, you’re not looking at a stroked outline anymore. You’re looking at a stroke-based “donut” that fully overlaps itself.

Step 2: Understanding the Circumference Trick

The circumference of a circle is:
C = πD

Since our diameter is 100 px, the circumference becomes:
100×π≈314.159100 × π ≈ 314.159100×π≈314.159

Here’s the discovery:
If you divide the correct dash length by the circle’s width (100), you get… π.

stroke dash and gap create a pie-like appearance

That means:
Dash length = Width × π
So instead of manually tweaking the dash array for 20 minutes the ‘eyeball way’, you can calculate it instantly.

Step 3: The Dash Array Setup

Setting dash values to 3.14 times the width (100) ending up with 314

Open the Stroke panel and enable:
Dashed Line

Now set:


  • Dash: 314.159
  • Gap: 314.159

Because Illustrator does not allow negative dash offsets (unlike After Effects), the trick is to make the dash and gap equal.

Next, you can add a Transform effect to scale up this circle to fit your document.

What to Watch Out For

Due to the decimals, when scaling up the artwork using the Transform effect, there can be a small gap visible as a hairline slice. To fix this, simply add a 1-pt buffer to the dash values to end up at 315.5.

  • The stroke must equal the diameter.
  • Have ‘Scale Strokes & Effects’ ON to scale proportionally. If you change the circle size, it should then automatically recalculate.
  • Illustrator has a dash and gap limit of 1000 points, but this isn’t a problem when we use a transform effect to enlarge the entire item later.

If your circle is 250 px wide?
Dash = 250 × π ≈ 785.398
Same rule, always.

Phase 2 – Turning It Into a Pie Slice

The easiest and most intuitive way to control the artwork of individual pie slices is to think of it as a normal bar-graph with all bars overlaid on top of one another, bent into a shape of a circle.

Concept: transition of a bar line graph to a donut chart, to a pie chart

Adding several appearance strokes with the same dash values sets up the amount of potential slices. These strokes could also be added dynamically via Darty-Ai; likewise a set of paths can be made to work just the same as multiple appearance strokes.

Illustrator's appearance panel showing 4 strokes with 100pt widths

This way, we only need to use a data trick to cumulatively track the pie-slice values in order to always fill the slice from the ‘bottom up’ along the curve. The exposed part of each slice appearance stroke appears like a small slice because of the slice-strokes above.

ABCDEFGH
*chart-circ*chart-circ*chart-circ*chart-circ
commentappearancecommentappearancecommentappearancecommentappearance
*stroke[1]dashValues*stroke[2]dashValues*stroke[3]dashValues*stroke[4]dashValues
slice-1slice-2slice-3slice-4
50157, 315.525236.5, 315.512.5275.5, 315.512.5314.5, 315.5
12.539, 315.525118.5, 315.512.5157.5, 315.550314.5, 315.5

Each ‘human-readable’ percentage value is in a comment column preceding the real value column. In the value column, a formula multiplies the number in the cell to the left by PI. It also concatenates the value of the ‘gap’.

=ROUND(A5 * PI()) & ", 315.5"

Because this is the most minimal cumulative approach, the value formulas of next column groupings accumulate the values of preceding columns via SUM().

=(ROUND(SUM(A5,C5) * PI(), 0) + 0.5) & ", 315.5"

=(ROUND(SUM(A5,C5,E5) * PI(), 0) + 0.5) & ", 315.5"

=(ROUND(SUM(A5,C5,E5,G5) * PI(), 0) + 0.5) & ", 315.5"
Other ways are possible to accomplish the same, and have even more variability:
  • Use transform effect to rotate non-cumulative stroke-slices into place.
  • Use separate artwork and rotate/stack them with the possibility of having their own added fills and strokes.

Styling the Chart

One of the all-time drawbacks of Illustrator's native Pie Charts is the lack of control when styling charts rendered with variable data as those elements always snap back into their initial state when every record changes. If you wanted to style some slice in a different way, the variable-data replacement seemed to consistently wipe away those properties.

Not anymore!
With Darty-Ai, it is possible to affect the artwork in multiple ways: from setting a color to applying 3D effects and even using patterns to display graphics inside of pie-slices.

While this example uses cumulative-value dashed strokes on only one path art-object, even this type of artwork can be styled powerfully — and if separate objects are used, then the potential is virtually limitless.

70b7074c4f chart 2 false
da3d89a558 chart 1 false
f5f80b9e8a chart 9 false
5efe8bc767 chart 8 false
13008e9283 chart 7 true
273d250e1a chart 6 false
79441d19b2 chart 5 false
05aafd6b47 chart 4 false
6e6abc37e5 chart 3 true

View original page on our main site

Prev
🚀 New Features — Darty-Ai 1.7.8 (March 2026)
Next
Customer Data and Darty-Ai