A
Description
Notes
Example
| Example: Using PieChart | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{AntialiasedFrame
{PieChart
width = 10cm,
height = 10cm,
{PieSet
sample-records,
"Age",
label-data = {ChartDataSeries sample-records, "Name"}
}
}
}
|
| Example: Multiple PieSets inside a PieChart | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{PieChart
width = 10cm,
height = 10cm,
pie-set-inner-margin = .5cm,
{PieSet
sample-records,
"Age",
wedge-labels? = false,
label-data =
{ChartDataSeries sample-records, "Name"}
},
{PieSet
sample-records,
"Wins",
wedge-labels? = false,
label-data =
{ChartDataSeries sample-records, "Name"}
}
}
|
| Example: Using PieSet.label-set? | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{PieChart
width = 13cm,
height = 13cm,
pie-set-inner-margin = .5cm,
pie-label-radius = -7mm,
legend-enabled? = false,
{PieSet
sample-records,
"Age",
label-set? = true,
label-data =
{ChartDataSeries sample-records, "Name"}
},
{PieSet
sample-records,
"Wins",
pie-label-radius = -14mm,
label-set? = true,
label-data =
{ChartDataSeries sample-records, "Name"}
}
}
|
| Example: Using gradients in a PieChart | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{define-proc package {h-gradient
start-color:FillPattern,
end-color:FillPattern
}:FillPattern
{return
{LinearGradientFillPattern
{Fraction2d 0, 0},
{Fraction2d 1, 0},
{Spectrum.from-envelope
start-color,
0.0,
end-color,
1.0
}
}
}
}
{PieChart
width = 10cm,
height = 10cm,
color-palette =
{new {Array-of FillPattern},
{h-gradient "gray", "white"},
{h-gradient "blue", "lavender"},
{h-gradient "red", "mistyrose"},
{h-gradient "purple", "lavender"},
{h-gradient "lime", "mintcream"}
},
{PieSet
sample-records,
"Age"
}
}
|
| Construct a new PieChart. |
| A margin at the center of this chart, inside the first |
| Specifies whether or not this PieChart should try to ensure that the same |
| The |
| The array of |
| The "element" or "type" of this |
| Add a |
| Approximate the margin requirements of this Chart. |
| Create all entries required for this Chart's legend. |
| Find the |
| Request that the Chart perform layout soon. |
| Invoked when |
| Notify this PieChart that the order of |
| Remove a |
| Perform layout based on |
Construct a new PieChart.
Notes
Example
A margin at the center of this chart, inside the first
Description
Example
| Example: Changing the PieSet.inner-radius option | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{PieChart
width = 8cm,
height = 8cm,
inner-radius = 2cm,
{PieSet
sample-records,
"Age"
}
}
|
Specifies whether or not this PieChart should try to ensure that the same
Example
| Example: Using PieChart.match-colors-across-sets? | |
![]() | |
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
location = "../docstring-support/gui/charts-doc.scurl"
}
{PieChart
width = 13cm,
height = 13cm,
pie-set-inner-margin = 24pt,
pie-label-radius = 0m,
match-colors-across-sets? = false,
{PieSet
sample-records,
"Age",
label-data =
{ChartDataSeries sample-records, "Name"}
},
{PieSet
sample-records,
"Wins",
label-data =
{ChartDataSeries sample-records, "Name"}
}
}
|
The
Description
The array of
Notes
The "element" or "type" of this
Description
Overriding
Add a
Description
Approximate the margin requirements of this Chart.
Description
Notes
Create all entries required for this Chart's legend.
Description
Find the
Returns
Description
Notes
Request that the Chart perform layout soon.
Description
Notes
Invoked when
Description
Overriding
Notify this PieChart that the order of
Description
Remove a
Description
Perform layout based on
Description