Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a231196f6fb2efe9

Jump to content

Module talk:Piechart/cuts.json

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

Description

[edit]

The values in the cuts.json represent the heights of a triangle cutting a circle every 0.1% of the circle (from 0.1% to 5.0%).

The calculation of the triangle height looks like this:

function cutHeight(v) {
    const x = (90 * v) / 25;
    const angleRadians = mathRadians(x);
    const tgValue = Math.tan(angleRadians);
    const proc = tgValue * 100;
    return proc;
}

See Also

[edit]